CVE-2025-39820

drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset

State
Published
Severity
5.5 Medium
Published
Sep 16, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset

The drm_atomic_get_new_connector_state() can return NULL if the connector is not part of the atomic state. Add a check to prevent a NULL pointer dereference.

This follows the same pattern used in dpu_encoder_update_topology() within the same file, which checks for NULL before using conn_state.

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

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 1ce69c265a53c61c5c29f97f542ff89af3f3d7e7 to before aaec54254b02f5959c3670177037464d828b2140Affected
  • 1ce69c265a53c61c5c29f97f542ff89af3f3d7e7 to before abebfed208515726760d79cf4f9f1a76b9a10a84Affected
LinuxLinux
  • 6.15Affected
  • before 6.15Not affected
  • 6.16.5 through 6.16.*Not affected
  • 6.17 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.