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

- 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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-18T15:50:23.578Z
- Modified: 2026-10-19T10:19:48.390Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e before 512eaf01ffabf4258e945016b50df5aed940b705; from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e before 2a62fe628a877c249c8286b157ee99d82840d9dc; from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e before 8db55c5cd831a786a1a2a2d391aa80354535a353; 6.12 (not affected: before 6.12; from 6.18.56 up to 6.18.*; from 7.2.10 up to 7.2.*; from 7.3 up to *)

## References

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

## Sources

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

---

Page: https://cve.day/CVE-2026-98843 · Whole record: https://cve.day/CVE-2026-98843.json · Rebuilt by cve.day 2026-11-25T22:59:45.323Z
