# CVE-2026-46288: of: unittest: fix use-after-free in of_unittest_changeset()

- Severity: High 8.4 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-06-08T15:41:31.868Z
- Modified: 2026-08-05T12:31:02.134Z
- Weaknesses: CWE-416
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1c668ea65506e67ce2eae07b69bb09fcdd86e309 before 37318d1a27c9cc5a70d3cd7e49e30ec86f2b8ca1; from 1c668ea65506e67ce2eae07b69bb09fcdd86e309 before 7f0f0926f3010b10cff5e93446258f971e42f2fd; from 1c668ea65506e67ce2eae07b69bb09fcdd86e309 before 6fdad20b7975bdc32e85b45f8f7c640f6687b81f; from 1c668ea65506e67ce2eae07b69bb09fcdd86e309 before faecdd423c27f0d6090156a435ba9dbbac0eaddb; 6.12 (not affected: before 6.12; from 6.12.86 up to 6.12.*; from 6.18.27 up to 6.18.*; from 7.0.4 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.12 before 6.12.86; from 6.13 before 6.18.27; from 6.19 before 7.0.4

## References

- <https://git.kernel.org/stable/c/37318d1a27c9cc5a70d3cd7e49e30ec86f2b8ca1> (patch)
- <https://git.kernel.org/stable/c/7f0f0926f3010b10cff5e93446258f971e42f2fd> (patch)
- <https://git.kernel.org/stable/c/6fdad20b7975bdc32e85b45f8f7c640f6687b81f> (patch)
- <https://git.kernel.org/stable/c/faecdd423c27f0d6090156a435ba9dbbac0eaddb> (patch)

## Sources

- CVE List: [CVE-2026-46288](https://www.cve.org/CVERecord?id=CVE-2026-46288), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-46288](https://nvd.nist.gov/vuln/detail/CVE-2026-46288), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-46288 · Whole record: https://cve.day/CVE-2026-46288.json · Rebuilt by cve.day 2026-11-25T22:59:24.005Z
