AZL-118112: CVE-2026-143100 affecting package kernel 6.6.161.1-1
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
What system behavior is required to trigger this issue?
A managed software node must be shared with another device, such as when a descendant reuses an ancestor device's firmware node. The issue can occur when the non-owner device is removed and releases the reference belonging to the device that created the managed node.
What is the likely impact if the affected device removal sequence occurs?
The owner device can be left with a dangling pointer after another device using the shared node is deleted. This can lead to invalid lifetime management of the managed software node.
How does the resolved code prevent the issue?
The fix records the device that manages the software node and performs the managed-node release only when removal notification is for that owner device. Removal notifications for other devices using the node no longer detach it or drop the creation reference.