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

CVE-2026-98114: Linux Kernel ksmbd Privilege Escalation

CVE-2026-98114 is a privilege escalation vulnerability in the Linux kernel ksmbd component affecting DACL parsing. Malformed security descriptors could allow unauthorized privilege elevation. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

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

CVE-2026-98114 affects the ksmbd in-kernel SMB server component of the Linux kernel. The flaw resides in the parse_dacl() function, which silently accepts truncated Access Control Entries (ACEs) and memory allocation failures. As a result, set_info_sec() can continue processing with an incomplete Access Control List (ACL) conversion. The fix propagates parsing and allocation errors back to parse_sec_desc(), ensuring malformed security descriptors are rejected before inode attributes or ACL extended attributes are updated.

Critical Impact

Malformed SMB security descriptors can be partially applied to files, leaving inode attributes or ACL xattrs in an inconsistent state that may weaken access control enforcement.

Affected Products

  • Linux kernel versions containing the vulnerable ksmbd implementation
  • Systems exposing SMB shares via the in-kernel ksmbd server
  • Distributions shipping affected kernels prior to the referenced stable commits

Discovery Timeline

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

Technical Details for CVE-2026-98114

Vulnerability Analysis

The ksmbd kernel module implements an SMB3 server directly in kernel space. When clients submit a SET_INFO request carrying a security descriptor, ksmbd invokes parse_sec_desc(), which calls parse_dacl() to translate the Windows-style Discretionary Access Control List (DACL) into Linux inode permissions and POSIX ACL extended attributes.

The vulnerable parse_dacl() implementation does not return errors when it encounters truncated ACEs or when memory allocation fails during ACE processing. Control returns to set_info_sec() as if parsing succeeded. The caller then commits an incomplete ACL conversion to disk, updating inode attributes or ACL xattr values with partial data derived from a malformed input.

Root Cause

The root cause is missing error propagation in the DACL parsing path. parse_dacl() ignores two distinct failure classes: structurally invalid ACEs that extend beyond the supplied buffer, and allocation failures when building intermediate ACL structures. Both conditions should abort the security descriptor conversion. Instead, the function silently continues, and the caller has no signal that the resulting ACL is incomplete.

Attack Vector

An authenticated SMB client that can issue SET_INFO requests against a share served by ksmbd can submit a crafted security descriptor containing truncated ACEs. The server applies a partial ACL conversion to the target file. Depending on timing and allocation pressure, the resulting permissions may diverge from the client's intended ACL, which can relax enforcement or produce inconsistent inode state. The vulnerability is reachable over the network through the standard SMB protocol surface exposed by ksmbd.

No verified public exploit code is available. See the referenced kernel commit a04dac1 for the authoritative patch and technical details.

Detection Methods for CVE-2026-98114

Indicators of Compromise

  • Unexpected changes to POSIX ACL extended attributes (system.posix_acl_access) on files served through ksmbd.
  • ksmbd kernel log entries referencing security descriptor parsing on files that subsequently show inconsistent permissions.
  • SMB SET_INFO requests from clients that transmit undersized or malformed security descriptor buffers.

Detection Strategies

  • Audit kernel versions on SMB file servers and compare against the fixed stable commits referenced in the advisory.
  • Monitor ksmbd for SMB2/SMB3 SET_INFO operations and correlate with subsequent xattr modifications using the Linux audit subsystem.
  • Baseline file ACLs on exported shares and alert when permissions diverge from expected policy.

Monitoring Recommendations

  • Enable auditd rules for setxattr and chmod syscalls on paths exported via ksmbd.
  • Forward ksmbd kernel messages and audit records to a centralized logging platform for correlation with SMB session metadata.
  • Track SMB authentication events and tie DACL change activity back to specific authenticated users.

How to Mitigate CVE-2026-98114

Immediate Actions Required

  • Inventory Linux hosts running ksmbd and identify kernels missing the referenced stable fixes.
  • Apply the vendor-supplied kernel updates that include the parse_dacl() error-propagation patch.
  • Restrict network access to SMB services (TCP/445) to trusted management networks pending patch deployment.

Patch Information

The fix is available across stable kernel trees in the following commits: kernel commit 37952f0, kernel commit 461f10a, kernel commit a04dac1, and kernel commit c61dc7b. Rebuild and reboot affected hosts after applying the backport provided by your distribution.

Workarounds

  • Unload the ksmbd kernel module (modprobe -r ksmbd) on hosts that do not require it and switch to a userspace SMB server such as Samba.
  • Limit SMB share access to authenticated, trusted principals and avoid granting ACL modification rights to untrusted users.
  • Enforce host-based firewall rules that restrict inbound SMB traffic to known client subnets.
bash
# Verify ksmbd module status and remove it if not required
lsmod | grep ksmbd
sudo modprobe -r ksmbd

# Restrict inbound SMB to a trusted management subnet
sudo nft add rule inet filter input tcp dport 445 ip saddr != 10.0.0.0/24 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.