Skip to main content
Vulnerability Database/CVE-2026-98170

CVE-2026-98170: Linux Kernel SMB Client Buffer Overflow

CVE-2026-98170 is a buffer overflow in the Linux kernel SMB client that causes out-of-bounds reads when processing malformed EA lists. This article covers the technical details, affected versions, impact, and mitigation.

Published:

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-98170 Overview

CVE-2026-98170 is an out-of-bounds read vulnerability in the Linux kernel's SMB client code. The flaw resides in the move_smb2_ea_to_cifs() function, which processes Extended Attribute (EA) lists returned by SMB servers. The while (src_size > 0) loop condition fails to verify that the remaining buffer size can hold a complete smb2_ea_info structure. As a result, reads of the ea_name_length and ea_value_length fields can occur beyond the end of the allocated buffer when a malicious or malformed SMB server sends a crafted EA response. The issue has been resolved upstream in the mainline kernel.

Critical Impact

A malicious or compromised SMB server can trigger out-of-bounds reads in the kernel's CIFS client when a user requests extended attributes, potentially leaking kernel memory or causing instability.

Affected Products

  • Linux kernel SMB/CIFS client (fs/smb/client)
  • Systems mounting remote shares via the CIFS/SMB2/SMB3 client
  • Distributions shipping affected stable kernel branches prior to the patched commits

Discovery Timeline

  • 2026-10-06 - CVE-2026-98170 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98170

Vulnerability Analysis

The move_smb2_ea_to_cifs() function iterates over an Extended Attribute list received from an SMB server. The loop advances through consecutive smb2_ea_info structures using the next_entry_offset field embedded in each entry. The original loop guard only checks that src_size > 0, which does not guarantee that enough bytes remain to safely dereference the next structure header. When the remaining buffer is smaller than sizeof(*src), the kernel still reads ea_name_length and ea_value_length from memory past the valid buffer boundary. This is an out-of-bounds read [CWE-125] in a privileged kernel context triggered by attacker-controlled server data.

Root Cause

The root cause is insufficient bounds validation before structure field access. The patch adds a check ensuring src_size >= sizeof(*src) before reading any field of the current entry. It also rejects any next_entry_offset value that is smaller than sizeof(*src) or that would advance the pointer past the end of the available buffer. These checks prevent both short-buffer dereferences and attacker-controlled pointer advancement.

Attack Vector

Exploitation requires a client to perform an extended attribute operation such as getxattr() or listxattr() against an SMB share controlled or influenced by an attacker. The server returns a malformed EA list where entry sizes or offsets violate the expected layout. The CIFS client parses the response in kernel context, triggering the out-of-bounds read. After the fix, userspace receives -EIO for malformed server responses instead of the previous misleading -ENODATA or -ERANGE errors.

// No verified exploit code is published for CVE-2026-98170.
// Refer to the upstream kernel commits linked in References
// for the exact patched logic in move_smb2_ea_to_cifs().

Detection Methods for CVE-2026-98170

Indicators of Compromise

  • Unexpected -EIO return values from getxattr() or listxattr() on CIFS-mounted shares, indicating malformed server EA responses.
  • Kernel log entries referencing cifs or smb2 parsing failures correlated with specific remote servers.
  • Connections from CIFS clients to untrusted or unexpected SMB endpoints on TCP port 445.

Detection Strategies

  • Audit mounted CIFS shares and confirm each remote endpoint is on an approved allowlist.
  • Monitor kernel ring buffer (dmesg) and /var/log/kern.log for SMB client parsing errors or KASAN out-of-bounds read reports on test systems.
  • Correlate xattr-related syscall failures with the source server address to identify suspect servers.

Monitoring Recommendations

  • Alert on new outbound SMB sessions from Linux hosts to IP ranges outside sanctioned file-service subnets.
  • Track kernel version inventory across the fleet to confirm patched builds are deployed.
  • Enable KASAN on representative test kernels to surface residual boundary issues during QA.

How to Mitigate CVE-2026-98170

Immediate Actions Required

  • Apply the upstream kernel patches referenced below and reboot affected hosts into the fixed kernel.
  • Restrict CIFS mounts to trusted, authenticated SMB servers under administrative control.
  • Block outbound SMB (TCP 445) traffic from Linux hosts to untrusted networks at the perimeter firewall.

Patch Information

The fix is distributed across multiple stable kernel branches. Review and apply the appropriate commit for your branch: Patch commit 13efcd37, Patch commit 34a3942e, Patch commit d3546cec, and Patch commit eeb5ef60. Verify your distribution's security advisory for the backported package version.

Workarounds

  • Avoid using getxattr() and listxattr() on CIFS mounts sourced from untrusted servers until the kernel is patched.
  • Unmount CIFS shares from servers you cannot verify as trustworthy.
  • Use network segmentation to ensure Linux clients only reach approved SMB servers.
bash
# Verify current kernel version and confirm patched build is installed
uname -r

# List active CIFS mounts for review
mount -t cifs

# Block outbound SMB to untrusted networks (example iptables rule)
iptables -A OUTPUT -p tcp --dport 445 -d <untrusted_cidr> -j DROP

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.