CVE-2024-43904 drm/amd/display: Add null checks for 'stream' and 'plane' before dereferencing

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel's AMD display driver can cause a system crash, requiring a kernel patch to prevent denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-43904?

CVE-2024-43904 is a medium-severity vulnerability in Linux kernel, published on 26 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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)

Weakness: CWE-476

Which versions are affected by CVE-2024-43904?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-43904?

Apply the vendor's patch.

Is CVE-2024-43904 being exploited?

There is no known exploitation of CVE-2024-43904 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-48203, AZL-48243, BELL-CVE-2024-43904, DEBIAN-CVE-2024-43904, GHSA-cccq-559f-x22v, ROOT-OS-DEBIAN-11-CVE-2024-43904 and 1 more.

Is CVE-2024-43904 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free