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

CVE-2026-97560: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-97560 is a buffer overflow flaw in the Linux kernel SMB client that causes out-of-bounds memory reads when parsing native symlinks. This post explains its technical details, affected versions, and mitigation steps.

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

CVE-2026-97560 is a one-byte out-of-bounds read in the Linux kernel's SMB client code, specifically in the smb2_parse_native_symlink() function. When the client parses a share-root relative native symlink, memcpy copies from smb_target+1 but uses strlen(smb_target)+1 as the length, reading one byte past the allocated buffer. The condition is detected by Kernel Address Sanitizer (KASAN) as a slab-out-of-bounds read when accessing an SMB symlink with a target such as \a\b. The flaw affects systems that mount remote SMB shares using the in-kernel cifs client and process reparse points containing native symlinks.

Critical Impact

A malicious or malformed SMB server response containing a crafted native symlink can trigger a kernel heap out-of-bounds read in the SMB client path.

Affected Products

  • Linux kernel SMB client (fs/smb/client)
  • Systems mounting remote shares with the in-kernel cifs/SMB client
  • Stable kernel branches referenced in the upstream fix commits

Discovery Timeline

  • 2026-09-25 - CVE-2026-97560 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97560

Vulnerability Analysis

The defect lives in smb2_parse_native_symlink() within the Linux SMB client. When the function processes a share-root relative native symlink, it attempts to copy the symlink target into a destination buffer while skipping the leading path separator. The source pointer is advanced by one byte to smb_target+1, but the length passed to memcpy is strlen(smb_target)+1. This arithmetic reads one byte beyond the end of the allocated source buffer.

KASAN flags the condition as a slab-out-of-bounds read of size 5 at a heap address during symlink lookup. The call path originates from vfs_statx() through cifs_lookup(), reparse_info_to_fattr(), and parse_reparse_point(), ending in the vulnerable parser. The read does not corrupt memory, but it can disclose adjacent heap bytes to kernel code paths and may cause kernel panics on hardened builds that abort on KASAN or slab integrity violations.

Root Cause

The root cause is an off-by-one length miscalculation [Out-of-Bounds Read]. The code pairs an advanced source pointer (smb_target+1) with a length computed from the original pointer (strlen(smb_target)+1). The copy therefore extends one byte past the end of the source allocation. The fix adjusts the length to account for the skipped separator so the memcpy stays within bounds.

Attack Vector

Triggering the flaw requires the SMB client to parse a reparse-point symlink whose target begins with a path separator and has a specific length relationship to the source buffer. An attacker-controlled or hostile SMB server returning crafted symlink metadata can cause the client to execute the vulnerable memcpy. The vulnerability is reachable via standard filesystem syscalls, such as stat() or newfstatat(), against a path on a mounted SMB share. No local privileges on the client are required beyond the ability to access the mount.

No public proof-of-concept exploit is listed in the enriched data. The reproducer referenced in the kernel log is a fuzzing harness (netfsfuzz) that walks SMB symlinks. For technical context, see the upstream fix commits: Kernel Git Commit 22a9d0a, Kernel Git Commit 2a302fd, Kernel Git Commit cb26524, and Kernel Git Commit d1f173d.

Detection Methods for CVE-2026-97560

Indicators of Compromise

  • KASAN splat entries in dmesg referencing smb2_parse_native_symlink with slab-out-of-bounds reads.
  • Unexpected kernel oops or warnings originating from parse_reparse_point or reparse_info_to_fattr during SMB directory traversal.
  • Repeated stat() or newfstatat() failures against reparse-point paths on SMB mounts.

Detection Strategies

  • Audit running kernel versions against the fixed stable branches identified in the upstream commits.
  • Enable KASAN on test or canary systems that mount untrusted SMB shares to surface the out-of-bounds read.
  • Correlate kernel ring-buffer messages with SMB mount activity to identify suspicious server responses.

Monitoring Recommendations

  • Forward /var/log/kern.log and dmesg output to a centralized log store and alert on KASAN or oops signatures referencing cifs or smb2_.
  • Track SMB mount sources and flag mounts to servers outside approved file-share infrastructure.
  • Monitor for new or unmanaged SMB mounts on endpoints and servers as part of baseline configuration drift detection.

How to Mitigate CVE-2026-97560

Immediate Actions Required

  • Apply the stable kernel update containing the upstream fix commits referenced below.
  • Restrict mounting of SMB shares to trusted, authenticated servers controlled by the organization.
  • Unmount or disable access to untrusted SMB shares until patched kernels are deployed.

Patch Information

The vulnerability is resolved by upstream kernel commits that correct the memcpy length in smb2_parse_native_symlink(). Apply the stable kernel release that includes one of the following commits: Kernel Git Commit 22a9d0a, Kernel Git Commit 2a302fd, Kernel Git Commit cb26524, or Kernel Git Commit d1f173d. Distribution-provided kernel packages that incorporate these commits should be installed as soon as they become available.

Workarounds

  • Avoid mounting SMB shares from untrusted or internet-exposed servers until the kernel is patched.
  • Where feasible, unload the cifs module (modprobe -r cifs) on hosts that do not require SMB client functionality.
  • Enforce network segmentation to prevent clients from reaching unauthorized SMB endpoints on TCP port 445.
bash
# Configuration example: remove the SMB client module on hosts that do not need it
sudo umount -a -t cifs
sudo modprobe -r cifs
echo 'blacklist cifs' | sudo tee /etc/modprobe.d/disable-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

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.