CVE-2026-46288

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

HIGH
8.4
CVSS Score
Published: June 8, 2026 at 03:41 PM UTC
Updated: August 5, 2026 at 01:24 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.4
Exploit prediction
EPSS 0.1%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.12 ≤ v < 6.12.866.12 ≤ v < 6.18.276.12 ≤ v < 7.0.46.12 ≤ v < 7.16.13 ≤ v < 6.18.276.19 ≤ v < 7.0.41c668ea65506e67ce2eae07b69bb09fcdd86e3096.12
Vendor states this is fixed in 37318d1a27c9cc5a70d3cd7e49e30ec86f2b8ca1 (fixed)
Vendor states this is fixed in 6fdad20b7975bdc32e85b45f8f7c640f6687b81f (fixed)
Vendor states this is fixed in 7f0f0926f3010b10cff5e93446258f971e42f2fd (fixed)
Vendor states this is fixed in faecdd423c27f0d6090156a435ba9dbbac0eaddb (fixed)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.12.86 (unaffected)
Vendor states this is fixed in 6.18.27 (unaffected)
Vendor states this is fixed in 7.0.4 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

8.4HIGHLinux
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card