{"id":"CVE-2026-98858","aliases":["CVE-2026-98858"],"related":[],"kind":"vulnerability","state":"published","title":"io_uring: fix task_work add use-after-free with SQPOLL","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: fix task_work add use-after-free with SQPOLL\n\nFor SQPOLL, the sqpoll thread runs task_work off its own list and\ndoesn't need to be told about it, so it can pop and complete a request\nas soon as mpscq_push() has published it. If that was the last request\nholding the ring alive, io_ring_exit_work() then frees the ctx, stops\nthe thread, and with it the tctx, while io_req_normal_work_add() is\nstill looking at both after the push:\n\n  BUG: KASAN: slab-use-after-free in io_req_normal_work_add+0x439/0x510\n  Read of size 4 at addr ff11000000ca0000 by task repro/55\n  (...)\n  BUG: KASAN: slab-use-after-free in queue_work_on+0x25/0x70\n  Write of size 8 at addr ff11000000c3bd00 by task repro/55\n\nHold an RCU read lock across the add, like io_req_local_work_add() already\ndoes, and have io_ring_exit_work() wait for a grace period for SQPOLL rings\nas well before freeing the ctx.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: fix task_work add use-after-free with SQPOLL\n\nFor SQPOLL, the sqpoll thread runs task_work off its own list and\ndoesn't need to be told about it, so it can pop and complete a request\nas soon as mpscq_push() has published it. If that was the last request\nholding the ring alive, io_ring_exit_work() then frees the ctx, stops\nthe thread, and with it the tctx, while io_req_normal_work_add() is\nstill looking at both after the push:\n\n  BUG: KASAN: slab-use-after-free in io_req_normal_work_add+0x439/0x510\n  Read of size 4 at addr ff11000000ca0000 by task repro/55\n  (...)\n  BUG: KASAN: slab-use-after-free in queue_work_on+0x25/0x70\n  Write of size 8 at addr ff11000000c3bd00 by task repro/55\n\nHold an RCU read lock across the add, like io_req_local_work_add() already\ndoes, and have io_ring_exit_work() wait for a grace period for SQPOLL rings\nas well before freeing the ctx.","source":"cvelist"}],"published":"2026-10-18T15:51:19.578Z","modified":"2026-10-19T10:19:49.880Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"af5d68f8892f8ee8f137648b79ceb2abc153a19b","fixed":"42b3332efacfd2140be4cd0dedad4fb96b8ae90e","status":"affected"},{"type":"git","introduced":"af5d68f8892f8ee8f137648b79ceb2abc153a19b","fixed":"891bd8335a0de3bb15c3b797ce3026bbb0dbef6c","status":"affected"},{"type":"git","introduced":"af5d68f8892f8ee8f137648b79ceb2abc153a19b","fixed":"395b25968fe854d4efaa19a8e9b7a5b6d1b3eea3","status":"affected"},{"type":"git","introduced":"af5d68f8892f8ee8f137648b79ceb2abc153a19b","fixed":"a92193c91e8839fe5fc209616ea95465ae4b919d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.113","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.56","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.10","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/42b3332efacfd2140be4cd0dedad4fb96b8ae90e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/891bd8335a0de3bb15c3b797ce3026bbb0dbef6c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/395b25968fe854d4efaa19a8e9b7a5b6d1b3eea3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a92193c91e8839fe5fc209616ea95465ae4b919d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98858","url":"https://www.cve.org/CVERecord?id=CVE-2026-98858","licence":"CVE Terms of Use","modified":"2026-10-19T09:26:52.852Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98858","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98858","licence":"Public domain","modified":"2026-10-19T10:19:49.880Z"}],"updatedAt":"2026-11-25T22:59:45.328Z","epss":{"score":0.00157,"percentile":0.05109,"date":"2026-12-01T12:00:22.000Z"}}