AZL-115726: CVE-2026-99797 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
iouring/cancel: drop sqd->lock while SQPOLL waits
An exiting SQPOLL thread calls iouringcancelgeneric() with sqd->lock held, and keeps it across condresched() and the sleep until nothing is in flight anymore. A zero-copy send notification can't be canceled and stays pending as long as the peer doesn't read, so the lock is held for as long as a user cares to. ioringexitwork() needs it to park the thread, and so do IORINGREGISTERIOWQAFF and IOWQMAXWORKERS. With 64 such rings sharing the thread, every iouexit slot sleeps on the lock and no ring gets freed for anyone.
Drop the lock around condresched() and the sleep, like the main loop of the thread does. Each walk of ctxlist is still under one hold, and nothing is kept across the unlock. The thread drops its io-wq, frees its tctx and clears sqd->thread under one hold after the loop, so whoever holds the lock and finds sqd->thread set can still use them.
[axboe: adapted to the scheduletimeout() based loop]