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-93785 Overview
CVE-2026-93785 is a Linux kernel vulnerability in the Common Internet File System (CIFS) client. The flaw resides in the cifs.idmap key type, which stores its payload length in key->datalen. That field is limited to U16_MAX. Accepting a larger payload truncates the recorded length, causing later consumers to interpret the stored data with inconsistent bounds. The upstream fix rejects oversized preparsed payloads before allocation or copy. This keeps key->datalen consistent with the actual data for both inline and separately allocated idmap payloads.
Critical Impact
Payload length truncation in the CIFS idmap key handler can cause subsequent code paths to read or write using mismatched bounds, leading to kernel memory corruption or information disclosure on systems mounting SMB/CIFS shares.
Affected Products
- Linux kernel CIFS client subsystem
- Distributions shipping affected mainline/stable kernels
- Systems using cifs.idmap upcall for SID-to-UID/GID translation
Discovery Timeline
- 2026-09-24 - CVE-2026-93785 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-93785
Vulnerability Analysis
The cifs.idmap key type is used by the Linux CIFS client to cache mappings between Windows Security Identifiers (SIDs) and POSIX UID/GID values. These mappings are managed through the kernel keyrings subsystem. Each key records its payload size in the key->datalen field.
The datalen field is a 16-bit unsigned value, bounded by U16_MAX (65535). When a preparsed payload larger than this bound is accepted, the stored length silently truncates due to the narrower integer type. Downstream users of the key then operate on a size that no longer reflects the actual buffer contents.
This inconsistency between the real payload size and the recorded length produces an out-of-bounds condition. Depending on how the payload is subsequently parsed, it can enable kernel memory disclosure, buffer over-read, or memory corruption in the CIFS idmap resolution path.
Root Cause
The root cause is missing length validation before payload allocation in the CIFS idmap key preparse handler. The code accepted arbitrarily sized input and stored the size into a 16-bit field without first checking the upper bound. This classifies as a numeric truncation error leading to inconsistent length tracking.
Attack Vector
Triggering the flaw requires the ability to influence cifs.idmap key payloads supplied through userspace keyring upcalls on a system with CIFS mounts. The attack surface is local and gated by the keyring upcall interface used by CIFS. See the upstream fixes for implementation detail: Kernel Git Commit 455488c, Kernel Git Commit 6cfeef2, and Kernel Git Commit 8b12f65.
Detection Methods for CVE-2026-93785
Indicators of Compromise
- Unexpected CIFS or keyring-related oops, panics, or KASAN reports referencing cifs_idmap symbols
- Anomalous cifs.idmap key payloads delivered through request-key upcalls on CIFS clients
- Kernel log entries citing memory faults during SID-to-UID/GID translation
Detection Strategies
- Inventory running kernels against the fixed commits and flag hosts still exposing the vulnerable cifs.idmap preparse path.
- Enable KASAN or related kernel sanitizers in test environments to surface out-of-bounds reads in CIFS idmap handling.
- Audit userspace helpers invoked by request-key for CIFS to detect abnormal payload sizes above 64 KiB.
Monitoring Recommendations
- Forward kernel ring buffer events and auditd keyring records to a central log platform for correlation.
- Alert on new or unexpected invocations of cifs.idmap upcalls on servers that do not routinely access SMB shares.
- Track package versions of the kernel across the fleet and alert when hosts drift from the patched baseline.
How to Mitigate CVE-2026-93785
Immediate Actions Required
- Apply the stable kernel updates that incorporate the upstream commits referenced above.
- Prioritize patching Linux hosts that mount CIFS/SMB shares, especially multi-user systems and file servers.
- Reboot patched systems to activate the fixed kernel image.
Patch Information
The fix validates the preparsed payload size before allocation or copy, ensuring key->datalen remains consistent with the stored data. Vendors have backported the change through the following commits: 455488cd5054bcc59db40fa1cc2c004031a5b2a5, 6cfeef221ac00d63c07f6122f58e6159bde69ca0, and 8b12f65d7caf16d124098cb4895a203367d35b57. Consult your distribution's security tracker for the exact package versions containing the backport.
Workarounds
- Where patching is delayed, unmount CIFS shares and avoid using the cifs.idmap upcall mechanism on exposed systems.
- Restrict local account access on CIFS client hosts to reduce the pool of users who can drive keyring upcalls.
- Disable the cifs kernel module on systems that do not require SMB client functionality.
# Verify running kernel and whether the cifs module is loaded
uname -r
lsmod | grep -E '^cifs'
# If CIFS is not required, prevent the module from loading
echo 'install cifs /bin/true' | sudo tee /etc/modprobe.d/disable-cifs.conf
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

