Read the docs

Use-after-free risk in Linux kernel st1202 LED firmware node

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from CNA.

Summary

In the Linux kernel, the st1202 LED driver stores each LED's firmware node without taking a reference on it. With CONFIG_OF_DYNAMIC enabled, the node can be freed while the LED device still uses it, leaving the firmware node pointer dangling. Linux kernel versions from 6.14 are affected; fixed versions are 6.18.65, 7.3.6 and 7.4-rc1.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

Fix Fixed Linux (Linux): 6.18.65, 7.3.6, 7.4-rc1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
LinuxLinux6.14 and later6.18.65, 7.3.6, 7.4-rc1Patch availableCNA
  • Linux VendorLinux Affected 6.14 and later Fixed in 6.18.65, 7.3.6, 7.4-rc1 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*——Linux
  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions — — ·Linux

Remediation

Update to Linux kernel 6.18.65, 7.3.6, 7.4-rc1 or a later release. The fix takes a reference on the LED firmware node when it is stored and releases it through a devm action that runs after the LED class devices are unregistered.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA Linux (Linux) Fixed in 6.18.65, 7.3.6, 7.4-rc1

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-139656
  2. 2026-11-30 Alias added: GHSA-2v4r-fq89-2693

References

  • TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
  • TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
  • TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
  • TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
  • TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
See all 23530 →

Sources