smb/client: fix stale page cache in insert/collapse range
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 4 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.19.12 to before 5.20 | 5.20 | Patch available | CNA |
| Linux | Linux | 6.0 and later | 6.6.160, 7.2.7, 7.3 | Patch available | CNA |
- Linux VendorLinux Affected 5.19.12 to before 5.20 Fixed in 5.20 Patch available CNA
- Linux VendorLinux Affected 6.0 and later Fixed in 6.6.160, 7.2.7, 7.3 Patch available CNA
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.19.12 to before 6.0; 6.1 to before 6.6.160; 6.7 to before 7.2.7 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.0:-:*:*:*:*:*:* | 6.0 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.0:rc4:*:*:*:*:*:* | 6.0 rc4 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.0:rc5:*:*:*:*:*:* | 6.0 rc5 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.0:rc6:*:*:*:*:*:* | 6.0 rc6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.0:rc7:*:*:*:*:*:* | 6.0 rc7 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:* | 7.3 rc1 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 5.19.12 to before 6.0; 6.1 to before 6.6.160; 6.7 to before 7.2.7 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.0:-:*:*:*:*:*:* Versions 6.0 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.0:rc4:*:*:*:*:*:* Versions 6.0 rc4 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.0:rc5:*:*:*:*:*:* Versions 6.0 rc5 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.0:rc6:*:*:*:*:*:* Versions 6.0 rc6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.0:rc7:*:*:*:*:*:* Versions 6.0 rc7 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:* Versions 7.3 rc1 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.20
- Fix · CNA Linux (Linux) Fixed in 6.6.160, 7.2.7, 7.3
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet: Fix deferred |
Not affected: 5 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-10-02 Threatist record created from CVE-2026-98125
- 2026-10-03 Alias added: GHSA-mgrf-j38j-q2mg
- 2026-10-19 Fix available: Linux/[email protected] · CNA
- 2026-10-21 Fix available: Linux/Linux@52dd721b3de57e41261e08485b2bc62b22b80ebe, Linux/[email protected] · CNA
- 2026-10-21 1 new reference · CNA
- 2026-10-23 CVSS score added · NVD
- 2026-10-23 Weakness changed · NVD
- 2026-11-07 Affected versions changed · Red Hat
References
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2026-98125 · CVE Program
- CVE-2026-98125 · NVD
- FIRST EPSS
- GHSA-mgrf-j38j-q2mg · GitHub Advisory Database · CC BY 4.0
- CVE-2026-98125 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences