{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "052e4c8987ee9bef8994cf9c9166e2c6759e0752"
            },
            {
              "fixed": "6c681181a9adf301550d5539b52b07d0e13292ad"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "e5c0ca13659e9d18f53368d651ed7e6e433ec1cf"
            },
            {
              "fixed": "a41beacd62449f29337419f40967e0e63ef06b0b"
            },
            {
              "fixed": "5d1abbe56e767959389a14f9f894c7817b64bdca"
            },
            {
              "fixed": "01686e7fffa83df2b36707ef7df2484e984b8e3b"
            },
            {
              "fixed": "47947572ad14c01872b60e91084954e0b0ebcadb"
            },
            {
              "fixed": "9531230ee1fcb8eca2c9cbb9bf02651cbf798842"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.1.84"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.5.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.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-139124.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: don't bring back flags of a completed request\n\nThe timeout handler sets and clears RQF_TIMED_OUT in a request it only\nholds a reference to, with a plain read-modify-write, while the\ncompletion clears flags in rq_flags the same way. If the two interleave,\nblk_mq_finish_request() runs twice with the flags back: the zone write\nplug reference is dropped twice and the scheduler's -\u003efinish_request()\nis called again.\n\nChange RQF_TIMED_OUT with cmpxchg, so the handler never writes back a\nflag that changed under it.",
  "id": "CVE-2026-139124",
  "modified": "2026-12-01T06:45:59.748009610Z",
  "published": "2026-11-30T13:31:48.170Z",
  "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/01686e7fffa83df2b36707ef7df2484e984b8e3b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/47947572ad14c01872b60e91084954e0b0ebcadb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5d1abbe56e767959389a14f9f894c7817b64bdca"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6c681181a9adf301550d5539b52b07d0e13292ad"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9531230ee1fcb8eca2c9cbb9bf02651cbf798842"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a41beacd62449f29337419f40967e0e63ef06b0b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139124.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139124"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "blk-mq: don't bring back flags of a completed request"
}