CVE-2025-39882: 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.
Security readout for executives and security teams
Plain-English summary
A Linux MediaTek graphics-driver bug could release a device-tree object too many times, potentially letting the kernel use freed memory. The supplied CVSS score is 8.4 because successful abuse could affect confidentiality, integrity, and availability. However, exploitation requires local access, and the sources do not establish practical exploitability or attacks in the wild.
Executive priority
Treat as a high-priority kernel maintenance issue on MediaTek-based Linux systems, especially shared or physically accessible devices. Accelerate inventory and patch verification, but avoid declaring an emergency solely from the CVSS score because active exploitation is unsupported and exact affected ranges are incomplete.
Technical view
The drm/mediatek code added an unnecessary of_node_put() during for_each_child_of_node() iteration. Because the iterator already drops each child-node reference, the extra decrement could prematurely free an OF node and cause a kernel use-after-free. The referenced stable commits remove that decrement.
Likely exposure
Exposure is limited to Linux kernels containing the flawed MediaTek DRM code before the applicable stable fix. Systems not using the affected driver may have lower practical exposure. The bundle marks Linux 6.6.105, 6.12.45, 6.16.5, and four listed commit versions as unaffected, but provides no complete affected-version ranges.
Exploitation context
The CVSS vector indicates local attack access, low complexity, no privileges, and no user interaction. CVE-2025-39882 is not listed as KEV in the supplied bundle, and no provided source reports active exploitation, public proof-of-concept code, or confirmed weaponization.
Researcher notes
The weakness is CWE-416 and arises from incorrect reference-count ownership during OF child iteration. Assess reachability through MediaTek display initialization and vendor-specific backports. The bundle identifies fix commits and known-unaffected versions but does not provide introduction commits, complete vulnerable ranges, crash evidence, or exploitation research.
Mitigation direction
Update to a vendor-supported kernel containing the applicable referenced stable fix.
Prioritize systems using MediaTek DRM hardware or loading the associated driver.
Confirm vendor backports when package versions differ from upstream kernel versions.
Review current Linux distribution or device-vendor security guidance before deployment.
Validation and detection
Record each system's kernel package, build identifier, hardware platform, and loaded MediaTek DRM modules.
Verify the installed source or vendor changelog contains the applicable referenced fix.
Confirm versions 6.6.105, 6.12.45, or 6.16.5 are not vendor-modified vulnerable builds.
Retest normal display initialization and stability after applying the kernel update.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-416: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
1ADP providers
5Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.