Skip to main content
← All vulnerabilities
CVE-2026-97554

smb: client: avoid using uninitialized SIDs in cifs_posix_to_fattr()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.9, 5.10, 6.6.160, 6.12.114, 6.18.57, and 1 more
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: smb: client: avoid using uninitialized SIDs in cifs_posix_to_fattr() cifs_posix_to_fattr() ignores the return value of posix_info_parse(). When a malformed POSIX directory entry is encountered (e.g. invalid SID lengths from an untrusted server), posix_info_parse() returns -1 without populating the 'parsed' struct. The uninitialized stack memory in parsed.owner and parsed.group is then passed to sid_to_id(), which processes the garbage bytes and passes them to request_key() to construct a SID string, potentially leaking kernel stack contents to the userspace idmap daemon. Fix this by checking the return value and skipping the SID-to-id mapping when parsing fails. The remaining fattr fields (timestamps, mode, etc.) are populated directly from the 'info' pointer so they are unaffected.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 9934430e2178d5164eb1ac91a9b092f9e7e64745 · fixed in 604feb3e8141bf11f5afd48d36d401fee5af9536; From 9934430e2178d5164eb1ac91a9b092f9e7e64745 · fixed in 33106019c3be57b5fc6411cfaad6d98214a51265; From 9934430e2178d5164eb1ac91a9b092f9e7e64745 · fixed in 2be31f252ade791b84f7164991f14436aed1d4b9; From 9934430e2178d5164eb1ac91a9b092f9e7e64745 · fixed in c9a8b60ce140a68d172452f418137fc7ddbae7db; From 9934430e2178d5164eb1ac91a9b092f9e7e64745 · fixed in da6e25842431982d5a53cf00d925b98c690f4467; From 5.8.17 · fixed in 5.9; From 5.9.2 · fixed in 5.10

  • Linux Linux

    5.10

  • KernelLinux

    From 5.10.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.2.7

References 5

git.kernel.org