CVE-2024-42117 drm/amd/display: ASSERT when failing to find index by plane/stream id

High 7.8 Published Updated

A missing bounds check in the AMD display driver allows negative array indices, potentially causing a kernel crash or 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-42117?

CVE-2024-42117 is a high-severity vulnerability in Linux kernel, published on 30 Jul 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: ASSERT when failing to find index by plane/stream id

[WHY] find_disp_cfg_idx_by_plane_id and find_disp_cfg_idx_by_stream_id returns an array index and they return -1 when not found; however, -1 is not a valid index number.

[HOW] When this happens, call ASSERT(), and return a positive number (which is fewer than callers' array size) instead.

This fixes 4 OVERRUN and 2 NEGATIVE_RETURNS issues reported by Coverity.

Weakness: CWE-129

Which versions are affected by CVE-2024-42117?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42117?

Apply the vendor's patch.

Is CVE-2024-42117 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-42117, DEBIAN-CVE-2024-42117, GHSA-v2hj-v7hg-p8cx, ROOT-OS-UBUNTU-2204-CVE-2024-42117, UBUNTU-CVE-2024-42117.

Is CVE-2024-42117 in your software?

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

Check your SBOMs for free