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

CVE-2026-93811: Linux Kernel Memory Leak Vulnerability

CVE-2026-93811 is an information disclosure vulnerability in the Linux kernel ksmbd component that causes memory leaks and improper error handling. This article covers technical details, affected versions, 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-93811 Overview

CVE-2026-93811 is a memory leak and error handling flaw in the Linux kernel's ksmbd in-kernel SMB server. The defect resides in the ACL decoding path, where ndr_decode_v4_ntacl() failure branches fail to release the acl.sd_buf buffer. A secondary issue returns success without freeing the buffer when acl.sd_size is smaller than struct smb_ntsd, leaving a stale *pntsd pointer. The upstream fix zero-initializes struct xattr_ntacl acl, reorders error labels to a unified out_free, and sets rc = -EINVAL before jumping on the invalid-size path.

Critical Impact

Repeated triggering of the vulnerable ACL decode path drains kernel memory and may propagate stale security descriptor data to callers.

Affected Products

  • Linux kernel versions containing the ksmbd SMB server with the pre-patch smb2_get_name_security_info / NTACL decode logic
  • Distributions shipping affected stable kernel branches prior to commits 6e63293, c3836f5, and d708a36
  • Systems exposing ksmbd SMB shares with extended attribute (security.NTACL) processing enabled

Discovery Timeline

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

Technical Details for CVE-2026-93811

Vulnerability Analysis

The vulnerability affects ksmbd, the Linux kernel's native SMB3 server. During retrieval of security information from a file's security.NTACL extended attribute, the kernel allocates acl.sd_buf and then calls ndr_decode_v4_ntacl() to parse the NDR-encoded ACL. When decoding fails, control jumps to a label (free_n_data) that releases only n.data and skips kfree(acl.sd_buf). Each failed decode leaks the previously allocated buffer in kernel memory.

A second defect occurs when the decoded acl.sd_size is smaller than sizeof(struct smb_ntsd). The pre-patch code returned success in this condition, bypassing buffer cleanup and leaving the caller's *pntsd output pointer stale. Callers consuming that pointer operate on uninitialized or previously freed data, mixing a memory leak with an information handling defect.

Root Cause

The root cause is incomplete error-path cleanup combined with incorrect return semantics on an invalid-size branch. The original labels in the ACL handler did not uniformly release acl.sd_buf, and the size validation branch returned success instead of -EINVAL. The fix zero-initializes struct xattr_ntacl acl, consolidates error exits under an out_free label that frees both n.data and acl.sd_buf, and explicitly sets rc = -EINVAL before jumping on the undersized descriptor path.

Attack Vector

Triggering the defect requires reaching the ksmbd ACL decode path, which processes extended attributes on files served over SMB. An authenticated client interacting with shares backed by crafted or corrupted security.NTACL xattrs can repeatedly induce the failure branch to leak kernel memory. The stale *pntsd behavior further risks returning inconsistent ACL state to downstream SMB request handling. No verified proof-of-concept code is published for this CVE; see the upstream commits for the exact code paths.

Detection Methods for CVE-2026-93811

Indicators of Compromise

  • Gradual, unexplained growth of kernel kmalloc slab usage on hosts running ksmbd, visible via /proc/slabinfo or slabtop.
  • Repeated SMB client operations that touch files with malformed security.NTACL extended attributes.
  • ksmbd log entries indicating NDR decode failures on NTACL parsing.

Detection Strategies

  • Compare running kernel versions against the fixed stable commits 6e6329322ad7, c3836f55e0da, and d708a36634bb to identify unpatched hosts.
  • Monitor for anomalous memory consumption attributable to kernel allocations on hosts exposing SMB services.
  • Audit which hosts have the ksmbd module loaded (lsmod | grep ksmbd) and whether they expose shares to untrusted networks.

Monitoring Recommendations

  • Track kernel memory metrics over time (MemAvailable, Slab, SReclaimable) on ksmbd servers and alert on sustained unexplained growth.
  • Collect SMB server logs and correlate client sessions with error patterns indicating repeated ACL decode failures.
  • Monitor for module load events for ksmbd on systems that are not expected to serve SMB.

How to Mitigate CVE-2026-93811

Immediate Actions Required

  • Apply the upstream stable kernel patches referenced by commits 6e6329322ad7, c3836f55e0da, and d708a36634bb.
  • Restrict ksmbd share access to trusted authenticated clients and segmented networks.
  • Unload the ksmbd module on hosts that do not require in-kernel SMB serving.

Patch Information

The fix is available in the Linux stable tree via three commits: Kernel Patch Commit 6e63293, Kernel Patch Commit c3836f5, and Kernel Patch Commit d708a36. Rebuild or install distribution kernels that include these commits, then reboot affected hosts.

Workarounds

  • Disable ksmbd and use an alternative SMB server such as Samba userspace until the kernel can be updated.
  • Block inbound SMB (TCP/445) from untrusted networks at the perimeter and host firewalls.
  • Remove or sanitize files with malformed security.NTACL extended attributes on shared volumes.
bash
# Verify ksmbd module status and unload if not required
lsmod | grep ksmbd
sudo systemctl stop ksmbd.service 2>/dev/null
sudo modprobe -r ksmbd

# Confirm running kernel version against patched stable releases
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

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.