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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:46.239Z
- **Modified:** 2026-11-30T14:19:49.500Z

> **AI summary (AI-generated, claude-haiku-5-5):** A missing device tree node reference in the Linux kernel st1202 LED driver can leave the LED firmware node dangling, risking use-after-free when dynamic devicetree is enabled.

## Who should check

- Anyone running Linux \>= 259230378c65ebb6b4815b4dd175c5298428b9fa, \< 484f13fc8c23dfb460836b31c73145cbf7f31f61; \>= 259230378c65ebb6b4815b4dd175c5298428b9fa, \< 9f76fdb33f1ce78d8ef41a0f912f42113c7dd253; \>= 259230378c65ebb6b4815b4dd175c5298428b9fa, \< 5882de94edf7a53812a76a882a95e1e86d7105d9
- Anyone running Linux 6.14

## 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.

## Affected and fixed versions

- Linux: \>= 259230378c65ebb6b4815b4dd175c5298428b9fa, \< 484f13fc8c23dfb460836b31c73145cbf7f31f61; \>= 259230378c65ebb6b4815b4dd175c5298428b9fa, \< 9f76fdb33f1ce78d8ef41a0f912f42113c7dd253; \>= 259230378c65ebb6b4815b4dd175c5298428b9fa, \< 5882de94edf7a53812a76a882a95e1e86d7105d9 (cvelist)
- Linux: 6.14 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 5882de94edf7a53812a76a882a95e1e86d7105d9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139656. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139656.md
Affected: Linux >= 259230378c65ebb6b4815b4dd175c5298428b9fa, < 484f13fc8c23dfb460836b31c73145cbf7f31f61; >= 259230378c65ebb6b4815b4dd175c5298428b9fa, < 9f76fdb33f1ce78d8ef41a0f912f42113c7dd253; >= 259230378c65ebb6b4815b4dd175c5298428b9fa, < 5882de94edf7a53812a76a882a95e1e86d7105d9; Linux 6.14
Fixed in: Linux 484f13fc8c23dfb460836b31c73145cbf7f31f61, Linux 9f76fdb33f1ce78d8ef41a0f912f42113c7dd253, Linux 5882de94edf7a53812a76a882a95e1e86d7105d9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139656 being exploited?

There is no confirmed exploitation: CVE-2026-139656 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139656?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139656?

Linux \>= 259230378c65ebb6b4815b4dd175c5298428b9fa, \< 484f13fc8c23dfb460836b31c73145cbf7f31f61; \>= 259230378c65ebb6b4815b4dd175c5298428b9fa, \< 9f76fdb33f1ce78d8ef41a0f912f42113c7dd253; \>= 259230378c65ebb6b4815b4dd175c5298428b9fa, \< 5882de94edf7a53812a76a882a95e1e86d7105d9; Linux 6.14.

### Is there a fix for CVE-2026-139656?

Yes. Fixed in Linux 484f13fc8c23dfb460836b31c73145cbf7f31f61, Linux 9f76fdb33f1ce78d8ef41a0f912f42113c7dd253, Linux 5882de94edf7a53812a76a882a95e1e86d7105d9. Upgrade Linux to 5882de94edf7a53812a76a882a95e1e86d7105d9 or later.

### How do I check if I'm affected by CVE-2026-139656?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/484f13fc8c23dfb460836b31c73145cbf7f31f61>
- other: <https://git.kernel.org/stable/c/9f76fdb33f1ce78d8ef41a0f912f42113c7dd253>
- other: <https://git.kernel.org/stable/c/5882de94edf7a53812a76a882a95e1e86d7105d9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139656>

HTML: <https://flawdb.com/CVE-2026-139656> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139656>
