What’s Vulnerable › Vulnerabilities
CVE-2026-46288: of: unittest: fix use-after-free in of_unittest_changeset()
- Severity: high (CVSS 8.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-08 · updated 2026-07-23
- Weakness: CWE-416
Description
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.
Affected products
- Linux kernel: from 6.12 before 6.12.86; from 6.13 before 6.18.27; from 6.19 before 7.0.4 — fixed in 6.12.86, 6.18.27, 7.0.4
How to fix
Upgrade to a fixed version: Linux kernel 6.12.86, 6.18.27, 7.0.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/37318d1a27c9cc5a70d3cd7e49e30ec86f2b8ca1
- https://git.kernel.org/stable/c/6fdad20b7975bdc32e85b45f8f7c640f6687b81f
- https://git.kernel.org/stable/c/7f0f0926f3010b10cff5e93446258f971e42f2fd
- https://git.kernel.org/stable/c/faecdd423c27f0d6090156a435ba9dbbac0eaddb
Get alerted when CVE-2026-46288 or the next vulnerability affects your stack