Activity log
- Created & dismissed (max. allowed matches exceeded) suggestion
fuse-uring: fix moving cancelled entry to ent_in_userspace list
In the Linux kernel, the following vulnerability has been resolved: fuse-uring: fix moving cancelled entry to ent_in_userspace list fuse_uring_cancel() moves entries that are available (these have no reqs attached) to the ent_in_userspace list. ent_list_request_expired() checks the first entry on ent_in_userspace and dereferences ent->fuse_req unconditionally, which will crash on a cancelled entry that was moved to this list. Fix this by freeing the entry and dropping queue_refs directly in fuse_uring_cancel(). This is safe because cancel is the cancel handler itself - after io_uring_cmd_done(), no more cancels will be dispatched for this command, and teardown serializes with cancel via queue->lock. Since cancel now decrements queue_refs, fuse_uring_abort() must no longer gate fuse_uring_abort_end_requests() on queue_refs > 0, as cancelled entries may have already dropped queue_refs while requests are still queued. Remove the gate so abort always flushes requests and stops queues.
References
Affected products
- =<6.18.*
- ==6.16
- =<7.1.*
- <50f3e03db823cabc41fe35c27d77c2bdb112baad
- <198f45eeb9f78b2a2d6d8be95e4e43468eb2c6bc
- =<*
- <6.16
- <e8afc85acdf329361b2d8df2ad9b52364686235f