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-97555 Overview
CVE-2026-97555 is a heap overflow vulnerability in the Linux kernel's SMB client (cifs) module. The flaw resides in id_mode_to_cifs_acl, which rewrites an existing Discretionary Access Control List (DACL) using a buffer sized from the on-disk DACL length reported by dacl_ptr->size. When replace_sids_and_copy_aces substitutes each Access Control Entry (ACE) with a new owner or group Security Identifier (SID) returned from the cifs.idmap upcall, those SIDs may expand up to SID_MAX_SUB_AUTHORITIES (15) sub-authorities. The rewritten ACEs can then overflow the allocation when original SIDs were shorter than their replacements.
Critical Impact
An attacker able to influence cifs.idmap responses or control SMB share ACL contents can trigger a slab out-of-bounds write in kernel memory, enabling denial of service or privilege escalation on systems mounting SMB shares with cifsacl or mode_from_sid.
Affected Products
- Linux kernel SMB client (fs/smb/client)
- Systems mounting CIFS/SMB shares with the cifsacl mount option
- Systems mounting CIFS/SMB shares with the mode_from_sid mount option
Discovery Timeline
- 2026-09-25 - CVE-2026-97555 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97555
Vulnerability Analysis
The vulnerability is a heap-based buffer overflow [CWE-122] in the Linux kernel CIFS client code path responsible for rewriting DACLs during chown and permission operations. The function id_mode_to_cifs_acl allocates a destination buffer whose size depends on the original DACL length. The subsequent rewrite loop in replace_sids_and_copy_aces emits ACEs that use freshly resolved SIDs, which may be substantially larger than the SIDs in the original DACL.
Each struct smb_ace can reach 76 bytes when the embedded SID carries the maximum 15 sub-authorities. If the on-disk DACL contained short SIDs with only one sub-authority, the destination buffer is undersized. The rewrite then writes past the end of the slab allocation, as confirmed by the KASAN report of a 4-byte write at offset 0 beyond an 884-byte region in build_sec_desc.
Root Cause
The root cause is an allocation sizing bug. The destination buffer was sized to the input DACL length rather than to the worst-case output length. The two code paths handling cifsacl and mode_from_sid mounts used different sizing strategies, but both trigger the same rewrite logic and require identical worst-case headroom.
Attack Vector
An attacker triggers the overflow by inducing an SMB client operation that rewrites a DACL, such as chown or mode changes on a mounted SMB share. The attacker needs control over, or influence on, the SIDs returned by the cifs.idmap userspace helper, or over the ACL stored on the server. User interaction is required because a local user action initiates the rewrite path. The resulting slab-out-of-bounds write corrupts adjacent kernel heap objects.
No verified public exploit code is available. See the upstream fix commits for technical details: Linux Kernel Commit 0ee1507, Linux Kernel Commit 2a9aee9, Linux Kernel Commit 7fa84c9, and Linux Kernel Commit fb736ab.
Detection Methods for CVE-2026-97555
Indicators of Compromise
- KASAN kernel log entries reporting slab-out-of-bounds in build_sec_desc within the cifs module.
- Unexpected kernel oops or panic traces originating from id_mode_to_cifs_acl or replace_sids_and_copy_aces.
- Slab corruption warnings adjacent to CIFS workloads performing chown or permission changes on SMB mounts.
Detection Strategies
- Enable KASAN on test and staging kernels to surface out-of-bounds writes in the CIFS code path during ACL operations.
- Audit SMB mount options across the fleet and flag mounts using cifsacl or mode_from_sid on unpatched kernels.
- Monitor the cifs.idmap upcall configuration and correlate with chown activity on SMB-mounted paths.
Monitoring Recommendations
- Centralize kernel logs and alert on BUG: KASAN, general protection fault, or Oops strings referencing cifs.
- Track kernel package versions and flag hosts running kernel builds that predate the fix commits.
- Collect auditd events for chown, chmod, and setxattr operations targeting SMB mount points.
How to Mitigate CVE-2026-97555
Immediate Actions Required
- Apply the upstream kernel patches referenced below and reboot affected hosts.
- Inventory all systems with the cifs module loaded and mounting SMB shares with ACL translation options.
- Restrict access to the cifs.idmap keyring and ensure only trusted identity sources resolve SIDs.
Patch Information
The fix allocates sizeof(struct smb_acl) plus num_aces * sizeof(struct smb_ace), budgeting for every ACE at maximum SID size regardless of the original DACL length. Both the cifsacl and mode_from_sid paths now use this worst-case sizing. The fix is distributed across the following stable commits: Linux Kernel Commit 0ee1507, Linux Kernel Commit 2a9aee9, Linux Kernel Commit 7fa84c9, and Linux Kernel Commit fb736ab.
Workarounds
- Remount affected SMB shares without the cifsacl and mode_from_sid options until patches are applied.
- Disable or tightly control the cifs.idmap upcall helper to prevent attacker-controlled SID expansion.
- Limit chown and permission modification operations on SMB mounts to trusted administrative users.
# Example: remount an SMB share without ACL translation options
umount /mnt/share
mount -t cifs //server/share /mnt/share \
-o username=user,password=pass,vers=3.1.1
# Verify no cifsacl or mode_from_sid options are active
mount | grep cifs
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

