CVE-2026-139340: fuse: fix NULL pointer dereference in fuse_request_find
In the Linux kernel, the following vulnerability has been resolved:
fuse: fix NULL pointer dereference in fuserequestfind
fusedevinstallwithpq() publishes fud->chan before it stores fud->pq.processing. The write/splicewrite and read paths treat a non-NULL fud->chan as "installed" and then walk fpq->processing[] without taking fch->lock, so they can see the new chan while processing is still NULL and oops in fuserequestfind().
Fix by taking fpq->lock around the cmpxchg + fud->pq.processing assignment. This protects all call sites that dereference fpq->processing, since these have fpq->lock held.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In fuse_dev_install_with_pq(), take fpq->lock around the cmpxchg and the fud->pq.processing assignment.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Linux kernel systems using FUSE are exposed when the affected FUSE device installation and request-processing paths can run concurrently. The race involves write, splice_write, or read paths observing a newly published channel before its processing state is initialized.
What must happen for the vulnerability to be triggered?
A timing race must occur: one execution publishes fud->chan during fuse_dev_install_with_pq(), while another enters a write, splice_write, or read path and accesses fpq->processing[] before the processing pointer has been assigned. This can lead to a NULL pointer dereference in fuse_request_find().
What does the fix change?
The fix holds fpq->lock while performing the channel cmpxchg operation and assigning fud->pq.processing. This ensures callers that dereference fpq->processing do so only after the processing state is initialized.