Skip to main content

In the Linux kernel, the following vulnerability has been resolved: smb: client: flush and commit data before querying allocated ranges The mode 0 /… (CVE-2026-98684)

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

Description

A vulnerability in the Linux kernel's SMB client implementation related to the handling of allocated ranges in the fallocate emulation was resolved. The issue arises because the FSCTL_QUERY_ALLOCATED_RANGES call on Windows servers may not reflect recently written data unless the data is flushed and committed first. This can lead to zero-filling of live data, causing data corruption. The fix ensures that dirty pages are written back, outstanding I/O is drained, and an SMB2 FLUSH is issued before querying allocated ranges, preventing data corruption.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 22:29:04 UTC

Technical Analysis

The Linux kernel SMB client had a vulnerability in its fallocate emulation (mode 0 / FALLOC_FL_KEEP_SIZE) for small interior ranges. It used FSCTL_QUERY_ALLOCATED_RANGES to identify unallocated holes and zero-fill them to force block allocation without changing file contents. However, Windows servers' FSCTL_QUERY_ALLOCATED_RANGES only reports ranges that may contain nonzero data and is not coherent with recent writes unless data is flushed. This caused the client to overwrite live data with zeroes after a write operation. The issue was demonstrated against Windows Server 2022 using fsx (generic/363). The fix involves flushing dirty pages, draining outstanding I/O, and issuing an SMB2 FLUSH to ensure the query reflects the actual data present, preventing corruption.

Potential Impact

Without the fix, the Linux kernel SMB client may corrupt data by zero-filling live data ranges after writes when interacting with Windows servers. This can lead to data loss or corruption on network file systems using SMB3 with fallocate emulation. The issue specifically affects interactions with Windows Server 2022 and similar SMB servers that do not guarantee coherency of FSCTL_QUERY_ALLOCATED_RANGES without flushing.

Mitigation Recommendations

A fix has been implemented in the Linux kernel that flushes dirty pages, drains outstanding I/O, and issues an SMB2 FLUSH before querying allocated ranges. Users should update to a Linux kernel version that includes this fix. No additional mitigation is required if the fix is applied.

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-6247-f99h-hr72
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98684"]

Threat ID: 6ad520ac2cdf04f656993a3a

Added to database: 10/18/2026, 19:40:28 UTC

Last enriched: 10/18/2026, 22:29:04 UTC

Last updated: 10/19/2026, 01:08:20 UTC

Views: 3

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