{"id":"CVE-2025-39820","summary":"drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset\n\nThe drm_atomic_get_new_connector_state() can return NULL if the\nconnector is not part of the atomic state. Add a check to prevent\na NULL pointer dereference.\n\nThis follows the same pattern used in dpu_encoder_update_topology()\nwithin the same file, which checks for NULL before using conn_state.\n\nPatchwork: https://patchwork.freedesktop.org/patch/665188/","modified":"2026-04-02T12:48:10.282110Z","published":"2025-09-16T13:00:20.059Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39820.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/aaec54254b02f5959c3670177037464d828b2140"},{"type":"WEB","url":"https://git.kernel.org/stable/c/abebfed208515726760d79cf4f9f1a76b9a10a84"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39820.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39820"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1ce69c265a53c61c5c29f97f542ff89af3f3d7e7"},{"fixed":"aaec54254b02f5959c3670177037464d828b2140"},{"fixed":"abebfed208515726760d79cf4f9f1a76b9a10a84"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39820.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}