Skip to main content
Vulnerability Database/CVE-2026-98685

CVE-2026-98685: Linux Kernel Information Disclosure Vulnerability

CVE-2026-98685 is an information disclosure flaw in the Linux kernel SMB client that exposes cached data when extending files via clone range operations. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98685 Overview

CVE-2026-98685 is a Linux kernel vulnerability in the SMB client (cifs) subsystem. The flaw resides in cifs_remap_file_range(), which handles file clone range operations against SMB servers. When a clone operation extended a file, the function only discarded pagecache folios overlapping the destination region. The folio straddling the previous end-of-file (EOF) — which could hold stale data dirtied past EOF through an mmap mapping — was not dropped. After the file was extended, that stale data became visible as legitimate file content.

Critical Impact

Local users with access to an SMB-mounted filesystem can expose stale pagecache data as file content, potentially leading to information disclosure or data integrity issues.

Affected Products

  • Linux kernel SMB client (cifs/smb subsystem)
  • Systems mounting remote filesystems via the SMB/CIFS protocol
  • Distributions shipping affected mainline and stable kernel branches

Discovery Timeline

  • 2026-10-18 - CVE-2026-98685 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98685

Vulnerability Analysis

The vulnerability affects the SMB client's handling of the FICLONERANGE ioctl path in cifs_remap_file_range(). Clone range operations duplicate byte ranges between files on the server. When the destination offset plus length exceeds the current destination file size, the operation extends the file.

Before the fix, the client invalidated pagecache folios only within the destination range. If a folio straddling the old EOF contained data written past EOF through a shared memory mapping, that folio was not evicted. Once the clone extended i_size, the stale post-EOF bytes in the retained folio became readable as valid file content from the extended region.

This represents an information disclosure and data integrity issue [CWE-200 / CWE-908]. The exposed bytes may contain previously written application data that was intentionally beyond EOF and should not have been observable after the clone.

Root Cause

The root cause is an incorrect starting offset for pagecache invalidation. cifs_remap_file_range() began the discard at fstart (the destination start offset) rather than at the smaller of fstart and the old EOF. The folio containing the previous EOF was therefore skipped during invalidation, preserving stale post-EOF data in the pagecache.

Attack Vector

A local user with write access to a file on an SMB mount can:

  1. Create an mmap mapping of the file and dirty bytes past the current EOF within the mapped folio.
  2. Issue a FICLONERANGE clone operation that extends the file past the old EOF.
  3. Read the newly extended region and observe the stale post-EOF data that was never flushed to the server but remains in the client pagecache.

The patch starts the pagecache discard at min(fstart, old_i_size), ensuring the folio straddling the old EOF is dropped. Because i_size is still the old value at discard time, nothing past the old EOF is flushed to the server. See the upstream fixes in Kernel Git Commit 15bb9f1 and Kernel Git Commit 4721587.

Detection Methods for CVE-2026-98685

Indicators of Compromise

  • Unexpected content appearing in files recently extended via clone range operations on SMB mounts.
  • Processes combining mmap writes past EOF with ioctl(FICLONERANGE) on cifs-mounted paths.
  • Divergence between file content read on the SMB client and the authoritative content stored on the SMB server.

Detection Strategies

  • Audit running kernel versions on hosts that mount SMB shares and compare against patched stable branches referenced in the upstream commits.
  • Enable kernel audit rules on ioctl system calls targeting SMB mount points to identify processes performing clone range operations.
  • Compare file sizes and checksums between SMB clients and servers to detect content divergence introduced by stale pagecache exposure.

Monitoring Recommendations

  • Collect kernel version inventory across Linux endpoints and servers that mount SMB/CIFS shares.
  • Monitor syscall telemetry for sequences of mmap, writes past EOF, and FICLONERANGE on cifs file descriptors.
  • Alert on unexpected modifications to files on SMB shares that are not reflected on the server side.

How to Mitigate CVE-2026-98685

Immediate Actions Required

  • Inventory all Linux hosts mounting SMB/CIFS shares and identify kernels that lack the upstream fix.
  • Apply the stable kernel update containing the patched cifs_remap_file_range() behavior and reboot affected hosts.
  • Restrict SMB mount access to trusted users where immediate patching is not possible.

Patch Information

The fix adjusts cifs_remap_file_range() to start pagecache invalidation at the smaller of fstart and the old EOF, ensuring the folio straddling the previous end-of-file is discarded before the file is extended. Patched commits are available in the upstream kernel tree: Kernel Git Commit 15bb9f1 and Kernel Git Commit 4721587. Apply the vendor-provided stable kernel release that includes these commits.

Workarounds

  • Avoid using FICLONERANGE clone operations on SMB-mounted files until the kernel is patched.
  • Mount SMB shares with caching disabled (cache=none) to reduce reliance on client-side pagecache behavior.
  • Limit shell and process access to SMB mount points to trusted service accounts only.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.