CVE-2025-21896
published high CVSS 3.1 · 7.8fuse: revert back to __readahead_folio() for readahead
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux3eab9d7bc2f4ae7f3f9c9c7852ff61600df79856 to < 60db11f1b7fba4a66b117ea998d965818784a98d · 3eab9d7bc2f4ae7f3f9c9c7852ff61600df79856 to < 0c67c37e1710b2a8f61c8a02db95a51fe577e2c1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.13 (affected) · 0 to < 6.13 (unaffected · semver) · 6.13.6 through 6.13.* (unaffected · semver) · 6.14 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: fuse: revert back to __readahead_folio() for readahead In commit 3eab9d7bc2f4 ("fuse: convert readahead to use folios"), the logic was converted to using the new folio readahead code, which drops the reference on the folio once it is locked, using an inferred reference on the folio. Previously we held a reference on the folio for the entire duration of the readpages call. This is fine, however for the case for splice pipe responses where we will remove the old folio and splice in the new folio (see fuse_try_move_page()), we assume that there is a reference held on the folio for ap->folios, which is no longer the case. To fix this, revert back to __readahead_folio() which allows us to hold the reference on the folio for the duration of readpages until either we drop the reference ourselves in fuse_readpages_end() or the reference is dropped after it's replaced in the page cache in the splice case. This will fix the UAF bug that was reported.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached by mounting a FUSE filesystem and reading a file on it, with the attacker-controlled userspace FUSE server replying over /dev/fuse; this requires local system access (mount + syscalls), not network reachability. AC:L - The attacker controls both halves of the trigger — their own FUSE daemon chooses SPLICE_F_MOVE splice replies with page-aligned stealable buffers, and their own reader process drives readahead — making the refcount underflow deterministic rather than racy. PR:L - Only an unprivileged local account is needed: fuse_fs_type sets FS_USERNS_MOUNT so FUSE can be mounted inside an unprivileged user namespace (unshare -Urm), and distros also ship setuid fusermount3 for direct unprivileged mounts. UI:N - The attacker's own processes perform both the mount/server role and the file read; no action by any other user is required. S:U - The corruption stays within the kernel's own security authority — standard local kernel memory corruption with no VM, IOMMU, or hypervisor boundary crossed. C:H - The over-decremented folio is returned to the page allocator while still referenced by ap->folios[] and potentially the LRU, so it can be reallocated to another security context and its contents read back through the stale mapping — an arbitrary kernel/page-cache read primitive. I:H - fuse_readpages_end() writes folio flags (folio_end_read) into the already-freed and possibly reallocated page, and the extra folio_put() constitutes a double free — a page-level UAF that is groomable into an arbitrary write and control-flow hijack. A:H - In practice this produced refcount-underflow BUG splats and kernel oopses for ordinary users (Arch and openSUSE crash reports), and the UAF/double-free reliably panics the machine.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 3eab9d7bc2f4ae7f3f9c9c7852ff61600df79856 to < 60db11f1b7fba4a66b117ea998d965818784a98d (affected · git)3eab9d7bc2f4ae7f3f9c9c7852ff61600df79856 to < 0c67c37e1710b2a8f61c8a02db95a51fe577e2c1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.13 (affected)0 to < 6.13 (unaffected · semver)6.13.6 through 6.13.* (unaffected · semver)6.14 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
fuse: revert back to __readahead_folio() for readahead
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3b7aa466a42057479473992da68f1fd25980722baf7ec2660123e89c993bfa2e
- Ingested
- 23 Sep 2026, 08:39:46 UTC
- Source record
- Official CVE record