CVE-2024-27045 drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'

High 7.0 Published Updated

A buffer overflow in the Linux kernel's AMD display driver allows attackers to potentially execute code or cause a 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-27045?

CVE-2024-27045 is a high-severity memory corruption vulnerability in Linux kernel, published on 1 May 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: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'

Tell snprintf() to store at most 10 bytes in the output buffer instead of 30.

Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:1508 dp_dsc_clock_en_read() error: snprintf() is printing too much 30 vs 10

Weakness: CWE-120

Which versions are affected by CVE-2024-27045?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-27045?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-27045 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-40331, BELL-CVE-2024-27045, DEBIAN-CVE-2024-27045, GHSA-rmch-28qm-wpc4, UBUNTU-CVE-2024-27045.

Is CVE-2024-27045 in your software?

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

Check your SBOMs for free