# CVE-2026-99825: splice: avoid stale f_pos writeback on error

- Severity: not scored yet
- 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: 2026-11-30T13:17:22.801Z
- Modified: 2026-11-30T14:20:15.110Z
- Assigned by: Linux

## Description

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

splice: avoid stale f_pos writeback on error

do_splice() snapshots an implicit file position before calling the splice
helper. Since splice does not take f_pos_lock, another operation on the
same open file description can update f_pos while the helper is blocked.
If the helper then fails, the unconditional writeback restores the stale
snapshot.

For a directory without ->splice_read, a file-to-pipe splice fails with
-EINVAL. A concurrent directory mutation and getdents() call can advance
f_pos and refresh the filesystem's revalidation cookie before that failure
restores only the old position. The next ext2 readdir can then trust an
offset inside a directory entry and copy data from the adjacent page to
userspace.

Only update an implicit file position when splice returns a non-negative
result, matching read and write. Keep explicit offset updates unchanged.

(As written by CVE List.)

## Affected

- Linux Linux: from 7995bd287134f6c8f80d94bebe7396f05a9bc42b before b4a95e689fd42a988a36f454dbe113db677e4374; from 7995bd287134f6c8f80d94bebe7396f05a9bc42b before 3c90f154220720b409e243e2cc94534c42e912f2; from 7995bd287134f6c8f80d94bebe7396f05a9bc42b before ab0aa486a687e5467910f601a7afc6a4bd4a831d; from 7995bd287134f6c8f80d94bebe7396f05a9bc42b before bf8d84f78fb8ed4a00e259184bd73830108dd1d0; from 7995bd287134f6c8f80d94bebe7396f05a9bc42b before 3a2d1aa0e395b5f190fc1a89bbe41f857b20ce60; from 7995bd287134f6c8f80d94bebe7396f05a9bc42b before 8bceb60345446206ddaa648020e5bbff65409af8; from 7995bd287134f6c8f80d94bebe7396f05a9bc42b before 9802608232a65e6054bad9def7d3df03c567bf58; from 7995bd287134f6c8f80d94bebe7396f05a9bc42b before 79b496ebe382866e3a05090b7dc9ae95e85e65b2; 3.10 (not affected: before 3.10; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/b4a95e689fd42a988a36f454dbe113db677e4374>
- <https://git.kernel.org/stable/c/3c90f154220720b409e243e2cc94534c42e912f2>
- <https://git.kernel.org/stable/c/ab0aa486a687e5467910f601a7afc6a4bd4a831d>
- <https://git.kernel.org/stable/c/bf8d84f78fb8ed4a00e259184bd73830108dd1d0>
- <https://git.kernel.org/stable/c/3a2d1aa0e395b5f190fc1a89bbe41f857b20ce60>
- <https://git.kernel.org/stable/c/8bceb60345446206ddaa648020e5bbff65409af8>
- <https://git.kernel.org/stable/c/9802608232a65e6054bad9def7d3df03c567bf58>
- <https://git.kernel.org/stable/c/79b496ebe382866e3a05090b7dc9ae95e85e65b2>

## Sources

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

---

Page: https://cve.day/CVE-2026-99825 · Whole record: https://cve.day/CVE-2026-99825.json · Rebuilt by cve.day 2026-11-30T14:33:40.710Z
