CVE-2024-45015

drm/msm/dpu: move dpu_encoder's connector assignment to atomic_enable()

State
Published
Severity
Not scored
Published
Sep 11, 2024
Updated
May 11, 2026
Reserved
Aug 21, 2024

Read the record on cve.org

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/

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef to before 3fb61718bcbe309279205d1cc275a6435611dc77Affected
  • 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef to before 3bacf814b6a61cc683c68465f175ebd938f09c52Affected
  • 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef to before aedf02e46eb549dac8db4821a6b9f0c6bf6e3990Affected
LinuxLinux
  • 4.19Affected
  • before 4.19Not affected
  • 6.6.48 through 6.6.*Not affected
  • 6.10.7 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.