drm/mediatek: fix potential OF node use-after-free
In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: fix potential OF node use-after-free The for_each_child_of_node() helper drops the reference it takes to each node as it iterates over children and an explicit of_node_put() is only needed when exiting the loop early. Drop the recently introduced bogus additional reference count decrement at each iteration that could potentially lead to a use-after-free.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.48, 6.16.8, 6.6.107
- CVEs
- CVE-2025-39882
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 00:54 UTC · Revision 1
Source evidence
drm/mediatek: fix potential OF node use-after-free
core-osv · Original sourcePublished 23 Sept 2025, 06:00 UTC
In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: fix potential OF node use-after-free The for_each_child_of_node() helper drops the reference it takes to each node as it iterates over children and an explicit of_node_put() is only needed when exiting the loop early. Drop the recently introduced bogus additional reference count decrement at each iteration that could potentially lead to a use-after-free.
osv:CVE-2025-39882
Kernel
Fixed versions: 6.6.107, 6.12.48, 6.16.8
Complete source record
{
"id": "71c89c67d29b0bd6313e48fad499e8f22950822ee5dd84caff632d34e1df6ac9",
"url": "https://osv.dev/vulnerability/CVE-2025-39882",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm/mediatek: fix potential OF node use-after-free",
"summary": "In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: fix potential OF node use-after-free The for_each_child_of_node() helper drops the reference it takes to each node as it iterates over children and an explicit of_node_put() is only needed when exiting the loop early. Drop the recently introduced bogus additional reference count decrement at each iteration that could potentially lead to a use-after-free.",
"evidence": "osv:CVE-2025-39882",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.107",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.48",
"evidence": "/affected/1/ranges"
},
{
"value": "6.16.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-39882",
"aliases": [
"CVE-2025-39882"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "7d98166183d627c0b9daca7672b2191fae0f8a03"
},
{
"fixed": "b2fbe0f9f80b9cfa1e06ddcf8b863d918394ef1d"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "31ce7c089b50c3d3056c37e0e25e7535e4428ae1"
},
{
"fixed": "b58a26cdd4795c1ce6a80e38e9348885555dacd6"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "fae58d0155a979a8c414bbc12db09dd4b2f910d0"
},
{
"fixed": "c4901802ed1ce859242e10af06e6a7752cba0497"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "1f403699c40f0806a707a9a6eed3b8904224021a"
},
{
"fixed": "4de37a48b6b58faaded9eb765047cf0d8785ea18"
}
]
}
],
"versions": [
"v6.6.106",
"v6.6.105",
"v6.12.47",
"v6.12.46",
"v6.12.45",
"v6.16.7",
"v6.16.6",
"v6.16.5"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39882.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.105"
},
{
"fixed": "6.6.107"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.12.45"
},
{
"fixed": "6.12.48"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.16.5"
},
{
"fixed": "6.16.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39882.json"
}
}
],
"modified": "2026-10-28T02:30:40.984036177Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/4de37a48b6b58faaded9eb765047cf0d8785ea18",
"https://git.kernel.org/stable/c/b2fbe0f9f80b9cfa1e06ddcf8b863d918394ef1d",
"https://git.kernel.org/stable/c/b58a26cdd4795c1ce6a80e38e9348885555dacd6",
"https://git.kernel.org/stable/c/c4901802ed1ce859242e10af06e6a7752cba0497",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39882.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-39882",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39882.json"
}
},
"related_cves": [
{
"value": "CVE-2025-39882",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 508736,
"published_at": "2025-09-23T06:00:51.036+00:00"
}