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-97563 Overview
CVE-2026-97563 is a Linux kernel vulnerability in the SMB client code path CIFSSMBRead(). The function validates the server-supplied DataLength field but never validates DataOffset before computing the memory copy source pointer. A malicious or compromised SMB1 server can return a response with an in-range DataLength and a large DataOffset, driving the source pointer past the end of the response buffer. The resulting memcpy() either copies adjacent kernel heap memory into the caller's read buffer (information disclosure) or reads unmapped memory and oopses (denial of service). SMB1 is not negotiated by default, so exploitation requires an explicit vers=1.0 mount.
Critical Impact
A hostile SMB1 server can trigger kernel heap information disclosure or a kernel oops on any Linux client that mounts it with vers=1.0.
Affected Products
- Linux kernel SMB client (fs/smb/client) with SMB1 (CIFS) support
- Systems performing CIFS mounts using the legacy vers=1.0 option
- Downstream distributions shipping the affected kernel versions prior to the stable patches
Discovery Timeline
- 2026-09-25 - CVE-2026-97563 published to the National Vulnerability Database
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97563
Vulnerability Analysis
The vulnerability resides in the SMB1 synchronous read helper CIFSSMBRead() in the Linux kernel's CIFS client. The function receives an SMB response (pSMBr) containing read data at an offset indicated by the DataOffset field. It then constructs the copy source as &pSMBr->hdr.Protocol + le16_to_cpu(pSMBr->DataOffset) and invokes memcpy() for DataLength bytes.
While DataLength is bounded against CIFSMaxBufSize and the caller's requested count, DataOffset is accepted without any check that the [DataOffset, DataOffset + DataLength) range lies within the actual response received from the server. A server returning an attacker-chosen DataOffset moves the source pointer beyond the response buffer. The subsequent memcpy() then either exfiltrates adjacent kernel heap bytes into userspace through the caller's read buffer or faults on unmapped memory, producing a kernel oops.
Root Cause
The root cause is missing input validation [CWE-125, Out-of-Bounds Read] on an untrusted protocol field. Both DataOffset and the recorded response length (rsp_iov.iov_len) are relative to the start of the SMB header, but the code assumes DataOffset lies within the received response without arithmetic checks. The fix adds overflow-safe validation that DataOffset + DataLength fits within the response length before the source pointer is formed.
Attack Vector
Exploitation requires the Linux client to mount a share from an attacker-controlled or compromised SMB1 server using the explicit vers=1.0 option. Modern distributions default to SMB2 or later, so default configurations are not reachable. On vulnerable mounts, any read operation that reaches CIFSSMBRead() with a maliciously crafted response triggers the out-of-bounds read, enabling kernel memory disclosure to the reading process or a system oops.
No verified exploit code is published. See the upstream fix commits for implementation details: kernel commit 5be5bdda and kernel commit 667feba1.
Detection Methods for CVE-2026-97563
Indicators of Compromise
- Kernel oops or panic messages referencing CIFSSMBRead, cifs, or smb modules following a CIFS mount.
- dmesg entries from the affected function with the newly added __func__ prefix indicating a rejected malformed response.
- Unexpected CIFS mount failures or disconnects immediately after a read operation against an untrusted server.
Detection Strategies
- Inventory Linux hosts with mount.cifs usage and flag any fstab or automount entries containing vers=1.0 or vers=1.
- Correlate kernel ring buffer messages from cifs_dbg() with network connections to untrusted SMB servers.
- Monitor outbound TCP/445 connections from Linux systems to destinations outside sanctioned file-server inventory.
Monitoring Recommendations
- Forward kernel logs (/var/log/kern.log, journalctl -k) to a centralized logging platform and alert on cifs/smb oops signatures.
- Track process-level mount and mount.cifs invocations and alert on vers=1.0 arguments.
- Baseline SMB client traffic and alert on connections to new or non-corporate SMB endpoints.
How to Mitigate CVE-2026-97563
Immediate Actions Required
- Apply the stable kernel updates containing the upstream fix commits as soon as distribution packages become available.
- Audit all Linux systems for CIFS mounts using vers=1.0 and migrate them to SMB2.1 or later where the server supports it.
- Restrict outbound SMB connectivity from Linux hosts to a known allow-list of trusted file servers.
Patch Information
The vulnerability is resolved upstream by two commits: kernel commit 5be5bdda and kernel commit 667feba13e78. The fix adds overflow-safe validation that DataOffset + DataLength fits within rsp_iov.iov_len before the source pointer is formed, converts data_length to unsigned, and adds __func__ to the cifs_dbg() output. Rebuild and reboot into the patched kernel after installation.
Workarounds
- Disable or avoid SMB1 by removing any vers=1.0 option from /etc/fstab, autofs maps, and manual mount.cifs commands.
- Unload the cifs kernel module on hosts that do not require SMB file sharing: modprobe -r cifs.
- Block or firewall TCP/445 egress from Linux systems to untrusted networks until the patched kernel is deployed.
# Identify CIFS mounts and any lingering SMB1 usage
mount -t cifs
grep -R "vers=1" /etc/fstab /etc/auto.* 2>/dev/null
# Prevent the cifs module from auto-loading until patched
echo 'blacklist cifs' | sudo tee /etc/modprobe.d/disable-cifs.conf
sudo update-initramfs -u
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

