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-97554 Overview
CVE-2026-97554 is a Linux kernel vulnerability in the SMB client code path responsible for parsing POSIX directory entries returned by SMB servers. The function cifs_posix_to_fattr() ignored the return value of posix_info_parse(), allowing uninitialized stack memory to flow into downstream SID-to-ID mapping logic. A malicious or malformed SMB server response can trigger the condition and leak kernel stack contents to the userspace idmap daemon. The flaw affects systems that mount SMB shares using the kernel CIFS client. Upstream maintainers resolved the issue in the mainline and stable trees.
Critical Impact
A hostile SMB server can send malformed POSIX directory entries that cause the Linux kernel SMB client to pass uninitialized stack memory into SID construction, leaking kernel memory to userspace.
Affected Products
- Linux kernel SMB/CIFS client (fs/smb/client)
- Systems mounting SMB shares with POSIX extensions enabled
- Distributions tracking stable kernel trees prior to the fix commits
Discovery Timeline
- 2026-09-25 - CVE-2026-97554 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-97554
Vulnerability Analysis
The vulnerability resides in cifs_posix_to_fattr() within the Linux kernel SMB client. The function calls posix_info_parse() to decode a POSIX directory entry received from a remote SMB server. When the server returns a malformed entry, for example one carrying invalid Security Identifier (SID) lengths, posix_info_parse() returns -1 and leaves its parsed output structure untouched.
Because the caller did not check the return value, execution continued using the stack-allocated parsed struct containing indeterminate bytes. The uninitialized parsed.owner and parsed.group fields were then handed to sid_to_id(), which formats a SID string and invokes request_key() to resolve the identity through the userspace idmap daemon. The daemon therefore receives SID strings constructed from kernel stack memory [CWE-908, CWE-457].
Root Cause
The root cause is a missing error check on the return value of posix_info_parse(). The caller assumed success and consumed the parsed structure unconditionally. No initialization of the local parsed variable occurred prior to the parse call, so a parse failure left the SID fields holding whatever data previously occupied that stack region.
Attack Vector
Exploitation requires the victim host to mount an SMB share from a server controlled by the attacker, or to receive crafted responses on an existing SMB session. The attacker returns a POSIX directory listing with malformed SID length fields. The kernel then passes uninitialized memory to the idmap daemon, where the attacker-adjacent userspace component or logs can capture the leaked bytes. The leak enables disclosure of kernel pointers or secrets useful for defeating KASLR and chaining further exploitation.
No verified public exploit code is available. The vulnerability mechanism is documented in the upstream fix commits referenced below.
Detection Methods for CVE-2026-97554
Indicators of Compromise
- Unexpected or malformed SID strings appearing in idmap daemon logs (for example cifs.idmap or winbindd).
- SMB client kernel messages referencing failed POSIX parse operations on directory enumeration.
- Mounted CIFS shares pointing to untrusted or newly introduced SMB endpoints.
Detection Strategies
- Inventory running kernels and compare against the fixed versions referenced in the stable commits c9a8b60 and da6e258.
- Audit /proc/mounts for CIFS mounts and correlate remote endpoints against approved file server lists.
- Enable kernel memory sanitizers (KMSAN) in test environments to detect uninitialized memory flows during SMB regression testing.
Monitoring Recommendations
- Forward kernel ring buffer and idmap daemon logs to a centralized logging pipeline for anomaly review.
- Alert on new outbound SMB sessions initiated by servers or workstations that do not normally mount remote shares.
- Monitor for repeated request_key() failures tied to CIFS, which may indicate parsing errors triggered by a hostile server.
How to Mitigate CVE-2026-97554
Immediate Actions Required
- Apply the upstream fix by updating to a kernel version containing commits c9a8b60ce140 and da6e25842431.
- Restrict CIFS mounts to trusted SMB servers and block outbound SMB to untrusted networks at the perimeter.
- Unmount SMB shares from untrusted sources until the patched kernel is deployed.
Patch Information
The fix adds a return value check so that cifs_posix_to_fattr() skips the SID-to-ID mapping when posix_info_parse() fails. The remaining fattr fields such as timestamps and mode are populated from the validated info pointer and remain unaffected. Patch details are available in Kernel Git Commit c9a8b60 and Kernel Git Commit da6e258. Rebuild and reboot into the patched kernel to take effect.
Workarounds
- Disable POSIX extensions on CIFS mounts by using mount options that negotiate down to non-POSIX dialects where feasible.
- Restrict which users can perform SMB mounts, limiting exposure to attacker-controlled servers.
- Isolate hosts that must access untrusted SMB endpoints into dedicated network segments with strict egress controls.
# Verify running kernel version against patched builds
uname -r
# Enumerate active CIFS mounts for review
mount -t cifs
# Example: unmount an untrusted SMB share pending patch deployment
umount /mnt/untrusted-share
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

