CVE-2026-98683

smb: client: flush dirty data before zeroing a range

Published Oct 18, 2026 CVSS 3.1 · 2.5 Low EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

smb: client: flush dirty data before zeroing a range

smb3_zero_range() emulates FALLOC_FL_ZERO_RANGE by invalidating the
page cache over the target range with truncate_pagecache_range() and
then issuing FSCTL_SET_ZERO_DATA to the server.

Dirty data was only flushed conditionally, when the range reached or
extended EOF. For a purely interior zero range that does not reach
EOF, no flush happened, so a dirty folio overlapping the range could
be written back to the server after the FSCTL and refill the range
that was just zeroed with stale data.

Fix this by unconditionally flushing and waiting for dirty data in the
range before invalidating the page cache and issuing
FSCTL_SET_ZERO_DATA, exactly as was done for smb3_punch_hole() in
commit d7d2adcd022b ("smb/client: flush dirty data before punching a
hole"); the two paths are structurally identical here.

This is observed as generic/363 randomly reading stale data where a
zeroed range is expected against Windows Server.

Analysis

AI-generated

Technical impact

The Linux kernel’s SMB client contained a flaw where dirty page cache data was only flushed when a zeroed range touched the end-of-file. When a purely interior range was zeroed, the page cache was invalidated and the server was instructed to zero the range via FSCTL_SET_ZERO_DATA, but the dirty data remained unsafely cached. Consequently, a stale copy of that data could be written back to the server and later read, exposing information that should have been purged.

Affected Systems

All Linux kernel releases that have not been updated with the commit fixing this issue are affected. The specific version range is not listed, so any system running an unpatched kernel may be vulnerable. The vulnerability applies to all Linux distributions that use the default kernel.

Risk and Exploitability

The CVSS score of 2.5 and an EPSS score of <1% characterize this vulnerability, and it is not listed in the CISA KEV catalog, indicating no publicly known exploit code. Nonetheless, the flaw permits data leakage when SMB clients perform zeroing operations on interior ranges, which could be leveraged by an attacker with access to the SMB connection or by local users manipulating the kernel’s behavior. The risk is considered moderate to high if sensitive data is stored on SMB shares, but the likelihood of exploitation remains low until an attacker actively uses zero_range operations in a context that triggers the stale data path.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a patched version that incorporates the SMB zero-range fix.
  • If a kernel upgrade cannot be applied immediately, avoid using smbd operations that zero internal file ranges or replace them with manual truncation followed by explicit zeroing using application logic.
  • After zeroing operations, verify file integrity through checksums or other consistency checks to ensure no stale data remains.

Generated by OpenCVE AI on October 22, 2026 at 20:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4927-1 linux-6.12 security update
Ubuntu USN Ubuntu USN USN-9018-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9018-2 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-821
References
Metrics threat_severity

None

cvssV3_1

{'score': 2.5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-596
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: flush dirty data before zeroing a range smb3_zero_range() emulates FALLOC_FL_ZERO_RANGE by invalidating the page cache over the target range with truncate_pagecache_range() and then issuing FSCTL_SET_ZERO_DATA to the server. Dirty data was only flushed conditionally, when the range reached or extended EOF. For a purely interior zero range that does not reach EOF, no flush happened, so a dirty folio overlapping the range could be written back to the server after the FSCTL and refill the range that was just zeroed with stale data. Fix this by unconditionally flushing and waiting for dirty data in the range before invalidating the page cache and issuing FSCTL_SET_ZERO_DATA, exactly as was done for smb3_punch_hole() in commit d7d2adcd022b ("smb/client: flush dirty data before punching a hole"); the two paths are structurally identical here. This is observed as generic/363 randomly reading stale data where a zeroed range is expected against Windows Server.
Title smb: client: flush dirty data before zeroing a range
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-596

    DEPRECATED: Incorrect Semantic Object Comparison

  • CWE-821

    Incorrect Synchronization

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 23, 2026, 8:00 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Nov 23, 2026, 8:17 AM
Severity
Low
Public date
Oct 18, 2026, 12:00 AM