CVE-2025-39882 Details
Description
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.
A use-after-free vulnerability has been identified in the Linux kernel's handling of device tree nodes within the Mediatek Direct Rendering Manager (DRM) subsystem. This issue arises because the 'for_each_child_of_node()' helper function improperly manages reference counts, leading to potential memory access errors. The vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/4de37a48b6b58faaded9eb765047cf0d8785ea18 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b2fbe0f9f80b9cfa1e06ddcf8b863d918394ef1d | kernel.org | Patch |
| https://git.kernel.org/stable/c/b58a26cdd4795c1ce6a80e38e9348885555dacd6 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c4901802ed1ce859242e10af06e6a7752cba0497 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.6.105, < 6.6.107 >= 6.12.45, < 6.12.48 >= 6.16.5, < 6.16.8 6.17 rc4 6.17 rc5 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jan 14, 2026 | CVE Modified | CISA-ADP |
| Dec 12, 2025 | Initial Analysis | [email protected] |
| Sep 23, 2025 | New CVE Received | kernel.org |