of/overlay: put property on deadprops only after changeset add succeeds
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 4.20, 6.6.160, 6.12.113, 6.18.56, 7.2.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: of/overlay: put property on deadprops only after changeset add succeeds add_changeset_property() links a new property of a not-yet-live target node into the node's deadprops list before handing it to of_changeset_add_property(). If that fails, the error path frees the property but leaves the freed pointer linked in deadprops, and of_node_release() frees it a second time when the aborted overlay's node is released. Record the changeset entry first and link the property into deadprops only on success. of_changeset_add_property() never looks at the node's property lists, so the order of the two steps is otherwise immaterial, and the error path frees a property that nothing references.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 4.19.49 · fixed in 4.20
- Linux Linux
5.0
- KernelLinux
From 5.0.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.13.0 · fixed in 6.18.56; From 6.19.0 · fixed in 7.2.10
References 8
git.kernel.org
- stable/c/004a0ee2e5315f1245775b369fcb940e8cda3807
- stable/c/f6f70b12ae3e4074e4cd3f42cd66fd482ce7a4b5
- stable/c/50c3663790c61648a51f197970f660fd543269a7
- stable/c/936f1ffcb87a1c50938a21176a6463af162cf4b5
- stable/c/d5151496a0a2b19c9c0c7b0ebf86b3de55a8fa3a
- stable/c/7dc6a769153c0457077a0da4888a00f61e66de15
- stable/c/5857035a3b53a4e7b5a0d5a740189901ece0b079
- stable/c/814f2da6995772c07a7c9c2cc6028b6e3f3ecc9c