CVE-2026-46288

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

High · published June 8, 2026

CVSS v3.1
8.4
EPSS
0%
Percentile
8.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.4 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00190 · 8.2th percentile
Published
2026-06-08T15:41Z
EPSS history
Timeline
  • 08 JUN 15:41Z
    of: unittest: fix use-after-free in of_unittest_changeset()
    cvelistv5