{"id":"CVE-2026-139655","aliases":["CVE-2026-139655"],"related":[],"kind":"vulnerability","state":"published","title":"leds: st1202: Do not set brightness from atomic context","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nleds: st1202: Do not set brightness from atomic context\n\nst1202_brightness_set() takes the chip mutex and performs I2C transfers,\nboth of which can sleep, but it is installed as the brightness_set\ncallback. led_set_brightness_nopm() calls that op directly on the\nassumption that it never sleeps, including from softirq context, so the\ndriver can sleep in atomic context.\n\nThe driver also installs brightness_set_blocking, but the core only\nfalls back to it when brightness_set is absent, so st1202_led_set() was\nnever reached. It merely turned the channel on or off and ignored the\nrequested brightness, so dropping brightness_set on its own would have\nlost brightness control entirely.\n\nMove the register programming into st1202_led_set() so the blocking\ncallback honours the brightness value, and drop brightness_set. The core\nnow defers the update to a work queue, where sleeping is allowed. Errors\nfrom the register writes are propagated rather than discarded.\nst1202_led_set() was the last user of the locking st1202_channel_set()\nwrapper, which is removed.\n\nProgramming every PWM slot to full scale is kept: it is what makes the\nbrightness visible while the global sequencer is running, without having\nto stop the sequencer and disturb the other channels.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nleds: st1202: Do not set brightness from atomic context\n\nst1202_brightness_set() takes the chip mutex and performs I2C transfers,\nboth of which can sleep, but it is installed as the brightness_set\ncallback. led_set_brightness_nopm() calls that op directly on the\nassumption that it never sleeps, including from softirq context, so the\ndriver can sleep in atomic context.\n\nThe driver also installs brightness_set_blocking, but the core only\nfalls back to it when brightness_set is absent, so st1202_led_set() was\nnever reached. It merely turned the channel on or off and ignored the\nrequested brightness, so dropping brightness_set on its own would have\nlost brightness control entirely.\n\nMove the register programming into st1202_led_set() so the blocking\ncallback honours the brightness value, and drop brightness_set. The core\nnow defers the update to a work queue, where sleeping is allowed. Errors\nfrom the register writes are propagated rather than discarded.\nst1202_led_set() was the last user of the locking st1202_channel_set()\nwrapper, which is removed.\n\nProgramming every PWM slot to full scale is kept: it is what makes the\nbrightness visible while the global sequencer is running, without having\nto stop the sequencer and disturb the other channels.","source":"cvelist"}],"published":"2026-11-30T13:36:45.662Z","modified":"2026-11-30T14:19:49.377Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"259230378c65ebb6b4815b4dd175c5298428b9fa","fixed":"e864466082a7fa35628d978846c22f2fa186e867","status":"affected"},{"type":"git","introduced":"259230378c65ebb6b4815b4dd175c5298428b9fa","fixed":"b6a6e9be5a2bbecc64781f4aed2d410b7164a560","status":"affected"},{"type":"git","introduced":"259230378c65ebb6b4815b4dd175c5298428b9fa","fixed":"1ec35fa181981b4b9581b3dae967bac7ed82c89c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e864466082a7fa35628d978846c22f2fa186e867","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b6a6e9be5a2bbecc64781f4aed2d410b7164a560","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ec35fa181981b4b9581b3dae967bac7ed82c89c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139655","url":"https://www.cve.org/CVERecord?id=CVE-2026-139655","licence":"CVE Terms of Use","modified":"2026-11-30T13:36:45.662Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139655","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139655","licence":"Public domain","modified":"2026-11-30T14:19:49.377Z"}],"updatedAt":"2026-11-30T14:33:10.965Z","epss":{"score":0.00198,"percentile":0.09997,"date":"2026-12-01T12:00:22.000Z"}}