CVE-2024-45015 drm/msm/dpu: move dpu_encoder's connector assignment to atomic_enable()

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel's DPU driver can cause a system crash when specific display state transitions occur.

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

CVE-2024-45015 is a medium-severity vulnerability in Linux kernel, published on 11 Sep 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/msm/dpu: move dpu_encoder's connector assignment to atomic_enable()

For cases where the crtc's connectors_changed was set without enable/active getting toggled , there is an atomic_enable() call followed by an atomic_disable() but without an atomic_mode_set().

This results in a NULL ptr access for the dpu_encoder_get_drm_fmt() call in the atomic_enable() as the dpu_encoder's connector was cleared in the atomic_disable() but not re-assigned as there was no atomic_mode_set() call.

Fix the NULL ptr access by moving the assignment for atomic_enable() and also use drm_atomic_get_new_connector_for_encoder() to get the connector from the atomic_state.

Patchwork: https://patchwork.freedesktop.org/patch/606729/

Weakness: CWE-476

Which versions are affected by CVE-2024-45015?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-45015?

Apply the vendor's patch.

Is CVE-2024-45015 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-49176, AZL-49248, BELL-CVE-2024-45015, DEBIAN-CVE-2024-45015, GHSA-375r-hmjc-j5gg, ROOT-OS-DEBIAN-11-CVE-2024-45015 and 3 more.

Is CVE-2024-45015 in your software?

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

Check your SBOMs for free