# CVE-2026-64262: fuse-uring: end fuse_req on io-uring cancel task work

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-25T08:49:12.599Z
- Modified: 2026-08-17T05:17:24.950Z
- Assigned by: Linux

## Description

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

fuse-uring: end fuse_req on io-uring cancel task work

When io_uring delivers task work with tw.cancel set (PF_EXITING,
PF_KTHREAD fallback, or percpu_ref_is_dying on the ring context),
fuse_uring_send_in_task() takes the cancel branch, assigns
-ECANCELED, and falls through to fuse_uring_send(). That path only
flips the entry to FRRS_USERSPACE and completes the io_uring cmd;
it never discharges the ring entry's owning reference to the
fuse_req that fuse_uring_add_req_to_ring_ent() handed it at
dispatch time.

    fuse_uring_send_in_task()
      tw.cancel == true
        err = -ECANCELED
      fuse_uring_send(ent, cmd, err, issue_flags)
        ent->state = FRRS_USERSPACE
        list_move(&ent->list, &queue->ent_in_userspace)
        ent->cmd = NULL
        io_uring_cmd_done(-ECANCELED)
        /* ent->fuse_req still set, req still hashed */

The fuse_req stays linked on fpq->processing[hash] and
fuse_request_end() is never invoked. The originating syscall
thread blocks in D-state in request_wait_answer() until
fuse_abort_conn() runs, which can be the entire connection
lifetime. For FR_BACKGROUND requests fc->num_background is never
decremented either, so repeated cancels inflate the counter until
max_background is hit and all later background ops stall. tw.cancel does
not imply a connection abort (e.g. a single io_uring worker thread exits
while the fuse connection stays up), so this cannot be left for
fuse_abort_conn() to clean up.

Ending the req but still routing the entry through fuse_uring_send()
is not enough: that leaves a req-less entry on ent_in_userspace, and
ent_list_request_expired() dereferences ent->fuse_req unconditionally
on the head of that list, which would then NULL-deref.

Fix the cancel branch to release the entry directly. Remove it from the
queue, complete the io_uring cmd, end the fuse_req, free the entry, and
drop its queue_refs (waking the teardown waiter if it was the last).

(As written by CVE List.)

## Affected

- Linux Linux: from c2c9af9a0b13261c36909036057a116f2edb5e1a before bb476ef8e1027a9d509fbaaf81f5061a07e9e5a7; from c2c9af9a0b13261c36909036057a116f2edb5e1a before 4f45f276d5b4412eade6f74f2e37f3adba0473ed; from c2c9af9a0b13261c36909036057a116f2edb5e1a before bea4fe98204b6ce7eb8e29f7bf867dd7619b3ddd; 6.14 (not affected: before 6.14; from 6.18.39 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 6.14 before 6.18.39; from 6.19 before 7.1.4

## References

- <https://git.kernel.org/stable/c/bb476ef8e1027a9d509fbaaf81f5061a07e9e5a7> (patch)
- <https://git.kernel.org/stable/c/4f45f276d5b4412eade6f74f2e37f3adba0473ed> (patch)
- <https://git.kernel.org/stable/c/bea4fe98204b6ce7eb8e29f7bf867dd7619b3ddd> (patch)

## Sources

- CVE List: [CVE-2026-64262](https://www.cve.org/CVERecord?id=CVE-2026-64262), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-64262](https://nvd.nist.gov/vuln/detail/CVE-2026-64262), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-64262 · Whole record: https://cve.day/CVE-2026-64262.json · Rebuilt by cve.day 2026-11-25T22:59:30.041Z
