{"id":"CVE-2026-99825","summary":"splice: avoid stale f_pos writeback on error","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsplice: avoid stale f_pos writeback on error\n\ndo_splice() snapshots an implicit file position before calling the splice\nhelper. Since splice does not take f_pos_lock, another operation on the\nsame open file description can update f_pos while the helper is blocked.\nIf the helper then fails, the unconditional writeback restores the stale\nsnapshot.\n\nFor a directory without -\u003esplice_read, a file-to-pipe splice fails with\n-EINVAL. A concurrent directory mutation and getdents() call can advance\nf_pos and refresh the filesystem's revalidation cookie before that failure\nrestores only the old position. The next ext2 readdir can then trust an\noffset inside a directory entry and copy data from the adjacent page to\nuserspace.\n\nOnly update an implicit file position when splice returns a non-negative\nresult, matching read and write. Keep explicit offset updates unchanged.","modified":"2026-11-30T15:02:31.228001861Z","published":"2026-11-30T13:17:22.801Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99825.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3a2d1aa0e395b5f190fc1a89bbe41f857b20ce60"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c90f154220720b409e243e2cc94534c42e912f2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/79b496ebe382866e3a05090b7dc9ae95e85e65b2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8bceb60345446206ddaa648020e5bbff65409af8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9802608232a65e6054bad9def7d3df03c567bf58"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ab0aa486a687e5467910f601a7afc6a4bd4a831d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4a95e689fd42a988a36f454dbe113db677e4374"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bf8d84f78fb8ed4a00e259184bd73830108dd1d0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99825.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99825"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7995bd287134f6c8f80d94bebe7396f05a9bc42b"},{"fixed":"b4a95e689fd42a988a36f454dbe113db677e4374"},{"fixed":"3c90f154220720b409e243e2cc94534c42e912f2"},{"fixed":"ab0aa486a687e5467910f601a7afc6a4bd4a831d"},{"fixed":"bf8d84f78fb8ed4a00e259184bd73830108dd1d0"},{"fixed":"3a2d1aa0e395b5f190fc1a89bbe41f857b20ce60"},{"fixed":"8bceb60345446206ddaa648020e5bbff65409af8"},{"fixed":"9802608232a65e6054bad9def7d3df03c567bf58"},{"fixed":"79b496ebe382866e3a05090b7dc9ae95e85e65b2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99825.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.10.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99825.json"}}],"schema_version":"1.9.2"}