# CVE-2025-39820: drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-09-16T13:00:20.059Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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/

(As written by CVE List.)

## Affected

- Linux Linux: from 1ce69c265a53c61c5c29f97f542ff89af3f3d7e7 before aaec54254b02f5959c3670177037464d828b2140; from 1ce69c265a53c61c5c29f97f542ff89af3f3d7e7 before abebfed208515726760d79cf4f9f1a76b9a10a84; 6.15 (not affected: before 6.15; from 6.16.5 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.15 before 6.16.5; 6.17

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/aaec54254b02f5959c3670177037464d828b2140> (patch)
- <https://git.kernel.org/stable/c/abebfed208515726760d79cf4f9f1a76b9a10a84> (patch)

## Sources

- CVE List: [CVE-2025-39820](https://www.cve.org/CVERecord?id=CVE-2025-39820), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-39820](https://nvd.nist.gov/vuln/detail/CVE-2025-39820), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39820 · Whole record: https://cve.day/CVE-2025-39820.json · Rebuilt by cve.day 2026-11-25T22:59:04.727Z
