{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1ce69c265a53c61c5c29f97f542ff89af3f3d7e7"
            },
            {
              "fixed": "aaec54254b02f5959c3670177037464d828b2140"
            },
            {
              "fixed": "abebfed208515726760d79cf4f9f1a76b9a10a84"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39820.json"
  },
  "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/",
  "id": "CVE-2025-39820",
  "modified": "2026-04-01T23:07:53.093792264Z",
  "published": "2025-09-16T13:00:20.059Z",
  "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"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset"
}