{"id":"CVE-2026-98858","revision":"3afb947e41ba43caa285e9fb6b282fe5","records":[{"revision":"3afb947e41ba43caa285e9fb6b282fe5","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-98858","aliases":[],"title":"io_uring: fix task_work add use-after-free with SQPOLL","description":"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.","state":0,"publishedAt":"2026-10-18T15:51:19.578+00:00","modifiedAt":"2026-10-19T09:26:52.852+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"io_uring/io_uring.c\",\n                        \"io_uring/tw.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"af5d68f8892f8ee8f137648b79ceb2abc153a19b\",\n                            \"lessThan\": \"42b3332efacfd2140be4cd0dedad4fb96b8ae90e\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"af5d68f8892f8ee8f137648b79ceb2abc153a19b\",\n                            \"lessThan\": \"891bd8335a0de3bb15c3b797ce3026bbb0dbef6c\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"af5d68f8892f8ee8f137648b79ceb2abc153a19b\",\n                            \"lessThan\": \"395b25968fe854d4efaa19a8e9b7a5b6d1b3eea3\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"af5d68f8892f8ee8f137648b79ceb2abc153a19b\",\n                            \"lessThan\": \"a92193c91e8839fe5fc209616ea95465ae4b919d\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"io_uring/io_uring.c\",\n                        \"io_uring/tw.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.9\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.9\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.113\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.56\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.10\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/42b3332efacfd2140be4cd0dedad4fb96b8ae90e","https://git.kernel.org/stable/c/891bd8335a0de3bb15c3b797ce3026bbb0dbef6c","https://git.kernel.org/stable/c/395b25968fe854d4efaa19a8e9b7a5b6d1b3eea3","https://git.kernel.org/stable/c/a92193c91e8839fe5fc209616ea95465ae4b919d"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98858","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-98858","identifiers":["CVE-2026-98858"]},"retained":false,"historicalAffected":[]}],"coverage":[]}