{"id":"CVE-2026-139124","summary":"blk-mq: don't bring back flags of a completed request","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.","modified":"2026-12-01T07:00:33.433531543Z","published":"2026-11-30T13:31:48.170Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139124.json"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"052e4c8987ee9bef8994cf9c9166e2c6759e0752"},{"fixed":"6c681181a9adf301550d5539b52b07d0e13292ad"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e5c0ca13659e9d18f53368d651ed7e6e433ec1cf"},{"fixed":"a41beacd62449f29337419f40967e0e63ef06b0b"},{"fixed":"5d1abbe56e767959389a14f9f894c7817b64bdca"},{"fixed":"01686e7fffa83df2b36707ef7df2484e984b8e3b"},{"fixed":"47947572ad14c01872b60e91084954e0b0ebcadb"},{"fixed":"9531230ee1fcb8eca2c9cbb9bf02651cbf798842"}]}],"versions":["v6.1.192","v6.1.191","v6.1.190","v6.1.189","v6.1.188","v6.1.187","v6.1.186","v6.1.185","v6.1.184","v6.1.183","v6.1.182","v6.1.181","v6.1.180","v6.1.179","v6.1.178","v6.1.177","v6.1.176","v6.1.175","v6.1.174","v6.1.173","v6.1.172","v6.1.171","v6.1.170","v6.1.169","v6.1.168","v6.1.167","v6.1.166","v6.1.165","v6.1.164","v6.1.163","v6.1.162","v6.1.161","v6.1.160","v6.1.159","v6.1.158","v6.1.157","v6.1.156","v6.1.155","v6.1.154","v6.1.153","v6.1.152","v6.1.151","v6.1.150","v6.1.149","v6.1.148","v6.1.147","v6.1.146","v6.1.145","v6.1.144","v6.1.143","v6.1.142","v6.1.141","v6.1.140","v6.1.139","v6.1.138","v6.1.137","v6.1.136","v6.1.135","v6.1.134","v6.1.133","v6.1.132","v6.1.131","v6.1.130","v6.1.129","v6.1.128","v6.1.127","v6.1.126","v6.1.125","v6.1.124","v6.1.123","v6.1.122","v6.1.121","v6.1.120","v6.1.119","v6.1.118","v6.1.117","v6.1.116","v6.1.115","v6.1.114","v6.1.113","v6.1.112","v6.1.111","v6.1.110","v6.1.109","v6.1.108","v6.1.107","v6.1.106","v6.1.105","v6.1.104","v6.1.103","v6.1.102","v6.1.101","v6.1.100","v6.1.99","v6.1.98","v6.1.97","v6.1.96","v6.1.95","v6.1.94","v6.1.93","v6.1.92","v6.1.91","v6.1.90","v6.1.89","v6.1.88","v6.1.87","v6.1.86","v6.1.85","v6.1.84"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139124.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","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"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139124.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}