CVE-2026-98855: of/overlay: put property on deadprops only after changeset add succeeds
From: Greg Kroah-Hartman <[email protected]>
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.
The Linux kernel CVE team has assigned CVE-2026-98855 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.0 with commit f96278810150fc39085d1872e5b39ea06366d03e and fixed in 6.12.113 with commit d5151496a0a2b19c9c0c7b0ebf86b3de55a8fa3a Issue introduced in 5.0 with commit f96278810150fc39085d1872e5b39ea06366d03e and fixed in 6.18.56 with commit 7dc6a769153c0457077a0da4888a00f61e66de15 Issue introduced in 5.0 with commit f96278810150fc39085d1872e5b39ea06366d03e and fixed in 7.2.10 with commit 5857035a3b53a4e7b5a0d5a740189901ece0b079 Issue introduced in 5.0 with commit f96278810150fc39085d1872e5b39ea06366d03e and fixed in 7.3-rc6 with commit 814f2da6995772c07a7c9c2cc6028b6e3f3ecc9c Issue introduced in 4.19.49 with commit b52ca352489be8beb7de3a8181509a0deaf72e21
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98855
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/of/overlay.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
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