{"id":"CVE-2026-139126","aliases":["CVE-2026-139126"],"related":[],"kind":"vulnerability","state":"published","title":"blk-mq: don't trust the cookie in blk_mq_poll()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: don't trust the cookie in blk_mq_poll()\n\nblk_mq_poll() indexes queue_hw_ctx[] with bio->bi_cookie unchecked. Zone\nwrite plugging keeps the segment count of a plugged write in\n__bi_nr_segments, which shares a union with the cookie, and clears\nREQ_POLLED, but bio_poll() only looks at the cookie. A plugged polled\nwrite with more segments than there are hardware queues reads past the\narray. The bio is also SLAB_TYPESAFE_BY_RCU, so a cookie from a bio\nreused for another device can meet the wrong array as well.\n\nIgnore a cookie that is out of range or doesn't name a poll queue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: don't trust the cookie in blk_mq_poll()\n\nblk_mq_poll() indexes queue_hw_ctx[] with bio->bi_cookie unchecked. Zone\nwrite plugging keeps the segment count of a plugged write in\n__bi_nr_segments, which shares a union with the cookie, and clears\nREQ_POLLED, but bio_poll() only looks at the cookie. A plugged polled\nwrite with more segments than there are hardware queues reads past the\narray. The bio is also SLAB_TYPESAFE_BY_RCU, so a cookie from a bio\nreused for another device can meet the wrong array as well.\n\nIgnore a cookie that is out of range or doesn't name a poll queue.","source":"cvelist"}],"published":"2026-11-30T13:31:49.271Z","modified":"2026-12-01T06:17:36.487Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3e08773c3841e9db7a520908cc2b136a77d275ff","fixed":"e40dc9c454ef3fc136e2de2e69f365cc570bd7a6","status":"affected"},{"type":"git","introduced":"3e08773c3841e9db7a520908cc2b136a77d275ff","fixed":"7394fa1f5cba107a5b921e0b359af660a212bf7f","status":"affected"},{"type":"git","introduced":"3e08773c3841e9db7a520908cc2b136a77d275ff","fixed":"f6d85fc206d58ac6d91e73e865329124ba57be60","status":"affected"},{"type":"git","introduced":"3e08773c3841e9db7a520908cc2b136a77d275ff","fixed":"24974185999fd80b676fbe2a6c7a97bbd38aaf3a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"6.12.120","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e40dc9c454ef3fc136e2de2e69f365cc570bd7a6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7394fa1f5cba107a5b921e0b359af660a212bf7f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f6d85fc206d58ac6d91e73e865329124ba57be60","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24974185999fd80b676fbe2a6c7a97bbd38aaf3a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139126","url":"https://www.cve.org/CVERecord?id=CVE-2026-139126","licence":"CVE Terms of Use","modified":"2026-12-01T05:41:25.795Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139126","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139126","licence":"Public domain","modified":"2026-12-01T06:17:36.487Z"}],"updatedAt":"2026-12-01T06:32:24.317Z","epss":{"score":0.00352,"percentile":0.30853,"date":"2026-12-01T12:00:22.000Z"}}