CVE-2026-46288: of: unittest: fix use-after-free in of_unittest_changeset()
In the Linux kernel, the following vulnerability has been resolved:
of: unittest: fix use-after-free in ofunittestchangeset()
The variable 'parent' is assigned the value of 'nchangeset' earlier in the function, meaning both point to the same struct devicenode. The call to ofnodeput(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 ofnodeput() call after the last access to 'parent', avoiding the UAF.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-46288?
The severity of CVE-2026-46288 is rated at 29.
How do I fix CVE-2026-46288?
To fix CVE-2026-46288, it is recommended to upgrade to the latest version of the Linux kernel where the vulnerability has been patched.
What type of vulnerability is CVE-2026-46288?
CVE-2026-46288 is classified as a Use After Free vulnerability.
Which software is affected by CVE-2026-46288?
CVE-2026-46288 affects the Linux kernel.
What is the impact of CVE-2026-46288?
The impact of CVE-2026-46288 may lead to undefined behavior in the Linux kernel due to improper memory handling.