CVE-2026-139656: leds: st1202: Take a reference on the LED firmware node
In the Linux kernel, the following vulnerability has been resolved:
leds: st1202: Take a reference on the LED firmware node
st1202dtinit() stores each LED's firmware node while walking the device tree with foreachavailablechildofnodescoped(), which drops its reference to the node at the end of every iteration. The LED class stores the pointer with devicesetnode() and does not take a reference of its own, so nothing keeps the node alive for as long as the LED device uses it. That has been the case since the driver was added, when the LED class devices were registered inside that same loop.
Commit c72e455b89f2 ("leds: leds-st1202: Fix NULL pointer access on race condition") moved the registration into a separate loop in st1202probe(), which also leaves the stored pointer unreferenced between the two loops.
With CONFIGOFDYNAMIC the node can be freed while it is still in use, leaving led->fwnode and the LED device's firmware node dangling.
Take a reference when the node is stored and release it through a devm action. The action is registered before the LED class devices are, so it runs after they have been unregistered.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Linux kernelto a version that resolves this vulnerability.Patch c72e455b89f2
Event History
Frequently Asked Questions
Which systems are realistically exposed to this issue?
Systems using the Linux kernel ST1202 LED driver are affected when device-tree nodes can be changed dynamically. The described dangling firmware-node condition specifically requires CONFIG_OF_DYNAMIC, which allows a node to be freed while the LED device still uses it.
What condition is required for exploitation or impact?
A firmware node associated with an ST1202 LED must be removed or otherwise freed after the driver stores its pointer but before the LED device is finished using it. This can leave both led->fwnode and the LED device firmware-node pointer dangling.
What can be done if updating is not immediately possible?
The provided information identifies CONFIG_OF_DYNAMIC as the condition enabling firmware-node removal during use. Avoiding dynamic device-tree changes affecting ST1202 LED nodes reduces exposure until a fix can be deployed.