{"id":"CVE-2026-139655","state":"PUBLISHED","title":"leds: st1202: Do not set brightness from atomic context","description":"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.","publishedAt":"2026-11-30T13:36:45.662Z","updatedAt":"2026-11-30T13:36:45.662Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"259230378c65ebb6b4815b4dd175c5298428b9fa","status":"affected","lessThan":"e864466082a7fa35628d978846c22f2fa186e867","versionType":"git"},{"version":"259230378c65ebb6b4815b4dd175c5298428b9fa","status":"affected","lessThan":"b6a6e9be5a2bbecc64781f4aed2d410b7164a560","versionType":"git"},{"version":"259230378c65ebb6b4815b4dd175c5298428b9fa","status":"affected","lessThan":"1ec35fa181981b4b9581b3dae967bac7ed82c89c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/leds/leds-st1202.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/leds/leds-st1202.c"]}],"references":["https://git.kernel.org/stable/c/e864466082a7fa35628d978846c22f2fa186e867","https://git.kernel.org/stable/c/b6a6e9be5a2bbecc64781f4aed2d410b7164a560","https://git.kernel.org/stable/c/1ec35fa181981b4b9581b3dae967bac7ed82c89c"],"weaknesses":[],"ingestedAt":"2026-11-30T13:54:04.526Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139655.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139655","state":"PUBLISHED","datePublished":"2026-11-30T13:36:45.662Z","dateUpdated":"2026-11-30T13:36:45.662Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.945Z"},"containers":{"cna":{"title":"leds: st1202: Do not set brightness from atomic context","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"259230378c65ebb6b4815b4dd175c5298428b9fa","status":"affected","lessThan":"e864466082a7fa35628d978846c22f2fa186e867","versionType":"git"},{"version":"259230378c65ebb6b4815b4dd175c5298428b9fa","status":"affected","lessThan":"b6a6e9be5a2bbecc64781f4aed2d410b7164a560","versionType":"git"},{"version":"259230378c65ebb6b4815b4dd175c5298428b9fa","status":"affected","lessThan":"1ec35fa181981b4b9581b3dae967bac7ed82c89c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/leds/leds-st1202.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/leds/leds-st1202.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e864466082a7fa35628d978846c22f2fa186e867"},{"url":"https://git.kernel.org/stable/c/b6a6e9be5a2bbecc64781f4aed2d410b7164a560"},{"url":"https://git.kernel.org/stable/c/1ec35fa181981b4b9581b3dae967bac7ed82c89c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:45.662Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}