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-98684 Overview
CVE-2026-98684 is a data corruption vulnerability in the Linux kernel's SMB client. The flaw affects the smb3_simple_fallocate_range() function used to emulate FALLOC_FL_KEEP_SIZE fallocate operations for small interior ranges. The client issues FSCTL_QUERY_ALLOCATED_RANGES and zero-fills any sub-range the server reports as an unallocated hole. Against Windows servers, the query is not coherent with recently written data, causing live file data to be overwritten with zeroes. The issue was reproduced with fsx (generic/363) against Windows Server 2022. Samba is unaffected because its query is coherent with written data.
Critical Impact
Linux SMB clients communicating with Windows file servers can silently overwrite recently written file data with zeroes during fallocate operations, resulting in on-disk data corruption.
Affected Products
- Linux kernel SMB client (fs/smb/client)
- Systems mounting SMB3 shares hosted on Windows Server (confirmed on Windows Server 2022)
- Workloads invoking fallocate(2) with mode 0 or FALLOC_FL_KEEP_SIZE on SMB-mounted files
Discovery Timeline
- 2026-10-18 - CVE-2026-98684 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98684
Vulnerability Analysis
The Linux SMB client emulates FALLOC_FL_KEEP_SIZE fallocate for small interior ranges by querying the server for allocated ranges and writing zeroes into reported holes to force block allocation without altering file contents. The emulation assumes FSCTL_QUERY_ALLOCATED_RANGES returns a coherent, up-to-date view of allocation state. Windows servers do not guarantee this coherency.
According to the Win32 documentation, FSCTL_QUERY_ALLOCATED_RANGES only reports ranges that may contain nonzero data and is explicitly not coherent with recently written network data. A reproducer using fsx (generic/363) showed a write succeed, a subsequent uncached read return the written data, and the following allocation query report the same range as a whole hole. The emulation then zero-filled the range, destroying live data. Network traces confirmed the WRITE, READ, and query occurring within microseconds.
Root Cause
The root cause is a protocol-level cache coherency assumption violation [CWE-212 class behavior]. smb3_simple_fallocate_range() queries the server for allocated ranges without first flushing dirty pages or forcing the server to commit outstanding writes. On Windows, pending writes are not reflected in the query response.
Attack Vector
This is a data integrity defect triggered by legitimate fallocate(2) calls, not a remotely exploitable code execution flaw. Any process with write access to a file on an SMB-mounted Windows share that invokes fallocate with mode 0 or FALLOC_FL_KEEP_SIZE on a recently written interior range can trigger silent data loss. Databases, container runtimes, and backup tools that rely on fallocate are most exposed.
The fix writes back dirty pages, drains outstanding I/O, and issues an SMB2 FLUSH to force the server to commit data before querying allocated ranges. With the patch, generic/363 passes against both Windows Server 2022 and Samba across 100,000 fsx operations.
Detection Methods for CVE-2026-98684
Indicators of Compromise
- Unexpected zero-filled regions in files residing on SMB3 mounts backed by Windows Server
- fsx or generic/363 xfstests failing with data mismatches against SMB mounts
- Application-level checksum or integrity failures correlated with fallocate activity on SMB shares
Detection Strategies
- Audit kernel versions on Linux hosts mounting SMB shares and compare against the fixed stable commits referenced below
- Run xfstests generic/363 against production-like SMB mounts to confirm whether the host is vulnerable
- Correlate SMB WRITE, READ, and FSCTL_QUERY_ALLOCATED_RANGES sequences in packet captures to detect the unsafe pattern
Monitoring Recommendations
- Monitor file integrity on SMB-hosted datasets using checksums or application-layer validation
- Track Linux kernel package versions across the fleet and alert on hosts running cifs.ko or smb client builds without the fix
- Review backup and database workloads that call fallocate on network shares for unexplained data corruption
How to Mitigate CVE-2026-98684
Immediate Actions Required
- Apply the upstream stable kernel patches referenced in the kernel.org commits once available in your distribution
- Avoid fallocate(2) with mode 0 or FALLOC_FL_KEEP_SIZE against files on SMB mounts backed by Windows Server until patched
- Prefer Samba-backed shares where feasible, since Samba's query path is coherent with written data
Patch Information
The fix is tracked across three stable kernel commits: aa994489bd835547c191827acc460192e147032d, bf84e44ff0ed802778eafd7ecb623635379cb506, and f82242fe3109a3ef72f429540b5bdde08fbfb0e4. The patch adds a writeback, I/O drain, and SMB2 FLUSH before issuing FSCTL_QUERY_ALLOCATED_RANGES in smb3_simple_fallocate_range().
Workarounds
- Mount SMB shares backed by Windows Server read-only where feasible until the kernel is patched
- Reconfigure applications to use pwrite or explicit zero-writes instead of fallocate on SMB-hosted files
- Migrate affected workloads to Samba-backed SMB servers, which do not exhibit the coherency defect
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

