# CVE-2026-98844: netfs: clear post-EOF pagecache when extending a file via write

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:50:25.256Z
- **Modified:** 2026-10-19T10:19:48.483Z

## Who should check

- Anyone running Linux \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< f8f7d86b3537e885ee620898a38b749fba8a8456; \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< 98f6a4589e0f5f6cf819b8dd45605efc481c06ce; \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< a7036a73671fc83d299bc770710fe996d9fef9ca; \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< 69bf14300b50631e7c2271289d347bbd1b19a06c
- Anyone running Linux 6.8

## Description

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

netfs: clear post-EOF pagecache when extending a file via write

Fix netfs to erase the contents of a hole created after the EOF by an
ordinary write if dirty data has been previously left there by writes
through an mmapped region.  Neither the buffered nor the unbuffered/DIO
write path clears that stale pagecache.

Zero the tail of the folio straddling the EOF before an extending
write.  That is the only folio that can hold data written past the EOF
through an mmap, as pages wholly beyond the EOF can't be faulted in.
The folio is zeroed rather than dropped so a concurrent extending write
can't lose data.

Both write paths downgrade the i\_rwsem to shared, so extending writes
can run concurrently and the i\_size read by the caller may be stale by
the time the folio is locked.  Re-read i\_size under the folio lock and
clamp the zeroed range up to it, so a racing write that already put
data into the folio isn't clobbered.

Wait for any writeback on the folio to finish before zeroing it so that
the pagecache isn't modified while it may still be read by the transport
during transmission.  Honour IOCB\_NOWAIT by returning -EAGAIN rather
than blocking on the folio lock, on writeback, or in folio\_mkclean()'s
rmap walk when the folio is mapped.

truncate\_pagecache() can't be used here: it must be called with the
i\_rwsem held exclusively, but these write paths only hold it shared,
and it would block unconditionally, breaking IOCB\_NOWAIT.

Callers that hold i\_rwsem exclusively for the whole resize (truncate,
setattr, fallocate, clone) exclude any genuine concurrent buffered
writer, so staleness can instead be decided from the folio's dirty
state, as pagecache\_isize\_extended() already does for filesystems that
serialise writes against truncate/setattr via a single i\_rwsem.
Export netfs\_clear\_stale\_post\_isize() helper to handle such case.

The helper is required by the CIFS client to fix generic/363.

## Affected and fixed versions

- Linux: \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< f8f7d86b3537e885ee620898a38b749fba8a8456; \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< 98f6a4589e0f5f6cf819b8dd45605efc481c06ce; \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< a7036a73671fc83d299bc770710fe996d9fef9ca; \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< 69bf14300b50631e7c2271289d347bbd1b19a06c (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 69bf14300b50631e7c2271289d347bbd1b19a06c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98844. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98844.md
Affected: Linux >= 153a9961b551101cd38e94e26cd92fbfd198b19b, < f8f7d86b3537e885ee620898a38b749fba8a8456; >= 153a9961b551101cd38e94e26cd92fbfd198b19b, < 98f6a4589e0f5f6cf819b8dd45605efc481c06ce; >= 153a9961b551101cd38e94e26cd92fbfd198b19b, < a7036a73671fc83d299bc770710fe996d9fef9ca; >= 153a9961b551101cd38e94e…
Fixed in: Linux 98f6a4589e0f5f6cf819b8dd45605efc481c06ce, Linux 69bf14300b50631e7c2271289d347bbd1b19a06c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98844 being exploited?

There is no confirmed exploitation: CVE-2026-98844 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98844?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98844?

Linux \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< f8f7d86b3537e885ee620898a38b749fba8a8456; \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< 98f6a4589e0f5f6cf819b8dd45605efc481c06ce; \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< a7036a73671fc83d299bc770710fe996d9fef9ca; \>= 153a9961b551101cd38e94e26cd92fbfd198b19b, \< 69bf14300b50631e7c2271289d347bbd1b19a06c; Linux 6.8.

### Is there a fix for CVE-2026-98844?

Yes. Fixed in Linux 98f6a4589e0f5f6cf819b8dd45605efc481c06ce, Linux 69bf14300b50631e7c2271289d347bbd1b19a06c. Upgrade Linux to 69bf14300b50631e7c2271289d347bbd1b19a06c or later.

### How do I check if I'm affected by CVE-2026-98844?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f8f7d86b3537e885ee620898a38b749fba8a8456>
- other: <https://git.kernel.org/stable/c/98f6a4589e0f5f6cf819b8dd45605efc481c06ce>
- other: <https://git.kernel.org/stable/c/a7036a73671fc83d299bc770710fe996d9fef9ca>
- other: <https://git.kernel.org/stable/c/69bf14300b50631e7c2271289d347bbd1b19a06c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98844>

HTML: <https://flawdb.com/CVE-2026-98844> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98844>
