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-98167 Overview
CVE-2026-98167 is a Linux kernel vulnerability in the SMB client code that mishandles the server->total_read value when processing compound encrypted Protocol Data Units (PDUs). In receive_encrypted_standard(), the field remains set to the full decrypted frame size while the kernel walks each sub-PDU of a compound encrypted frame. This causes cifs_handle_standard() to pass the full frame size to smb2_check_message(), which then validates the entire compound frame instead of the current sub-PDU. The flaw allows truncated non-last sub-PDUs to bypass length validation and triggers out-of-bounds reads in smb2_get_data_area_len().
Critical Impact
A malicious or compromised SMB server can send crafted compound encrypted PDUs that trigger out-of-bounds reads in the Linux kernel SMB client, risking kernel memory disclosure or client-side denial of service.
Affected Products
- Linux kernel SMB client (fs/smb/client)
- Stable kernel branches referenced in the fix commits 282b72f, 8703539, a46eb24, e78fc1d, ebb8a07, and f73726b
- Distributions shipping unpatched Linux kernels with CIFS/SMB client support enabled
Discovery Timeline
- 2026-10-06 - CVE-2026-98167 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98167
Vulnerability Analysis
The vulnerability resides in the SMB2/SMB3 client receive path for encrypted traffic. When the client receives a compound encrypted frame, the kernel decrypts the frame into a single buffer and then iterates through each sub-PDU. The function receive_encrypted_standard() leaves server->total_read set to the length of the entire decrypted frame rather than the length of the current sub-PDU being processed.
Downstream, cifs_handle_standard() forwards server->total_read into smb2_check_message() as the authoritative PDU length. The length guards therefore evaluate the full compound size and never detect that an individual non-last sub-PDU is truncated. This classifies as an Out-of-Bounds Read [CWE-125] rooted in incorrect boundary tracking during protocol parsing.
Root Cause
The root cause is a state-tracking error in compound frame processing. server->total_read is a per-connection cursor that must reflect the current sub-PDU being validated, not the aggregate decrypted payload. Because the field is not reset for each sub-PDU in the compound chain, the length validator cannot catch sub-PDUs whose declared or implied size exceeds the remaining buffer.
Attack Vector
Exploitation requires an SMB server, either malicious or compromised, that the Linux client connects to using encrypted SMB sessions. The server crafts a compound encrypted PDU containing a truncated non-last sub-PDU with length fields that would normally fail validation. When the client processes the frame, smb2_get_data_area_len() reads past the valid buffer, potentially leaking adjacent kernel memory into further processing or crashing the client kernel.
The fix sets server->total_read to the true length of the current sub-PDU: next_cmd for non-last sub-PDUs and the remaining pdu_length for the last one. See the upstream fix commits referenced in Kernel Git Commit #a46eb24 and Kernel Git Commit #f73726b for exact code changes.
Detection Methods for CVE-2026-98167
Indicators of Compromise
- Unexpected kernel oops or panic messages referencing smb2_get_data_area_len, smb2_check_message, or cifs_handle_standard in dmesg or /var/log/kern.log.
- SMB client sessions terminating abnormally shortly after establishing an encrypted connection to an untrusted server.
- Kernel memory read faults in CIFS/SMB code paths captured by KASAN-enabled kernels.
Detection Strategies
- Inventory kernel versions across Linux endpoints and servers and flag hosts running kernels that predate the fix commits listed in the kernel.org references.
- Audit outbound SMB traffic on ports 445/TCP to identify Linux clients connecting to external or untrusted file servers.
- Correlate kernel crash telemetry with recent SMB mount events to surface likely exploitation attempts.
Monitoring Recommendations
- Collect dmesg and journald kernel logs centrally and alert on CIFS or SMB2 stack traces.
- Monitor new SMB mount operations initiated against untrusted hosts, including those initiated by mount.cifs or autofs.
- Track kernel package versions as part of configuration drift reporting to confirm patch adoption.
How to Mitigate CVE-2026-98167
Immediate Actions Required
- Upgrade affected Linux kernels to a version that contains the fix commits referenced below as soon as vendor builds are available.
- Restrict outbound SMB connections from Linux hosts to only trusted file servers using host or network firewalls.
- Unmount and avoid mounting SMB shares hosted on untrusted or internet-exposed servers until patched kernels are deployed.
Patch Information
The fix is distributed across multiple stable kernel branches. Apply vendor-provided kernel updates that incorporate the following upstream commits: Kernel Git Commit #282b72f, Kernel Git Commit #8703539, Kernel Git Commit #a46eb24, Kernel Git Commit #e78fc1d, Kernel Git Commit #ebb8a07, and Kernel Git Commit #f73726b.
Workarounds
- Disable the cifs kernel module on systems that do not require SMB client functionality using modprobe -r cifs and blacklisting the module.
- Enforce egress filtering to block TCP port 445 to untrusted destinations.
- Where SMB access is required, limit connections to internal, authenticated file servers and avoid encrypted sessions terminating at untrusted endpoints until the patch is deployed.
# Blacklist the cifs module on hosts that do not need SMB client support
echo 'blacklist cifs' | sudo tee /etc/modprobe.d/blacklist-cifs.conf
sudo modprobe -r cifs
# Verify current kernel version against patched builds
uname -r
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

