Linux
fuse-uring: make a fuse_req on SQE commit only findable after memcpy
In the Linux kernel, the following vulnerability has been resolved: fuse-uring: make a fuse_req on SQE commit only findable after memcpy Bad userspace might try to trick us and send commit SQEs request unique / commit-id of requests that are not even send to fuse-server (io_uring_cmd_done() not called) yet. fuse_uring_commit_fetch() ends the fuse request when the ring entry has a wrong state, but that could have caused a use-after-free with the memcpy operations in fuse_uring_send_in_task(). In order to avoid such races the call of fuse_uring_add_to_pq() is moved after the copy operations and just before completing the io-uring request - malicious userspace cannot find the request anymore until all prepration work in fuse-client/kernel is completed. This also moves fuse_uring_add_to_pq() a bit up in the code to avoid a forward declaration. Also not with a preparation commit, to make it easier to back port to older kernels.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= c090c8abae4b6b77a1bee116aa6c385456ebef96, < e1711479e9068ea31b31353a702a51e639c3d059
- >= c090c8abae4b6b77a1bee116aa6c385456ebef96, < a635f427d57e2012102ae4886b48d8955c59fb86
- >= c090c8abae4b6b77a1bee116aa6c385456ebef96, < 1efd3d474fc0ba74dfd984249bca78807d739812
Fixed in e1711479e9068ea31b31353a702a51e639c3d059, a635f427d57e2012102ae4886b48d8955c59fb86, 1efd3d474fc0ba74dfd984249bca78807d739812
- 6.14
Fixed in 0, 6.18.39, 7.1.4, 7.2
Mitigation
Upgrade Linux to e1711479e9068ea31b31353a702a51e639c3d059 or a635f427d57e2012102ae4886b48d8955c59fb86 or 1efd3d474fc0ba74dfd984249bca78807d739812 or later.
Upgrade Linux to 0 or 6.18.39 or 7.1.4 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.