{"id":"CVE-2026-97619","aliases":["CVE-2026-97619"],"related":[],"kind":"vulnerability","state":"published","title":"io_uring/rw: end write accounting from ->ki_complete","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/rw: end write accounting from ->ki_complete\n\nCommit b000145e9907 moved both the fsnotify calls and the write\naccounting out of the kiocb completion handler and into the\nio_req_rw_complete() task_work. However, only the fsnotify part actually\nneeded to move as it may sleep. Ending the write accounting is just a\npercpu_up_read() on the superblock writers sem.\n\nDeferring it is a problem, because it makes dropping SB_FREEZE_WRITE\nprotection depend on the ring owner getting to running task_work. But\nthe task may be blocked in freeze_super(), causing it to never get to\nthat:\n\n  task                             io-wq worker\n  --------------------------------------------------------------\n  io_write()\n    io_kiocb_start_write()         (takes sb_writers, hidden from\n                                    lockdep by __sb_writers_release)\n    write_iter() -> -EIOCBQUEUED\n  ioctl(FS_IOC_SHUTDOWN)\n    bdev_freeze()\n      freeze_super()\n        percpu_down_write()        <- waits for the reader above\n                                   io_write()\n                                     kiocb_start_write()\n                                       percpu_down_read()  <- queued\n                                                              behind the\n                                                              writer\n  <bio completes>\n    io_complete_rw()\n      queues io_req_rw_complete()  <- never runs, task is in D state\n\nEnd the write from io_complete_rw() instead, and leave only the fsnotify\ncalls in task_work.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/rw: end write accounting from ->ki_complete\n\nCommit b000145e9907 moved both the fsnotify calls and the write\naccounting out of the kiocb completion handler and into the\nio_req_rw_complete() task_work. However, only the fsnotify part actually\nneeded to move as it may sleep. Ending the write accounting is just a\npercpu_up_read() on the superblock writers sem.\n\nDeferring it is a problem, because it makes dropping SB_FREEZE_WRITE\nprotection depend on the ring owner getting to running task_work. But\nthe task may be blocked in freeze_super(), causing it to never get to\nthat:\n\n  task                             io-wq worker\n  --------------------------------------------------------------\n  io_write()\n    io_kiocb_start_write()         (takes sb_writers, hidden from\n                                    lockdep by __sb_writers_release)\n    write_iter() -> -EIOCBQUEUED\n  ioctl(FS_IOC_SHUTDOWN)\n    bdev_freeze()\n      freeze_super()\n        percpu_down_write()        <- waits for the reader above\n                                   io_write()\n                                     kiocb_start_write()\n                                       percpu_down_read()  <- queued\n                                                              behind the\n                                                              writer\n  <bio completes>\n    io_complete_rw()\n      queues io_req_rw_complete()  <- never runs, task is in D state\n\nEnd the write from io_complete_rw() instead, and leave only the fsnotify\ncalls in task_work.","source":"cvelist"}],"published":"2026-09-25T10:22:25.644Z","modified":"2026-11-23T08:17:22.173Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ea2e6286e3e89a115ae554e20ba9aec2b2e1ddff","fixed":"aa4a3bec32ffe20ba1044db8211140edf7637310","status":"affected"},{"type":"git","introduced":"89a410dbd0f159ddd308f19d6eb682fc753e4771","fixed":"16840e3478c72ebbf093c52cbdcd8a1f12fad692","status":"affected"},{"type":"git","introduced":"b000145e9907809406d8164c3b2b8861d95aecd1","fixed":"647026fd61d9d2e628b2f743bbe09bfd9ddde110","status":"affected"},{"type":"git","introduced":"b000145e9907809406d8164c3b2b8861d95aecd1","fixed":"ed1cead97afb9c398bd7ab344a3c1ee34ab73af9","status":"affected"},{"type":"git","introduced":"b000145e9907809406d8164c3b2b8861d95aecd1","fixed":"696459029f3b65c070c91b729478475582f1dcdf","status":"affected"},{"type":"git","introduced":"b000145e9907809406d8164c3b2b8861d95aecd1","fixed":"cc580cee4dfa2ec9099c30ecbd4d804cbb996432","status":"affected"},{"type":"git","introduced":"b000145e9907809406d8164c3b2b8861d95aecd1","fixed":"055d43a1233edbd80e558889258105ce63051bcd","status":"affected"},{"type":"git","introduced":"b000145e9907809406d8164c3b2b8861d95aecd1","fixed":"796aa0547557e63338657ed1c487906f9fac4c73","status":"affected"},{"type":"git","version":"2a853c206e553dd9c0a55c22858fd6a446d93e15","status":"affected"},{"type":"semver","introduced":"5.10.165","fixed":"5.10.273","status":"affected"},{"type":"semver","introduced":"5.15.90","fixed":"5.15.224","status":"affected"},{"type":"semver","introduced":"6.0.3","fixed":"6.1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","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/aa4a3bec32ffe20ba1044db8211140edf7637310","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/16840e3478c72ebbf093c52cbdcd8a1f12fad692","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/647026fd61d9d2e628b2f743bbe09bfd9ddde110","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed1cead97afb9c398bd7ab344a3c1ee34ab73af9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/696459029f3b65c070c91b729478475582f1dcdf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc580cee4dfa2ec9099c30ecbd4d804cbb996432","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/055d43a1233edbd80e558889258105ce63051bcd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/796aa0547557e63338657ed1c487906f9fac4c73","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97619","url":"https://www.cve.org/CVERecord?id=CVE-2026-97619","licence":"CVE Terms of Use","modified":"2026-11-23T07:59:20.406Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97619","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97619","licence":"Public domain","modified":"2026-11-23T08:17:22.173Z"}],"updatedAt":"2026-11-25T22:59:40.979Z","epss":{"score":0.00232,"percentile":0.15093,"date":"2026-12-02T12:00:21.000Z"}}