{"id":"CVE-2026-99797","summary":"io_uring/cancel: drop sqd-\u003elock while SQPOLL waits","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/cancel: drop sqd-\u003elock while SQPOLL waits\n\nAn exiting SQPOLL thread calls io_uring_cancel_generic() with sqd-\u003elock\nheld, and keeps it across cond_resched() and the sleep until nothing is\nin flight anymore. A zero-copy send notification can't be canceled and\nstays pending as long as the peer doesn't read, so the lock is held for\nas long as a user cares to. io_ring_exit_work() needs it to park the\nthread, and so do IORING_REGISTER_IOWQ_AFF and IOWQ_MAX_WORKERS. With\n64 such rings sharing the thread, every iou_exit slot sleeps on the lock\nand no ring gets freed for anyone.\n\nDrop the lock around cond_resched() and the sleep, like the main loop of\nthe thread does. Each walk of ctx_list is still under one hold, and\nnothing is kept across the unlock. The thread drops its io-wq, frees its\ntctx and clears sqd-\u003ethread under one hold after the loop, so whoever\nholds the lock and finds sqd-\u003ethread set can still use them.\n\n[axboe: adapted to the schedule_timeout() based loop]","modified":"2026-11-20T10:00:23.538773006Z","published":"2026-11-20T07:02:20.989Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99797.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/682a8804640b6266a4b7fae5a131c57dd8711f70"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96ba960a6099935cfc5ea17aef056553f0c8e647"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9ebfcc60793a46eaf60fc34792486c9a6e114460"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cb0306c52ffae083a86fb283de67875ae7a9500e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99797.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99797"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"63809137ebb58f0aa2ce359117422686e3304f45"},{"fixed":"9ebfcc60793a46eaf60fc34792486c9a6e114460"},{"fixed":"96ba960a6099935cfc5ea17aef056553f0c8e647"},{"fixed":"682a8804640b6266a4b7fae5a131c57dd8711f70"},{"fixed":"cb0306c52ffae083a86fb283de67875ae7a9500e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99797.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99797.json"}}],"schema_version":"1.9.2"}