{"api_version":"1","generated_at":"2026-11-30T14:49:37+00:00","cve":"CVE-2026-139655","urls":{"html":"https://cve.report/CVE-2026-139655","api":"https://cve.report/api/cve/CVE-2026-139655.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139655","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139655"},"summary":{"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:49","updated_at":"2026-11-30 14:19:49"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/e864466082a7fa35628d978846c22f2fa186e867","name":"https://git.kernel.org/stable/c/e864466082a7fa35628d978846c22f2fa186e867","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b6a6e9be5a2bbecc64781f4aed2d410b7164a560","name":"https://git.kernel.org/stable/c/b6a6e9be5a2bbecc64781f4aed2d410b7164a560","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1ec35fa181981b4b9581b3dae967bac7ed82c89c","name":"https://git.kernel.org/stable/c/1ec35fa181981b4b9581b3dae967bac7ed82c89c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139655","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139655","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 259230378c65ebb6b4815b4dd175c5298428b9fa e864466082a7fa35628d978846c22f2fa186e867 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 259230378c65ebb6b4815b4dd175c5298428b9fa b6a6e9be5a2bbecc64781f4aed2d410b7164a560 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 259230378c65ebb6b4815b4dd175c5298428b9fa 1ec35fa181981b4b9581b3dae967bac7ed82c89c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/leds/leds-st1202.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"e864466082a7fa35628d978846c22f2fa186e867","status":"affected","version":"259230378c65ebb6b4815b4dd175c5298428b9fa","versionType":"git"},{"lessThan":"b6a6e9be5a2bbecc64781f4aed2d410b7164a560","status":"affected","version":"259230378c65ebb6b4815b4dd175c5298428b9fa","versionType":"git"},{"lessThan":"1ec35fa181981b4b9581b3dae967bac7ed82c89c","status":"affected","version":"259230378c65ebb6b4815b4dd175c5298428b9fa","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/leds/leds-st1202.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.14"},{"lessThan":"6.14","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.14","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:36:45.662Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}],"title":"leds: st1202: Do not set brightness from atomic context","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139655","datePublished":"2026-11-30T13:36:45.662Z","dateReserved":"2026-11-30T13:22:15.945Z","dateUpdated":"2026-11-30T13:36:45.662Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:49","lastModifiedDate":"2026-11-30 14:19:49","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139655","Ordinal":"1","Title":"leds: st1202: Do not set brightness from atomic context","CVE":"CVE-2026-139655","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139655","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"leds: st1202: Do not set brightness from atomic context"}]}}}