CVE-2024-49913 drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream

Medium 5.5 Published Updated

A null pointer dereference in the 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-49913?

CVE-2024-49913 is a medium-severity vulnerability in Linux kernel, published on 21 Oct 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 check for top_pipe_to_program in commit_planes_for_stream

This commit addresses a null pointer dereference issue in the `commit_planes_for_stream` function at line 4140. The issue could occur when `top_pipe_to_program` is null.

The fix adds a check to ensure `top_pipe_to_program` is not null before accessing its stream_res. This prevents a null pointer dereference.

Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4140 commit_planes_for_stream() error: we previously assumed 'top_pipe_to_program' could be null (see line 3906)

Weakness: CWE-476

Which versions are affected by CVE-2024-49913?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-49913?

Apply the vendor's patch.

Is CVE-2024-49913 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-51144, AZL-51303, BELL-CVE-2024-49913, DEBIAN-CVE-2024-49913, GHSA-q43m-8jgc-g8w7, UBUNTU-CVE-2024-49913.

Is CVE-2024-49913 in your software?

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

Check your SBOMs for free