CVE-2026-143100: software node: only let the owner release a managed node
In the Linux kernel, the following vulnerability has been resolved:
software node: only let the owner release a managed node
devicecreatemanagedsoftwarenode() creates a node whose lifetime is tied to the device it was created for. softwarenodenotifyremove() is called for every device that has the node as its fwnode (primary OR secondary) and, if the node is managed, unconditionally detaches it from that device and drops the creation reference.
This breaks when the node is shared with another device. Example: the i2c-designware copies the parent's fwnode to the adapter's struct device. When the adapter is deleted, it releases the reference that belongs to the owner and the latter ends up with a dangling pointer.
Record the device's "manager" and only perform the actual release when notify is called for that "owner" device.
Note that it was never the intention that managed software nodes would be shared, but descendants reusing ancestor firmware nodes is not uncommon and such use is hard to predict when allocating software nodes.
[ johan: drop temporary variable; skip clearing owner field; mention reuse not intended in commit message ]
Affected Software
Event History
Frequently Asked Questions
Which Linux kernel device configurations are exposed to this issue?
Systems are exposed when a managed software node is shared by more than one device as a primary or secondary firmware node. A noted example is a descendant device reusing an ancestor's firmware node, such as an i2c-designware adapter copying its parent's fwnode.
What event triggers the failure?
Removing a non-owner device that shares the managed node can detach the node and drop the creation reference belonging to its owner. The owner device can then retain a dangling pointer.
What should be done to remediate the issue?
Apply a kernel update containing the referenced fix. The fix records the device that manages the node and releases the managed node only when removal is notified for that owner device.