# CVE-2025-21896: fuse: revert back to __readahead_folio() for readahead

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-04-01T15:26:49.200Z
- Modified: 2026-08-05T11:55:13.304Z
- Weaknesses: CWE-416
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3eab9d7bc2f4ae7f3f9c9c7852ff61600df79856 before 60db11f1b7fba4a66b117ea998d965818784a98d; from 3eab9d7bc2f4ae7f3f9c9c7852ff61600df79856 before 0c67c37e1710b2a8f61c8a02db95a51fe577e2c1; 6.13 (not affected: before 6.13; from 6.13.6 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.13 before 6.13.6; 6.14

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/60db11f1b7fba4a66b117ea998d965818784a98d> (patch)
- <https://git.kernel.org/stable/c/0c67c37e1710b2a8f61c8a02db95a51fe577e2c1> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-21896 · Whole record: https://cve.day/CVE-2025-21896.json · Rebuilt by cve.day 2026-11-25T22:58:55.874Z
