# CVE-2026-98125: smb/client: fix stale page cache in insert/collapse range

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-669
- **Published:** 2026-09-25T10:36:07.163Z
- **Modified:** 2026-10-22T16:20:13.427Z

## Who should check

- Anyone running Linux \>= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, \< 52dd721b3de57e41261e08485b2bc62b22b80ebe; \>= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, \< 76222e76d08fbae4092ee9da84ded2b4c24ee598; \>= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, \< 01261a6fa48b62f5ead8e88aaca1e27cb9ab9032; 49523a4732204bdacbf3941a016503ddb4ddb3b9; 0cdde8460c304283d4ebe3f767a70215d1ab9d4e; \>= 5.19.12, \< 5.20
- Anyone running Linux 6.0

## Description

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

smb/client: fix stale page cache in insert/collapse range

smb3\_insert\_range() and smb3\_collapse\_range() use
truncate\_pagecache\_range() to invalidate the affected page cache.
However, if off or old\_eof is not page-aligned, the boundary pages are
only partially zeroed and remain uptodate. As a result, the client may
return stale data after a successful insert/collapse range operation.

For example, with 4K pages:

    page 0          page 1          page 2
    0------4K       4K------8K      8K------12K
       ^                                ^
    off=2K                       old\_eof=10K

Page 1 is removed from the page cache, while the boundary pages are
only partially zeroed. After COPYCHUNK moves the data on the server,
these cached pages may still return stale data.

This can be reproduced on a CIFS mount:

    bash -c '
            FILE=/mnt/scratch/repro

            \# Use a 6 KiB file so EOF is not page-aligned.
            dd if=/dev/urandom of=/tmp/src bs=1K count=6 status=none

            \# Expected: a 4 KiB hole followed by the original data.
            rm -f /tmp/expected
            truncate -s 4K /tmp/expected
            cat /tmp/src \>\> /tmp/expected

            cp /tmp/src "$FILE"

            \# Prime the page cache before moving data on the server.
            cat "$FILE" \> /dev/null

            fallocate --insert-range -o 0 -l 4K "$FILE"

            if cmp -s /tmp/expected "$FILE"; then
                    echo "readback: OK"
            else
                    echo "readback: STALE DATA"
            fi
    '

Fix this by writing back dirty data and discarding the page cache from
the start of the page containing off to EOF before moving data on the
server.

## Affected and fixed versions

- Linux: \>= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, \< 52dd721b3de57e41261e08485b2bc62b22b80ebe; \>= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, \< 76222e76d08fbae4092ee9da84ded2b4c24ee598; \>= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, \< 01261a6fa48b62f5ead8e88aaca1e27cb9ab9032; 49523a4732204bdacbf3941a016503ddb4ddb3b9; 0cdde8460c304283d4ebe3f767a70215d1ab9d4e; \>= 5.19.12, \< 5.20 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-98125.md
Affected: Linux >= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, < 52dd721b3de57e41261e08485b2bc62b22b80ebe; >= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, < 76222e76d08fbae4092ee9da84ded2b4c24ee598; >= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, < 01261a6fa48b62f5ead8e88aaca1e27cb9ab9032; 49523a4732204bdacbf3941a01…
Fixed in: Linux 52dd721b3de57e41261e08485b2bc62b22b80ebe, Linux 76222e76d08fbae4092ee9da84ded2b4c24ee598, Linux 01261a6fa48b62f5ead8e88aaca1e27cb9ab9032, Linux 5.20

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, \< 52dd721b3de57e41261e08485b2bc62b22b80ebe; \>= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, \< 76222e76d08fbae4092ee9da84ded2b4c24ee598; \>= fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4, \< 01261a6fa48b62f5ead8e88aaca1e27cb9ab9032; 49523a4732204bdacbf3941a016503ddb4ddb3b9; 0cdde8460c304283d4ebe3f767a70215d1ab9d4e; \>= 5.19.12, \< 5.20; Linux 6.0.

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

Yes. Fixed in Linux 52dd721b3de57e41261e08485b2bc62b22b80ebe, Linux 76222e76d08fbae4092ee9da84ded2b4c24ee598, Linux 01261a6fa48b62f5ead8e88aaca1e27cb9ab9032, Linux 5.20. Upgrade Linux to 5.20 or later.

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

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

- patch: <https://git.kernel.org/stable/c/52dd721b3de57e41261e08485b2bc62b22b80ebe>
- patch: <https://git.kernel.org/stable/c/76222e76d08fbae4092ee9da84ded2b4c24ee598>
- patch: <https://git.kernel.org/stable/c/01261a6fa48b62f5ead8e88aaca1e27cb9ab9032>

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

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