CVE-2026-139656: leds: st1202: Take a reference on the LED firmware node

Published Nov 30, 2026
·
Updated

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

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch c72e455b89f2

Event History

Nov 30, 2026
CVE Published
via MITRE·01:36 PM
Data Sourced
via MITRE·01:36 PM
Description

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203