Skip to main content

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)

0
Medium
Published: 10/18/2026 (10/18/2026, 18:31:59 UTC)
Source: GCVE Database

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

AILast updated: 10/18/2026, 22:27:56 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses