Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f96278810150fc39085d1872e5b39ea06366d03e to < 004a0ee2e5315f1245775b369fcb940e8cda3807affectedf96278810150fc39085d1872e5b39ea06366d03e to < f6f70b12ae3e4074e4cd3f42cd66fd482ce7a4b5affectedf96278810150fc39085d1872e5b39ea06366d03e to < 50c3663790c61648a51f197970f660fd543269a7affectedf96278810150fc39085d1872e5b39ea06366d03e to < 936f1ffcb87a1c50938a21176a6463af162cf4b5affectedf96278810150fc39085d1872e5b39ea06366d03e to < d5151496a0a2b19c9c0c7b0ebf86b3de55a8fa3aaffectedf96278810150fc39085d1872e5b39ea06366d03e to < 7dc6a769153c0457077a0da4888a00f61e66de15affectedf96278810150fc39085d1872e5b39ea06366d03e to < 5857035a3b53a4e7b5a0d5a740189901ece0b079affectedf96278810150fc39085d1872e5b39ea06366d03e to < 814f2da6995772c07a7c9c2cc6028b6e3f3ecc9caffectedb52ca352489be8beb7de3a8181509a0deaf72e21affected4.19.49 to < 4.20affected
Linux Linux
Default version status: affected
5.0affected0 to < 5.0unaffected5.10.273 to ≤ 5.10.*unaffected5.15.224 to ≤ 5.15.*unaffected6.1.191 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.113 to ≤ 6.12.*unaffected6.18.56 to ≤ 6.18.*unaffected7.2.10 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/004a0ee2e5315f1245775b369fcb940e8cda3807 ↗
- https://git.kernel.org/stable/c/f6f70b12ae3e4074e4cd3f42cd66fd482ce7a4b5 ↗
- https://git.kernel.org/stable/c/50c3663790c61648a51f197970f660fd543269a7 ↗
- https://git.kernel.org/stable/c/936f1ffcb87a1c50938a21176a6463af162cf4b5 ↗
- https://git.kernel.org/stable/c/d5151496a0a2b19c9c0c7b0ebf86b3de55a8fa3a ↗
- https://git.kernel.org/stable/c/7dc6a769153c0457077a0da4888a00f61e66de15 ↗
- https://git.kernel.org/stable/c/5857035a3b53a4e7b5a0d5a740189901ece0b079 ↗
- https://git.kernel.org/stable/c/814f2da6995772c07a7c9c2cc6028b6e3f3ecc9c ↗