fuse: wait for FR_FINISHED on abort_on_kill to prevent use-after-free
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fuse: wait for FR_FINISHED on abort_on_kill to prevent use-after-free
The abort_on_kill path in request_wait_answer() calls fuse_abort_conn() and returns without waiting for FR_FINISHED. If fuse_dev_do_write() is concurrently processing the same request (FR_LOCKED set), the caller frees req->args while it is still being accessed, causing a use-after-free.
Fix this by jumping to the existing wait_event(FR_FINISHED) instead of returning early. The wait will not hang because fuse_abort_conn() ensures all requests are ended.
From the CVE record · Linux
The Linux kernel’s FUSE abort_on_kill path can return before a request is finished. If fuse_dev_do_write() is concurrently processing that request, request arguments can be freed while still in use, causing a use-after-free. The input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with FUSE should check their versions; affected versions are not specified in the input.