CVE-2024-42227 drm/amd/display: Fix overlapping copy within dml_core_mode_programming

Medium 4.7 Published Updated

A memory corruption vulnerability in the Linux kernel's AMD display driver allows for potential denial of service due to overlapping memory copies.

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-42227?

CVE-2024-42227 is a medium-severity memory corruption 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: Fix overlapping copy within dml_core_mode_programming

[WHY] &mode_lib->mp.Watermark and &locals->Watermark are the same address. memcpy may lead to unexpected behavior.

[HOW] memmove should be used.

Which versions are affected by CVE-2024-42227?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42227?

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-42227 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-47079, AZL-47183, BELL-CVE-2024-42227, DEBIAN-CVE-2024-42227, GHSA-6764-gfvg-wvf4, UBUNTU-CVE-2024-42227.

Is CVE-2024-42227 in your software?

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

Check your SBOMs for free