CVE-2026-139655: leds: st1202: Do not set brightness from atomic context
In the Linux kernel, the following vulnerability has been resolved:
leds: st1202: Do not set brightness from atomic context
st1202brightnessset() takes the chip mutex and performs I2C transfers, both of which can sleep, but it is installed as the brightnessset callback. ledsetbrightnessnopm() 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 brightnesssetblocking, but the core only falls back to it when brightnessset is absent, so st1202ledset() was never reached. It merely turned the channel on or off and ignored the requested brightness, so dropping brightnessset on its own would have lost brightness control entirely.
Move the register programming into st1202ledset() so the blocking callback honours the brightness value, and drop brightnessset. The core now defers the update to a work queue, where sleeping is allowed. Errors from the register writes are propagated rather than discarded. st1202ledset() was the last user of the locking st1202channelset() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel ST1202 LED driver are exposed when that driver handles brightness updates. The problematic path can be reached when LED brightness is set through the non-power-management brightness API, including from softirq context.
What conditions trigger the bug?
The issue occurs when the driver's brightness_set callback runs and attempts to take its chip mutex and perform I2C transfers. Those operations can sleep, but the callback may be invoked from atomic or softirq context where sleeping is not permitted.
What changes in the fix?
The fix removes the non-blocking brightness_set callback and moves register programming to the blocking callback. Brightness updates are then deferred to a work queue, where sleeping is allowed, and I2C register-write errors are propagated.