CVE-2026-98683: smb: client: flush dirty data before zeroing a range

Published Oct 18, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

smb: client: flush dirty data before zeroing a range

smb3zerorange() emulates FALLOCFLZERORANGE by invalidating the page cache over the target range with truncatepagecacherange() and then issuing FSCTLSETZERODATA 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 FSCTLSETZERODATA, exactly as was done for smb3punchhole() 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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Before invalidating the page cache and issuing FSCTL_SET_ZERO_DATA for a zero range, unconditionally flush and wait for dirty data in the target range to be written back to the server.

Event History

Oct 18, 2026
CVE Published
via MITRE·03:45 PM
Data Sourced
via MITRE·03:45 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Frequently Asked Questions

1

Who is exposed to this issue?

Systems using the Linux kernel SMB client are exposed when they perform an interior zero-range operation on an SMB3 file. The reported behavior was observed against Windows Server.

2

What conditions are needed to trigger the stale-data result?

A zeroed range must not reach or extend EOF, and dirty page-cache data must overlap that range. Without a flush before cache invalidation and the server zero-data request, later writeback can restore stale data into the range.

3

What is the practical impact?

A range expected to contain zeroes can instead return stale data. This can cause incorrect file contents after zero-range operations.

4

How can I determine whether a system is affected?

The issue is indicated by zero-range operations on SMB3 files intermittently reading stale data, such as the generic/363 test reading stale data where zeroes are expected. The provided data does not identify affected kernel version ranges.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203