---
id: "CVE-2026-98843"
kind: "vulnerability"
aliases: ["CVE-2026-98843"]
title: "Linux kernel netfs: stale folio data can be written back to disk"
severity: "unknown"
cvss: null
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["kernel", "linux", "netfs", "network-filesystems", "runtime"]
not_affected_if: []
published_at: "2026-10-18T16:17:38+00:00"
first_seen_at: "2026-10-23T21:57:17+00:00"
updated_at: "2026-10-25T05:13:08+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98843", "first_seen_at": "2026-10-23T21:57:17+00:00"}]
---

# Linux kernel netfs: stale folio data can be written back to disk

In the Linux kernel's netfs layer, gaps around a streaming write's dirty region were left unread, so a short or end-of-file server response could leave stale folio content. That stale content could then be written back, so data in the page cache may be corrupted or leak old contents.

_Summary, check and fix written by a model from the sources; labelled as such._

## Timeline

- 2026-10-23T21:57:17+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-98843

## From the sources

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

netfs: zero gaps in read-gaps folio to avoid writing back stale data

netfs_read_gaps() leaves gaps around a streaming write's dirty region
unread on the server side, so a short/EOF response there left stale
folio content that later got written back.

Zero it after the read completes, not before: netfs_wait_for_read()
returns rreq->transferred once ret >= 0, so build an iterator over the
same bvec array the read used, advance past ret, and zero the rest.
The dirty region already maps to sink pages in that array rather than
the real folio, so this can't touch it, and only the actual shortfall
gets zeroed instead of the whole gap upfront.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
