In the Linux kernel, the following vulnerability has been resolved: smb: client: discard post-EOF pagecache when extending a file via clone range… (CVE-2026-98685)
Description
A vulnerability in the Linux kernel's SMB client was resolved involving improper discarding of the pagecache when extending a file via clone range. The issue caused the folio overlapping the old end-of-file (EOF) to retain data beyond the EOF, which could become visible as file content after the file was extended.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's SMB client implementation involved the cifs_remap_file_range() function, which discarded the pagecache only for folios overlapping the destination region. When a clone operation extended a file, the folio straddling the old EOF—potentially containing data dirtied past EOF through mmap—was not discarded. This stale data became visible as part of the file content once the file size was extended. The fix involved starting the discard at the smaller of the file start and the old EOF, ensuring that no data past the old EOF remained visible. The file size (i_size) remains old during this operation, so no data past the old EOF is flushed to the server.
Potential Impact
This vulnerability could lead to exposure of stale or unintended data beyond the original EOF in files accessed via SMB on the Linux kernel. Such data might have been dirtied in memory but not intended to be part of the file content, potentially causing information disclosure.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to properly discard the pagecache overlapping the old EOF when extending a file via clone range. Users and administrators should apply the official kernel updates that include this fix. Patch status is not explicitly confirmed in the provided data; therefore, verify the vendor advisory or Linux kernel release notes for the exact fixed versions and apply updates accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-r85p-j355-crhr
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98685"]
Threat ID: 6ad520ac2cdf04f656993a2b
Added to database: 10/18/2026, 19:40:28 UTC
Last enriched: 10/18/2026, 22:27:56 UTC
Last updated: 10/19/2026, 01:28:21 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.