{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "259230378c65ebb6b4815b4dd175c5298428b9fa"
            },
            {
              "fixed": "e864466082a7fa35628d978846c22f2fa186e867"
            },
            {
              "fixed": "b6a6e9be5a2bbecc64781f4aed2d410b7164a560"
            },
            {
              "fixed": "1ec35fa181981b4b9581b3dae967bac7ed82c89c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.14.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139655.json"
  },
  "details": "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.",
  "id": "CVE-2026-139655",
  "modified": "2026-11-30T14:45:22.052572370Z",
  "published": "2026-11-30T13:36:45.662Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1ec35fa181981b4b9581b3dae967bac7ed82c89c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b6a6e9be5a2bbecc64781f4aed2d410b7164a560"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e864466082a7fa35628d978846c22f2fa186e867"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139655.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139655"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "leds: st1202: Do not set brightness from atomic context"
}