CVE-2026-139655

leds: st1202: Do not set brightness from atomic context

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

leds: st1202: Do not set brightness from atomic context

st1202_brightness_set() takes the chip mutex and performs I2C transfers,
both of which can sleep, but it is installed as the brightness_set
callback. led_set_brightness_nopm() calls that op directly on the
assumption that it never sleeps, including from softirq context, so the
driver can sleep in atomic context.

The driver also installs brightness_set_blocking, but the core only
falls back to it when brightness_set is absent, so st1202_led_set() was
never reached. It merely turned the channel on or off and ignored the
requested brightness, so dropping brightness_set on its own would have
lost brightness control entirely.

Move the register programming into st1202_led_set() so the blocking
callback honours the brightness value, and drop brightness_set. The core
now defers the update to a work queue, where sleeping is allowed. Errors
from the register writes are propagated rather than discarded.
st1202_led_set() was the last user of the locking st1202_channel_set()
wrapper, which is removed.

Programming every PWM slot to full scale is kept: it is what makes the
brightness visible while the global sequencer is running, without having
to stop the sequencer and disturb the other channels.

Analysis

AI-generated

Technical impact

In the Linux kernel’s LED subsystem, the st1202 driver implements a brightness_set callback that acquires a mutex and performs I2C transfers, both of which can sleep. The kernel’s LED API assumes that brightness_set never sleeps, even when invoked from softirq or other atomic contexts. Because the driver’s brightness_set can block while holding a lock, an atomic context may deadlock or trigger a kernel panic. In addition, the driver falls back to a non‑blocking brightness_set that only toggles the channel, causing requested brightness values to be ignored and resulting in loss of functional brightness adjustment. The net effect is a denial of service and loss of functional brightness adjustment.

Affected Systems

The flaw resides in the st1202 LED driver, which is part of the Linux kernel. Any kernel build that includes the st1202 driver before the patch is affected. The advisory does not list specific kernel version numbers, so all kernels that ship with an unpatched st1202 module are considered at risk. This includes both currently released kernels and those still maintained in security–patched branches that have not yet incorporated the fix.

Risk and Exploitability

The vulnerability has a CVSS score of 4.4, EPSS is not available, and it is not listed in CISA’s KEV catalog. Exploitation requires the ability to invoke a brightness change from a privileged kernel routine that runs in an atomic or softirq context, which is normally restricted to trusted kernel code. If an attacker can trigger such a call, the kernel may deadlock or crash, providing a denial of service. The risk to a typical system is moderate because the required conditions are not trivial, but upon successful exploitation the impact is severe.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that contains the st1202 driver patch that removes the blocking brightness_set callback and defers register programming to a work queue.
  • If a kernel update cannot be applied immediately, blacklist or remove the st1202 LED driver so that the kernel does not load it, or rebuild the kernel without the driver.
  • Ensure that any kernel modules or userland utilities that attempt to change LED brightness use a non‑blocking or atomic‑safe driver and avoid invoking brightness_set from softirq or interrupt context.

Generated by OpenCVE AI on December 1, 2026 at 17:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-1130
Type Values Removed Values Added
Weaknesses CWE-1322
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-1130
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: leds: st1202: Do not set brightness from atomic context st1202_brightness_set() takes the chip mutex and performs I2C transfers, both of which can sleep, but it is installed as the brightness_set callback. led_set_brightness_nopm() calls that op directly on the assumption that it never sleeps, including from softirq context, so the driver can sleep in atomic context. The driver also installs brightness_set_blocking, but the core only falls back to it when brightness_set is absent, so st1202_led_set() was never reached. It merely turned the channel on or off and ignored the requested brightness, so dropping brightness_set on its own would have lost brightness control entirely. Move the register programming into st1202_led_set() so the blocking callback honours the brightness value, and drop brightness_set. The core now defers the update to a work queue, where sleeping is allowed. Errors from the register writes are propagated rather than discarded. st1202_led_set() was the last user of the locking st1202_channel_set() wrapper, which is removed. Programming every PWM slot to full scale is kept: it is what makes the brightness visible while the global sequencer is running, without having to stop the sequencer and disturb the other channels.
Title leds: st1202: Do not set brightness from atomic context
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1322

    Use of Blocking Code in Single-threaded, Non-blocking Context

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:36 PM