In the Linux kernel, the following vulnerability has been resolved: smb: client: drain and invalidate before server-side copy/clone… (CVE-2026-98682)
Description
A vulnerability in the Linux kernel's SMB client implementation related to server-side copy and clone operations could cause file corruption. The issue arises because the destination page cache is not properly serialized against server-side copy operations, allowing asynchronous writeback to overwrite newly copied data. This flaw has been fixed by ensuring proper locking and draining of in-flight I/O before issuing server-side copy or clone commands.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel affects the SMB client code paths for server-side copy and clone operations (cifs_file_copychunk_range() and the clone path of cifs_remap_file_range()). These functions do not properly serialize the destination page cache against server-side copy operations, unlike other SMB range operations. Specifically, the destination range invalidation and flushing do not hold the necessary invalidate_lock throughout the operation, and in-flight network filesystem I/O is not drained before issuing the copy/clone ioctl. This can lead to asynchronous writeback completing after the server-side copy/clone, reinstating stale data and corrupting the file. The fix involves holding the target mapping's invalidate_lock across flushing, invalidation, and the server ioctl, and draining outstanding I/O before issuing the ioctl, thus preventing stale data overwrites.
Potential Impact
This vulnerability can cause file corruption on the client side when performing server-side copy or clone operations over SMB. The corruption occurs because stale data can overwrite the newly copied data due to improper synchronization of the page cache and outstanding I/O. There is no indication of remote code execution or privilege escalation. The impact is limited to data integrity loss in affected file operations.
Mitigation Recommendations
A fix is available that properly serializes the destination page cache by holding the invalidate_lock during flush and invalidation steps and draining outstanding I/O before issuing the server-side copy/clone ioctl. Users should apply the official Linux kernel update that addresses this issue. No additional mitigations are indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-78hr-gpp6-3qpr
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98682"]
Threat ID: 6ad520ac2cdf04f656993a39
Added to database: 10/18/2026, 19:40:28 UTC
Last enriched: 10/18/2026, 22:29:01 UTC
Last updated: 10/19/2026, 01:08:21 UTC
Views: 4
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.