CVE-2026-99825
splice: avoid stale f_pos writeback on error
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.
INFO
Published Date :
Nov. 30, 2026, 2:20 p.m.
Last Modified :
Nov. 30, 2026, 2:20 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Update file position on successful splice operations.
- Avoid restoring stale file position on splice errors.
- Ensure f_pos is updated correctly after splice.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-99825.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-99825 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-99825
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-99825 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-99825 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 30, 2026
Action Type Old Value New Value Added 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. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/99xxx/CVE-2026-99825.json">CVE-2026-99825</a> Added Reference https://git.kernel.org/stable/c/3a2d1aa0e395b5f190fc1a89bbe41f857b20ce60 Added Reference https://git.kernel.org/stable/c/3c90f154220720b409e243e2cc94534c42e912f2 Added Reference https://git.kernel.org/stable/c/79b496ebe382866e3a05090b7dc9ae95e85e65b2 Added Reference https://git.kernel.org/stable/c/8bceb60345446206ddaa648020e5bbff65409af8 Added Reference https://git.kernel.org/stable/c/9802608232a65e6054bad9def7d3df03c567bf58 Added Reference https://git.kernel.org/stable/c/ab0aa486a687e5467910f601a7afc6a4bd4a831d Added Reference https://git.kernel.org/stable/c/b4a95e689fd42a988a36f454dbe113db677e4374 Added Reference https://git.kernel.org/stable/c/bf8d84f78fb8ed4a00e259184bd73830108dd1d0