Bug 2486469 (CVE-2026-46288) - CVE-2026-46288 kernel: of: unittest: fix use-after-free in of_unittest_changeset()
Summary: CVE-2026-46288 kernel: of: unittest: fix use-after-free in of_unittest_change...
Keywords:
Status: NEW
Alias: CVE-2026-46288
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-08 17:03 UTC by OSIDB Bzimport
Modified: 2026-06-08 19:37 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-08 17:03:39 UTC
In the Linux kernel, the following vulnerability has been resolved:

of: unittest: fix use-after-free in of_unittest_changeset()

The variable 'parent' is assigned the value of 'nchangeset' earlier in the
function, meaning both point to the same struct device_node. The call to
of_node_put(nchangeset) can decrement the reference count to zero and
free the node if there are no other holders. After that, the code still
uses 'parent' to check for the presence of a property and to read a
string property, leading to a use-after-free.

Fix this by moving the of_node_put() call after the last access to
'parent', avoiding the UAF.


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