CVE-2026-139656
publishedleds: st1202: Take a reference on the LED firmware node
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux259230378c65ebb6b4815b4dd175c5298428b9fa to < 484f13fc8c23dfb460836b31c73145cbf7f31f61 · 259230378c65ebb6b4815b4dd175c5298428b9fa to < 9f76fdb33f1ce78d8ef41a0f912f42113c7dd253 · 259230378c65ebb6b4815b4dd175c5298428b9fa to < 5882de94edf7a53812a76a882a95e1e86d7105d9 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: leds: st1202: Take a reference on the LED firmware node st1202_dt_init() stores each LED's firmware node while walking the device tree with for_each_available_child_of_node_scoped(), which drops its reference to the node at the end of every iteration. The LED class stores the pointer with device_set_node() 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 st1202_probe(), which also leaves the stored pointer unreferenced between the two loops. With CONFIG_OF_DYNAMIC 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 259230378c65ebb6b4815b4dd175c5298428b9fa to < 484f13fc8c23dfb460836b31c73145cbf7f31f61 (affected · git)259230378c65ebb6b4815b4dd175c5298428b9fa to < 9f76fdb33f1ce78d8ef41a0f912f42113c7dd253 (affected · git)259230378c65ebb6b4815b4dd175c5298428b9fa to < 5882de94edf7a53812a76a882a95e1e86d7105d9 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.14 (affected)0 to < 6.14 (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
leds: st1202: Take a reference on the LED firmware node
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7c2f02dfc366b096fa27380866fc735648d0a1538156d27052ca8dde924874fb
- Ingested
- 30 Nov 2026, 13:43:49 UTC
- Source record
- Official CVE record