{
  "id": "CVE-2025-39882",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39882",
  "published_at": "2025-09-23T06:00:51.036Z",
  "title": "drm/mediatek: fix potential OF node use-after-free",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/mediatek: fix potential OF node use-after-free\n\nThe for_each_child_of_node() helper drops the reference it takes to each\nnode as it iterates over children and an explicit of_node_put() is only\nneeded when exiting the loop early.\n\nDrop the recently introduced bogus additional reference count decrement\nat each iteration that could potentially lead to a use-after-free.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 8.4,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 7d98166183d627c0b9daca7672b2191fae0f8a03, \u003c b2fbe0f9f80b9cfa1e06ddcf8b863d918394ef1d",
          "\u003e= 31ce7c089b50c3d3056c37e0e25e7535e4428ae1, \u003c b58a26cdd4795c1ce6a80e38e9348885555dacd6",
          "\u003e= fae58d0155a979a8c414bbc12db09dd4b2f910d0, \u003c c4901802ed1ce859242e10af06e6a7752cba0497",
          "\u003e= 1f403699c40f0806a707a9a6eed3b8904224021a, \u003c 4de37a48b6b58faaded9eb765047cf0d8785ea18"
        ],
        "fixed_in": [
          "b2fbe0f9f80b9cfa1e06ddcf8b863d918394ef1d",
          "b58a26cdd4795c1ce6a80e38e9348885555dacd6",
          "c4901802ed1ce859242e10af06e6a7752cba0497",
          "4de37a48b6b58faaded9eb765047cf0d8785ea18"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 6.6.105, \u003c 6.6.107",
          "\u003e= 6.12.45, \u003c 6.12.48",
          "\u003e= 6.16.5, \u003c 6.16.8"
        ],
        "fixed_in": [
          "6.6.107",
          "6.12.48",
          "6.16.8"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to b2fbe0f9f80b9cfa1e06ddcf8b863d918394ef1d or b58a26cdd4795c1ce6a80e38e9348885555dacd6 or c4901802ed1ce859242e10af06e6a7752cba0497 or 4de37a48b6b58faaded9eb765047cf0d8785ea18 or later.",
      "Upgrade Linux to 6.6.107 or 6.12.48 or 6.16.8 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
