CVE-2026-46288

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

State
Published
Severity
8.4 High
Published
Jun 8, 2026
Updated
Aug 5, 2026
Reserved
May 13, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1c668ea65506e67ce2eae07b69bb09fcdd86e309 to before 37318d1a27c9cc5a70d3cd7e49e30ec86f2b8ca1Affected
  • 1c668ea65506e67ce2eae07b69bb09fcdd86e309 to before 7f0f0926f3010b10cff5e93446258f971e42f2fdAffected
  • 1c668ea65506e67ce2eae07b69bb09fcdd86e309 to before 6fdad20b7975bdc32e85b45f8f7c640f6687b81fAffected
  • 1c668ea65506e67ce2eae07b69bb09fcdd86e309 to before faecdd423c27f0d6090156a435ba9dbbac0eaddbAffected
LinuxLinux
  • 6.12Affected
  • before 6.12Not affected
  • 6.12.86 through 6.12.*Not affected
  • 6.18.27 through 6.18.*Not affected
  • 7.0.4 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.