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

CVE-2026-97557: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-97557 is a privilege escalation flaw in the Linux kernel SMB client that causes reference count leaks during oplock breaks. This post explains its impact, 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-97557 Overview

CVE-2026-97557 is a reference count leak in the Linux kernel's SMB/CIFS client. The flaw resides in the cifs_queue_oplock_break() function, which unconditionally takes a reference on the target file before queuing a work item. When a second oplock break arrives while the first work item is still queued, queue_work() returns false and the duplicate work is dropped, but the reference count is never released. The leak accumulates against open files and prevents clean unmount of the CIFS file system.

Critical Impact

Reference count leaks against open CIFS files cause subsequent unmount operations to trigger a kernel BUG at fs/super.c:777, producing a denial-of-service condition on affected mounts.

Affected Products

  • Linux kernel SMB client (fs/smb/client)
  • Systems mounting remote shares using the CIFS/SMB protocol
  • Linux distributions shipping vulnerable upstream kernel versions prior to the fix commits

Discovery Timeline

  • 2026-09-25 - CVE-2026-97557 published to the National Vulnerability Database
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97557

Vulnerability Analysis

The vulnerability lives in the CIFS client oplock handling path. An oplock (opportunistic lock) break notification from the SMB server triggers cifs_queue_oplock_break(), which schedules a deferred work item (cifs_oplock_break) to process the break. The function takes a file reference before scheduling the handler, and only the handler releases that reference.

When the server sends overlapping oplock break notifications while the previous work item is still queued but not yet executed, queue_work() returns false. The kernel skips the enqueue because the work is already pending, but the caller has already incremented the file reference count. No corresponding decrement ever occurs, leaving the reference permanently elevated.

Slow-responding or misbehaving SMB servers can repeatedly trigger this condition. The resulting leaked references pin dentries and inodes. When administrators attempt to unmount the share, the VFS layer detects busy inodes and triggers kernel BUG at fs/super.c:777, producing messages such as Dentry ... still in use (1) [unmount of cifs cifs] and VFS: Busy inodes after unmount of cifs.

Root Cause

The root cause is an ordering error between the reference acquisition and the queue_work() return value check. The code unconditionally acquires the reference under the assumption that the work will always be queued, but queue_work() is idempotent and refuses to enqueue duplicate work items. The fix inverts the order: queue_work() is called first, and the reference is only taken when the return value confirms the work was queued. All three callers hold tcon->open_file_lock across the call, and _cifsFileInfo_put() decrements under the same lock, which closes the race window between queueing and reference acquisition.

Attack Vector

The vulnerability is reachable over the network through a malicious or malfunctioning SMB server. An attacker controlling a server to which a Linux client connects can send carefully timed, repeated oplock break notifications. Each duplicate break that arrives while the previous work is still queued leaks one file reference. Over time this exhausts cleanup pathways and renders unmount operations fatal to the kernel.

The vulnerability mechanism is described in detail in the upstream fix commits. See the Kernel Git Commit 2ed2c29 and Kernel Git Commit dfe7b750 for the authoritative patch and commit message.

Detection Methods for CVE-2026-97557

Indicators of Compromise

  • Kernel log entries containing BUG: Dentry ... still in use referencing the CIFS file system
  • VFS: Busy inodes after unmount of cifs (cifs) messages in dmesg or journalctl -k
  • Kernel panic or BUG trace originating from fs/super.c:777 during unmount of a CIFS share
  • Growing counts of open file handles against mounted CIFS shares with no corresponding user activity

Detection Strategies

  • Monitor kernel ring buffer and syslog for the specific CIFS dentry and inode busy warnings tied to unmount attempts
  • Audit the versions of running Linux kernels across the fleet and compare against the fixed commit hashes referenced in the upstream advisory
  • Track outbound SMB sessions to untrusted or recently added servers that could be used to trigger the oplock break race

Monitoring Recommendations

  • Forward kernel logs to a centralized logging platform and alert on cifs BUG strings and fs/super.c panic traces
  • Inspect long-running CIFS mounts for abnormally high reference counts on inodes using /proc/fs/cifs/ debug data where available
  • Baseline normal unmount behavior and alert when umount of a CIFS share fails with EBUSY repeatedly on the same host

How to Mitigate CVE-2026-97557

Immediate Actions Required

  • Identify all Linux hosts that mount SMB/CIFS shares and inventory their kernel versions
  • Apply the vendor-supplied kernel update that includes the upstream fix commits as soon as it is available for your distribution
  • Restrict CIFS client connections to trusted SMB servers until the patched kernel is deployed
  • Schedule reboots on patched systems to activate the fixed kernel

Patch Information

The fix moves the reference acquisition to occur only when queue_work() succeeds. It has been merged upstream across multiple stable branches. The relevant commits are 2ed2c29, 9f2e63f1, af0193bb, and dfe7b750. Consult your Linux distribution vendor for backported kernel packages.

Workarounds

  • Where feasible, replace CIFS mounts with alternative file-sharing protocols that are not affected by this specific code path
  • Avoid mounting shares from SMB servers known to be slow or unstable until the kernel is patched
  • Limit the lifetime of CIFS mounts and schedule planned remounts during maintenance windows to reduce the window for reference leaks to accumulate

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.