CVE-2024-43904

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add null checks for 'stream' and 'plane' before dereferencing This commit adds null checks for the 'stream' and 'plane' variables in the dcn30_apply_idle_power_optimizations function. These variables were previously assumed to be null at line 922, but they were used later in the code without checking if they were null. This could potentially lead to a null pointer dereference, which would cause a crash. The null checks ensure that 'stream' and 'plane' are not null before they are used, preventing potential crashes. Fixes the below static smatch checker: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:938 dcn30_apply_idle_power_optimizations() error: we previously assumed 'stream' could be null (see line 922) drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:940 dcn30_apply_idle_power_optimizations() error: we previously assumed 'plane' could be null (see line 922)
Configurations

Configuration 1 (hide)

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

08 Nov 2024, 16:15

Type Values Removed Values Added
References
  • () https://git.kernel.org/stable/c/10c20d79d59cadfe572480d98cec271a89ffb024 -
  • () https://git.kernel.org/stable/c/5e84eda48ffb2363437db44bbd0235594f8a58f9 -

27 Aug 2024, 13:40

Type Values Removed Values Added
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
CWE CWE-476
Summary
  • (es) En el kernel de Linux, se resolvió la siguiente vulnerabilidad: drm/amd/display: agregue comprobaciones nulas para 'stream' y 'plane' antes de eliminar la referencia. Esta confirmación agrega comprobaciones nulas para las variables 'stream' y 'plane' en la función dcn30_apply_idle_power_optimizations . Anteriormente se suponía que estas variables eran nulas en la línea 922, pero se usaron más adelante en el código sin verificar si eran nulas. Potencialmente, esto podría provocar una desreferencia del puntero nulo, lo que provocaría un bloqueo. Las comprobaciones nulas garantizan que 'stream' y 'plane' no sean nulos antes de su uso, evitando posibles accidentes. Corrige el siguiente verificador de coincidencia estática: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:938 Error de dcn30_apply_idle_power_optimizations(): previamente asumimos que 'stream' podría ser nulo (ver línea 922) drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:940 Error de dcn30_apply_idle_power_optimizations(): anteriormente asumimos que 'avión' podría ser nulo (consulte la línea 922)
First Time Linux
Linux linux Kernel
References () https://git.kernel.org/stable/c/15c2990e0f0108b9c3752d7072a97d45d4283aea - () https://git.kernel.org/stable/c/15c2990e0f0108b9c3752d7072a97d45d4283aea - Patch
References () https://git.kernel.org/stable/c/16a8a2a839d19c4cf7253642b493ffb8eee1d857 - () https://git.kernel.org/stable/c/16a8a2a839d19c4cf7253642b493ffb8eee1d857 - Patch
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5

26 Aug 2024, 11:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-08-26 11:15

Updated : 2024-11-08 16:15


NVD link : CVE-2024-43904

Mitre link : CVE-2024-43904

CVE.ORG link : CVE-2024-43904


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-476

NULL Pointer Dereference