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-97565 Overview
CVE-2026-97565 is an out-of-bounds read vulnerability in the Linux kernel's SMB client code. The flaw resides in the CIFSSMBRead() function within the smb/client subsystem. The function dereferences DataLengthHigh, DataLength, and DataOffset fields from a server-returned READ_RSP structure without validating that the response is at least read_rsp_size bytes long. A malicious or compromised SMB1 server can return a truncated response, causing the parser to read past the end of the receive buffer. SMB1 is not negotiated by default; triggering this code path requires an explicit vers=1.0 mount option.
Critical Impact
Out-of-bounds read in kernel memory triggered by a malicious SMB1 server, potentially leading to kernel information disclosure or denial of service on clients using legacy CIFS mounts.
Affected Products
- Linux kernel smb/client subsystem (CIFS)
- Systems mounting remote shares with the vers=1.0 (SMB1) option
- Distributions shipping affected kernel versions prior to the upstream fix
Discovery Timeline
- 2026-09-25 - CVE-2026-97565 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97565
Vulnerability Analysis
The vulnerability exists in CIFSSMBRead() in the Linux kernel's CIFS client implementation. When processing a server response to an SMB1 READ request, the function accesses header fields including DataLengthHigh, DataLength, and DataOffset to determine where payload data resides. The length of the actual response is tracked in rsp_iov.iov_len, but the code performs these field accesses without verifying that iov_len is at least read_rsp_size, the size of the full READ_RSP header. Reading these fields from a short response therefore accesses memory beyond the receive buffer boundary.
Successful exploitation requires an attacker-controlled SMB1 server and a client that has mounted a share using vers=1.0. Because SMB1 is deprecated and not negotiated by default, the exposed surface is limited to systems that still rely on legacy CIFS compatibility.
Root Cause
The root cause is missing input validation on the length of a received network buffer before structured header parsing. The code assumes a well-formed READ_RSP without enforcing a minimum size check, resulting in an out-of-bounds read when the server returns a response shorter than the header itself.
Attack Vector
An attacker must operate or compromise an SMB server that a Linux client connects to using SMB1. By returning a crafted READ response shorter than read_rsp_size, the attacker triggers the parser to read past the end of the allocated receive buffer. Consequences include kernel memory disclosure through subsequent processing paths, kernel crashes causing denial of service, and potentially leaking adjacent kernel data depending on allocator state.
No verified exploit code is publicly available. See the upstream commits linked under References for the exact patched code paths.
Detection Methods for CVE-2026-97565
Indicators of Compromise
- Kernel log entries referencing CIFSSMBRead, CIFS protocol errors, or oops traces originating from the cifs.ko module
- Unexpected client-side CIFS mount disconnects or kernel panics shortly after read operations against untrusted SMB1 servers
- Mount table entries showing vers=1.0 or vers=cifs on shares pointing to external or untrusted hosts
Detection Strategies
- Inventory Linux hosts to identify kernel versions predating the patch commits 0f1f77b821506a4dacab6ce7d29cf9e0c26f14cd, aaa221c1b1d288845b55e9c366e5ef608dfff49d, and e6142a8bfc230c7263eb8b0475249c958ce49367
- Audit /etc/fstab, systemd mount units, and autofs maps for explicit SMB1 configuration
- Monitor network traffic for SMB1 (SMB dialect) negotiations originating from Linux clients
Monitoring Recommendations
- Collect kernel ring buffer output and journald logs centrally and alert on CIFS module crashes or warnings
- Track outbound SMB connections and flag those negotiating the deprecated SMB1 dialect
- Correlate mount events with destination server reputation to detect connections to unexpected or external SMB hosts
How to Mitigate CVE-2026-97565
Immediate Actions Required
- Upgrade the Linux kernel to a version that includes the upstream patches referenced in the kernel Git commit log
- Remove vers=1.0 from all CIFS mount options and renegotiate shares using SMB 2.1 or later
- Restrict outbound SMB traffic from Linux clients to known, trusted file servers
Patch Information
The fix adds a length check that rejects any READ response shorter than read_rsp_size before the header fields are dereferenced. The upstream commits are available at the kernel.org commit 0f1f77b8, kernel.org commit aaa221c1, and kernel.org commit e6142a8b. Apply vendor-provided kernel updates once the backport is available in your distribution.
Workarounds
- Disable SMB1 on all Linux clients by removing vers=1.0 and vers=cifs from mount configurations
- Blacklist the cifs kernel module on systems that do not require SMB connectivity
- Enforce egress filtering on TCP port 445 to prevent connections to untrusted SMB servers
# Identify active CIFS mounts and dialect in use
mount -t cifs
cat /proc/mounts | grep cifs
# Remount a share using a modern SMB dialect instead of SMB1
sudo umount /mnt/share
sudo mount -t cifs //server/share /mnt/share -o vers=3.1.1,credentials=/etc/smbcreds
# Prevent the cifs module from loading if not required
echo 'blacklist cifs' | sudo tee /etc/modprobe.d/blacklist-cifs.conf
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

