# CVE-2026-98685: smb: client: discard post-EOF pagecache when extending a file via clone range

> 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 7, 2026-11-26)
- **Published:** 2026-10-18T15:45:53.821Z
- **Modified:** 2026-11-23T08:17:28.143Z

## Who should check

- Anyone running Linux \>= 358bd5f436d820bb758833050aae065b35d6986c, \< b80ac4705a515dba51d80611505ec8a95e306d76; \>= 43801359c8971cc49b4a4db5015fba77fbd09c32, \< b905aea2cd3cd637ae2ab699dc9d5f5b3817060e; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< eba974d6c850e77db87f6f9ae343164227dffefc; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< 7beb2f2a58023b2ff28fd52bdb72bed74257ee04; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< 15bb9f1d3e967e328649e92a1451e60a0dc66118; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< 4721587f96cb8de8164f3fd203093a0875560999; \>= 6.1.68, \< 6.1.193; \>= 6.6.7, \< 6.6.163
- Anyone running Linux 6.7

## Description

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

smb: client: discard post-EOF pagecache when extending a file via clone range

cifs\_remap\_file\_range() discarded the pagecache only for the folios
overlapping the destination region, so when a clone extends the file the
folio straddling the old EOF - which may hold data dirtied past EOF
through an mmap - was never dropped and became visible as file content
once the file was extended.

Start the discard at the smaller of fstart and the old EOF.  i\_size is
still old here, so nothing past the old EOF is flushed to the server.

## Affected and fixed versions

- Linux: \>= 358bd5f436d820bb758833050aae065b35d6986c, \< b80ac4705a515dba51d80611505ec8a95e306d76; \>= 43801359c8971cc49b4a4db5015fba77fbd09c32, \< b905aea2cd3cd637ae2ab699dc9d5f5b3817060e; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< eba974d6c850e77db87f6f9ae343164227dffefc; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< 7beb2f2a58023b2ff28fd52bdb72bed74257ee04; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< 15bb9f1d3e967e328649e92a1451e60a0dc66118; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< 4721587f96cb8de8164f3fd203093a0875560999; \>= 6.1.68, \< 6.1.193; \>= 6.6.7, \< 6.6.163 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 6.6.163 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-98685. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98685.md
Affected: Linux >= 358bd5f436d820bb758833050aae065b35d6986c, < b80ac4705a515dba51d80611505ec8a95e306d76; >= 43801359c8971cc49b4a4db5015fba77fbd09c32, < b905aea2cd3cd637ae2ab699dc9d5f5b3817060e; >= c54fc3a4f375663f2361a9cbb2955fb4ef912879, < eba974d6c850e77db87f6f9ae343164227dffefc; >= c54fc3a4f375663f2361a9c…
Fixed in: Linux 7beb2f2a58023b2ff28fd52bdb72bed74257ee04, Linux 15bb9f1d3e967e328649e92a1451e60a0dc66118, Linux 4721587f96cb8de8164f3fd203093a0875560999, Linux 6.1.193, Linux 6.6.163

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-98685 being exploited?

There is no confirmed exploitation: CVE-2026-98685 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-98685?

It has no CVSS score yet. Unknown.

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

Linux \>= 358bd5f436d820bb758833050aae065b35d6986c, \< b80ac4705a515dba51d80611505ec8a95e306d76; \>= 43801359c8971cc49b4a4db5015fba77fbd09c32, \< b905aea2cd3cd637ae2ab699dc9d5f5b3817060e; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< eba974d6c850e77db87f6f9ae343164227dffefc; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< 7beb2f2a58023b2ff28fd52bdb72bed74257ee04; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< 15bb9f1d3e967e328649e92a1451e60a0dc66118; \>= c54fc3a4f375663f2361a9cbb2955fb4ef912879, \< 4721587f96cb8de8164f3fd203093a0875560999; \>= 6.1.68, \< 6.1.193; \>= 6.6.7, \< 6.6.163; Linux 6.7.

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

Yes. Fixed in Linux 7beb2f2a58023b2ff28fd52bdb72bed74257ee04, Linux 15bb9f1d3e967e328649e92a1451e60a0dc66118, Linux 4721587f96cb8de8164f3fd203093a0875560999, Linux 6.1.193, Linux 6.6.163. Upgrade Linux to 6.6.163 or later.

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

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/b80ac4705a515dba51d80611505ec8a95e306d76>
- other: <https://git.kernel.org/stable/c/b905aea2cd3cd637ae2ab699dc9d5f5b3817060e>
- other: <https://git.kernel.org/stable/c/eba974d6c850e77db87f6f9ae343164227dffefc>
- other: <https://git.kernel.org/stable/c/7beb2f2a58023b2ff28fd52bdb72bed74257ee04>
- other: <https://git.kernel.org/stable/c/15bb9f1d3e967e328649e92a1451e60a0dc66118>
- other: <https://git.kernel.org/stable/c/4721587f96cb8de8164f3fd203093a0875560999>

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

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