CVE-2026-46288 PUBLISHED

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

Assigner: Linux
Reserved: 13.05.2026 Published: 08.06.2026 Updated: 14.06.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 8.4

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 1c668ea65506e67ce2eae07b69bb09fcdd86e309 to 37318d1a27c9cc5a70d3cd7e49e30ec86f2b8ca1 (excl.)
  • affected from 1c668ea65506e67ce2eae07b69bb09fcdd86e309 to 7f0f0926f3010b10cff5e93446258f971e42f2fd (excl.)
  • affected from 1c668ea65506e67ce2eae07b69bb09fcdd86e309 to 6fdad20b7975bdc32e85b45f8f7c640f6687b81f (excl.)
  • affected from 1c668ea65506e67ce2eae07b69bb09fcdd86e309 to faecdd423c27f0d6090156a435ba9dbbac0eaddb (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.12 is affected
  • unaffected from 0 to 6.12 (excl.)
  • unaffected from 6.12.86 to 6.12.* (incl.)
  • unaffected from 6.18.27 to 6.18.* (incl.)
  • unaffected from 7.0.4 to 7.0.* (incl.)
  • unaffected from 7.1 to * (incl.)

References