CVE-2024-56538 drm: zynqmp_kms: Unplug DRM device before removal

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's ZynqMP DRM driver allows local attackers to cause crashes or potentially execute code via userspace access.

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

CVE-2024-56538 is a high-severity use after free vulnerability in Linux kernel, published on 27 Dec 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: zynqmp_kms: Unplug DRM device before removal

Prevent userspace accesses to the DRM device from causing use-after-frees by unplugging the device before we remove it. This causes any further userspace accesses to result in an error without further calls into this driver's internals.

Weakness: CWE-416

Which versions are affected by CVE-2024-56538?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-56538?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-56538 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-55626, BELL-CVE-2024-56538, DEBIAN-CVE-2024-56538, GHSA-qf3g-cg7v-c4x9, ROOT-OS-DEBIAN-11-CVE-2024-56538, ROOT-OS-DEBIAN-12-CVE-2024-56538 and 2 more.

Is CVE-2024-56538 in your software?

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

Check your SBOMs for free