CVE-2026-90140: cuse: wait for pending RCU callbacks on module exit
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
cuse: wait for pending RCU callbacks on module exit
Since commit 053fc4f755ad ("fuse: fix UAF in rcu pathwalks"), fuse_conn_put() frees the fuse_conn through call_rcu() rather than synchronously. For cuse, fc->release is cuse_fc_release(), which lives in the cuse module. If the module is removed before the RCU grace period ends, the callback jumps into freed module memory:
userspace / module unload | RCU softirq
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
close(/dev/cuse) |
cuse_channel_release() |
fuse_dev_release() |
fuse_conn_put(fch->conn) |
call_rcu(delayed_release) ------+---> callback queued
|
rmmod cuse |
cuse_exit() |
cuse_channel_destroy() |
... |
return |
|
<module text freed> |
| rcu_do_batch()
| delayed_release()
| fc->release()
| -> cuse_fc_release()
| ^^^ freed text!The freed module text is unmapped by vfree(), so the jump into the stale callback triggers a page-fault Oops. If the virtual address is subsequently reused, the callback could execute unrelated code (undefined behaviour).
Fix this by calling rcu_barrier() in cuse_exit() so that any pending fuse_conn release callback completes before the module is removed.
The Linux kernel CVE team has assigned CVE-2026-90140 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15.166 with commit bfbab62ca69f72bcd14ea30de1fb98f6080ad464 and fixed in 5.15.221 with commit 7fe415e1cd8fa875be263670c0ab47109818abb6 Issue introduced in 6.1.107 with commit a8f650b93e55764ca9ff8e1ddebc151f57024086 and fixed in 6.1.188 with commit 45ae914b2f6ea56fc2f1c017fdee4e995bcb4c0e Issue introduced in 6.6.48 with commit 535e9bd0e8f8d8cfdc29de7cdb902b5041427fe6 and fixed in 6.6.157 with commit ac5c499413385cea3e0220d6050408d50842891d Issue introduced in 6.8 with commit 053fc4f755ad43cf35210677bcba798ccdc48d0c and fixed in 6.12.110 with commit a1b46aee33d83f14ed62d7fdef1a91d3e0b732a9 Issue introduced in 6.8 with commit 053fc4f755ad43cf35210677bcba798ccdc48d0c and fixed in 6.18.52 with commit 389bd349ddbcf90dbd8a4f2a4ab6e552d53df134 Issue introduced in 6.8 with commit 053fc4f755ad43cf35210677bcba798ccdc48d0c and fixed in 7.2.6 with commit c40f3f24839f8404325a2099e26c2a04786ae309 Issue introduced in 6.8 with commit 053fc4f755ad43cf35210677bcba798ccdc48d0c and fixed in 7.3-rc1 with commit 4deb3edead0c0e172cc7349e8855d741d3c5e162
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90140
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/fuse/cuse.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/7fe415e1cd8fa875be263670c0ab47109818abb6 https://git.kernel.org/stable/c/45ae914b2f6ea56fc2f1c017fdee4e995bcb4c0e https://git.kernel.org/stable/c/ac5c499413385cea3e0220d6050408d50842891d https://git.kernel.org/stable/c/a1b46aee33d83f14ed62d7fdef1a91d3e0b732a9 https://git.kernel.org/stable/c/389bd349ddbcf90dbd8a4f2a4ab6e552d53df134 https://git.kernel.org/stable/c/c40f3f24839f8404325a2099e26c2a04786ae309 https://git.kernel.org/stable/c/4deb3edead0c0e172cc7349e8855d741d3c5e162