Impact
The Linux kernel SMB client incorrectly handles the FALLOC_FL_KEEP_SIZE flag for small interior ranges in smb3_simple_fallocate_range(). Before querying the server for allocated ranges, it fails to force the Windows server to commit the data, so a subsequent FSCTL_QUERY_ALLOCATED_RANGES may return an empty range list even after a write. The client then zero‑fills any unallocated hole reported, overwriting live data. This flaw can cause data loss on SMB shares and results from improper operation sequencing (CWE-750).
Affected Systems
Linux kernels that have not yet received the SMB client patch are affected. Any distribution using the generic Linux kernel is at risk, especially when accessing Windows 2022 files via SMB3. The vulnerability resides in the kernel’s SMB client code and is limited to environments that use SMB3 file operations.
Risk and Exploitability
The EPSS score is not available and the issue is not listed in the CISA KEV catalog, but it can lead to loss of file contents on Windows servers accessed through the affected Linux kernel. Exploitation would require writing data to a Windows share and then accessing it via the SMB client before the server has committed the data, a scenario that demands specific SMB3 access and timing. Updating to the patched kernel removes the risk; otherwise, mitigation hinges on ensuring a flush occurs before querying allocated ranges.
OpenCVE Enrichment