CVE-2025-39882

drm/mediatek: fix potential OF node use-after-free

State
Published
Severity
8.4 High
Published
Sep 23, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 7d98166183d627c0b9daca7672b2191fae0f8a03 to before b2fbe0f9f80b9cfa1e06ddcf8b863d918394ef1dAffected
  • 31ce7c089b50c3d3056c37e0e25e7535e4428ae1 to before b58a26cdd4795c1ce6a80e38e9348885555dacd6Affected
  • fae58d0155a979a8c414bbc12db09dd4b2f910d0 to before c4901802ed1ce859242e10af06e6a7752cba0497Affected
  • 1f403699c40f0806a707a9a6eed3b8904224021a to before 4de37a48b6b58faaded9eb765047cf0d8785ea18Affected
LinuxLinux
  • 6.6.105 to before 6.6.107Affected
  • 6.12.45 to before 6.12.48Affected
  • 6.16.5 to before 6.16.8Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.