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

CVE-2026-97564: Linux Kernel CIFS Privilege Escalation

CVE-2026-97564 is a privilege escalation flaw in Linux kernel CIFS client that allows unauthorized users to manipulate key descriptions in root context. This article covers technical details, affected versions, and fixes.

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

CVE-2026-97564 affects the Linux kernel's SMB client, specifically the cifs.idmap key handling in the CIFS (Common Internet File System) subsystem. The cifs.idmap key type lacked a vet_description hook, allowing userspace to create keys of this type through request_key(2) and add_key(2) syscalls. Userspace could supply authority-bearing fields such as owner and group Security Identifiers (SIDs) and uid/gid values in os:/gs:/oi:/gi: form without a legitimate CIFS origin. A request_key(2) call with a non-NULL callout then drove a root usermodehelper upcall that consumed the unvetted description in root context.

Critical Impact

Local userspace can supply attacker-controlled identity mapping data to a root-context upcall helper, potentially enabling privilege escalation or identity spoofing on CIFS mounts.

Affected Products

  • Linux kernel SMB client (CIFS subsystem)
  • Systems using cifs.idmap upcall helper for SID-to-uid/gid translation
  • Kernel versions prior to the commits referenced in the stable tree fixes

Discovery Timeline

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

Technical Details for CVE-2026-97564

Vulnerability Analysis

The cifs.idmap key type is used by the Linux CIFS client to resolve Windows SIDs to POSIX uid/gid values and vice versa. Key descriptions carry authority-bearing fields that the cifs.idmap upcall helper treats as kernel-originating inputs. Unlike its sibling cifs.spnego, the cifs.idmap key type was registered without a vet_description hook. This omission permitted any local process to create keys of this type and populate the description with arbitrary SID and uid/gid data.

When such a key is requested with a non-NULL callout, the kernel invokes /sbin/request-key, which in turn executes the cifs.idmap helper under root credentials. The helper then processes attacker-supplied identity data as if it originated from the kernel's trusted CIFS code path. This creates a confused-deputy condition where unprivileged input is consumed by a privileged helper.

Root Cause

The absence of a vet_description callback on the cifs.idmap key type meant the kernel performed no origin check before accepting key descriptions. The CIFS internal functions id_to_sid() and sid_to_id() already run under override_creds(root_cred), but there was no mechanism to distinguish those legitimate kernel-originated requests from userspace-originated ones.

Attack Vector

A local unprivileged user issues request_key(2) or add_key(2) with the cifs.idmap key type and a crafted description containing os:, gs:, oi:, or gi: fields. The subsequent root-context upcall processes those fields, enabling identity spoofing within CIFS operations. The fix restricts acceptance of cifs.idmap descriptions to requests made while CIFS is using its private root_cred for key lookup. This mirrors commit 3da1fdf4efbc which applied the same restriction to cifs.spnego.

See the upstream fixes: Kernel Git Commit 1d3b24b, Kernel Git Commit 9675102, Kernel Git Commit d9d7eeb, and Kernel Git Commit e596406.

Detection Methods for CVE-2026-97564

Indicators of Compromise

  • Unexpected invocations of /sbin/request-key spawning the cifs.idmap helper when no CIFS mount activity is occurring.
  • Audit records showing add_key or request_key syscalls from non-root processes using the cifs.idmap key type.
  • cifs.idmap key descriptions in /proc/keys containing os:/gs:/oi:/gi: fields outside of active CIFS session lookups.

Detection Strategies

  • Enable Linux audit rules (auditctl) to monitor add_key and request_key syscalls with filtering on the key type string.
  • Correlate request-key process launches with the parent context to identify upcalls initiated outside CIFS mount or stat workflows.
  • Review kernel logs for anomalous CIFS identity resolution patterns during periods lacking SMB share activity.

Monitoring Recommendations

  • Baseline normal cifs.idmap upcall frequency per host and alert on deviations.
  • Track installed kernel versions across the fleet and flag hosts running kernels without the referenced stable commits.
  • Instrument endpoint telemetry to capture command-line arguments passed to /sbin/request-key and the cifs.idmap helper.

How to Mitigate CVE-2026-97564

Immediate Actions Required

  • Update the Linux kernel to a version containing the fix commits (1d3b24b, 9675102, d9d7eeb, e596406) from the stable tree.
  • Inventory systems with the cifs kernel module loaded and prioritize patching hosts that mount SMB shares.
  • Restrict local shell access on multi-tenant systems until kernels are updated.

Patch Information

The fix changes the cifs.idmap key type to accept descriptions only when CIFS is operating under its private root_cred. Kernel-originated paths through id_to_sid() and sid_to_id() continue to function because they already use override_creds(root_cred). Apply the vendor-supplied kernel update from your distribution. The upstream patches are available at the kernel.org stable tree commits linked in the technical references.

Workarounds

  • Unload the cifs kernel module on systems that do not require SMB client functionality using modprobe -r cifs.
  • Blacklist the cifs module via /etc/modprobe.d/ on hosts that have no business need for CIFS mounts.
  • Where feasible, restrict access to the request_key(2) and add_key(2) syscalls via seccomp profiles for untrusted workloads.
bash
# Prevent the cifs module from loading until the kernel is patched
echo "blacklist cifs" | sudo tee /etc/modprobe.d/blacklist-cifs.conf
sudo modprobe -r cifs 2>/dev/null || true

# Verify the module is not loaded
lsmod | grep -i 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

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.