Bug 2397560 (CVE-2025-39882) - CVE-2025-39882 kernel: drm/mediatek: fix potential OF node use-after-free
Summary: CVE-2025-39882 kernel: drm/mediatek: fix potential OF node use-after-free
Keywords:
Status: NEW
Alias: CVE-2025-39882
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-23 07:01 UTC by OSIDB Bzimport
Modified: 2025-09-23 17:28 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-23 07:01:43 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.


Note You need to log in before you can comment on or make changes to this bug.