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

CVE-2026-97559: Linux Kernel DACL Privilege Escalation

CVE-2026-97559 is a privilege escalation flaw in the Linux kernel SMB client that causes DACL size calculation overflow, allowing corruption of access control lists. This article covers technical details, 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-97559 Overview

CVE-2026-97559 is an integer overflow vulnerability in the Linux kernel SMB client code. The flaw resides in replace_sids_and_copy_aces() and set_chmod_dacl(), which accumulate the size of a built Discretionary Access Control List (DACL) using a u16 counter. The accumulator can wrap when the DACL grows beyond 64 KB during Security Identifier (SID) replacement. Once wraparound occurs, the recorded ndacl_ptr->size becomes meaningless, offsets point into arbitrary locations in the Access Control Entry (ACE) array, and a corrupted DACL is transmitted to the server.

Critical Impact

An SMB client operation can produce a corrupted DACL that is sent to a remote server, resulting in incorrect access control enforcement on shared resources.

Affected Products

  • Linux kernel SMB client (fs/smb/client)
  • replace_sids_and_copy_aces() code path
  • set_chmod_dacl() code path

Discovery Timeline

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

Technical Details for CVE-2026-97559

Vulnerability Analysis

The Linux kernel SMB client rewrites DACLs when translating ownership and permissions between POSIX and Windows semantics. During this rewrite, each ACE can grow to sizeof(struct smb_ace) (76 bytes) once its SID is replaced with one carrying SID_MAX_SUB_AUTHORITIES sub-authorities.

validate_dacl() caps num_aces at (dacl_size - sizeof(struct smb_acl)) / 20, which yields 3,276 ACEs for a maximally sized source DACL. The worst case output size is sizeof(struct smb_acl) + 3276 * 76 = 248,984 bytes. This value far exceeds the range of a u16, with wraparound reached at 863 rewritten ACEs.

The allocation itself covers the worst-case expansion, so the condition is not an out-of-bounds write. Instead, the recorded size field wraps and subsequent code paths treat the DACL header as valid despite containing a truncated length. The malformed DACL is then serialized and sent to the SMB server.

Root Cause

The root cause is a numeric truncation and integer overflow defect [CWE-190]. The size accumulator is declared as u16, but the DACL on-wire format and the kernel's own allocation logic permit construction of structures larger than 65,535 bytes before the overflow protection in validate_dacl() applies to the output.

Attack Vector

Triggering the overflow requires an SMB client operation that invokes DACL rewriting against a source DACL containing a sufficient number of ACEs. replace_sids_and_copy_aces() overflows at roughly 863 ACEs. set_chmod_dacl() follows the same pattern and wraps when the source DACL is within approximately 380 bytes of the 64 KB ceiling. The result is a corrupted DACL transmitted to the server, which may lead to incorrect permissions being applied on shared files.

The vulnerability is addressed in the upstream kernel by widening the accumulator to u32 and returning -EOVERFLOW when the computed DACL size exceeds the on-wire limit of 2^16-1 bytes. See the fix commits 2ef532a, d050451, and ee13d68.

Detection Methods for CVE-2026-97559

Indicators of Compromise

  • Unexpected -EOVERFLOW return codes from SMB client file operations after patching.
  • Server-side audit entries showing malformed or truncated DACLs following chmod or ownership change operations against SMB shares.
  • Discrepancies between client-requested and server-recorded permissions on CIFS/SMB mounts.

Detection Strategies

  • Inventory Linux hosts with CIFS/SMB client mounts and compare running kernel versions against the stable branches containing the fix commits.
  • Correlate SMB share permission anomalies with client kernel versions to identify systems producing invalid DACLs.
  • Review kernel audit logs for calls into replace_sids_and_copy_aces() and set_chmod_dacl() on operations against DACLs with large ACE counts.

Monitoring Recommendations

  • Enable SMB server-side auditing of DACL change events and alert on malformed ACL payloads.
  • Monitor file-permission drift on SMB-hosted shares that are modified from Linux clients.
  • Track kernel package versions across the fleet and flag hosts running SMB client code predating the fix commits.

How to Mitigate CVE-2026-97559

Immediate Actions Required

  • Apply the stable kernel update containing fix commits 2ef532a, d050451, and ee13d68 from your distribution.
  • Reboot affected systems after patching to activate the corrected SMB client module.
  • Audit SMB-hosted shares for permission anomalies that may have been introduced before patching.

Patch Information

The upstream fix changes the DACL size accumulator from u16 to u32 and returns -EOVERFLOW when the resulting DACL would exceed the 64 KB on-wire limit. Backports are available in the stable kernel tree via the referenced git commits. Distribution kernels should be updated through standard package channels once the fix lands downstream.

Workarounds

  • Restrict use of Linux SMB clients against shares where source DACLs may contain more than approximately 860 ACEs until patches are deployed.
  • Avoid chmod or ownership operations against SMB-hosted objects with very large existing DACLs on unpatched clients.
  • Where possible, perform ACL modifications directly on the SMB server rather than through a Linux client mount.

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.