CVE-2024-43904

Severity CVSS v4.0:
Pending analysis
Type:
CWE-476 NULL Pointer Dereference
Publication date:
26/08/2024
Last modified:
03/11/2025

Description

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

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.10.5 (excluding)