CVE-2024-42118 drm/amd/display: Do not return negative stream id for array

High 7.8 Published Updated

A flaw in the Linux kernel's AMD display driver could cause an out-of-bounds read, potentially leading to a system 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-42118?

CVE-2024-42118 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: Do not return negative stream id for array

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

[HOW] When this happens, call ASSERT(), and return a zero instead.

This fixes an OVERRUN and an NEGATIVE_RETURNS issues reported by Coverity.

Weakness: CWE-125

Which versions are affected by CVE-2024-42118?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42118?

Apply the vendor's patch.

Is CVE-2024-42118 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-62604, AZL-67890, BELL-CVE-2024-42118, DEBIAN-CVE-2024-42118, GHSA-35xp-mwcf-j33g, ROOT-OS-DEBIAN-11-CVE-2024-42118 and 3 more.

Is CVE-2024-42118 in your software?

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

Check your SBOMs for free