CVE-2026-97619 PUBLISHED

io_uring/rw: end write accounting from ->ki_complete

Assigner: Linux
Reserved: 24.09.2026 Published: 25.09.2026 Updated: 25.09.2026

In the Linux kernel, the following vulnerability has been resolved:

io_uring/rw: end write accounting from ->ki_complete

Commit b000145e9907 moved both the fsnotify calls and the write accounting out of the kiocb completion handler and into the io_req_rw_complete() task_work. However, only the fsnotify part actually needed to move as it may sleep. Ending the write accounting is just a percpu_up_read() on the superblock writers sem.

Deferring it is a problem, because it makes dropping SB_FREEZE_WRITE protection depend on the ring owner getting to running task_work. But the task may be blocked in freeze_super(), causing it to never get to that:

task io-wq worker

<hr />

io_write() io_kiocb_start_write() (takes sb_writers, hidden from lockdep by __sb_writers_release) write_iter() -> -EIOCBQUEUED ioctl(FS_IOC_SHUTDOWN) bdev_freeze() freeze_super() percpu_down_write() <- waits for the reader above io_write() kiocb_start_write() percpu_down_read() <- queued behind the writer <bio completes> io_complete_rw() queues io_req_rw_complete() <- never runs, task is in D state

End the write from io_complete_rw() instead, and leave only the fsnotify calls in task_work.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from b000145e9907809406d8164c3b2b8861d95aecd1 to cc580cee4dfa2ec9099c30ecbd4d804cbb996432 (excl.)
  • affected from b000145e9907809406d8164c3b2b8861d95aecd1 to 055d43a1233edbd80e558889258105ce63051bcd (excl.)
  • affected from b000145e9907809406d8164c3b2b8861d95aecd1 to 796aa0547557e63338657ed1c487906f9fac4c73 (excl.)
  • Version ea2e6286e3e89a115ae554e20ba9aec2b2e1ddff is affected
  • Version 89a410dbd0f159ddd308f19d6eb682fc753e4771 is affected
  • Version 2a853c206e553dd9c0a55c22858fd6a446d93e15 is affected
  • affected from 5.10.165 to 5.11 (excl.)
  • affected from 5.15.90 to 5.16 (excl.)
  • affected from 6.0.3 to 6.1 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.1 is affected
  • unaffected from 0 to 6.1 (excl.)
  • unaffected from 6.18.53 to 6.18.* (incl.)
  • unaffected from 7.2.7 to 7.2.* (incl.)
  • unaffected from 7.3-rc3 to * (incl.)

References