CVE-2026-97554

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

State
Published
Severity
Not scored
Published
Sep 25, 2026
Updated
Oct 30, 2026
Reserved
Sep 24, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9934430e2178d5164eb1ac91a9b092f9e7e64745 to before 1915b69e36906968e2b698699d0f219875ae846eAffected
  • 9934430e2178d5164eb1ac91a9b092f9e7e64745 to before 604feb3e8141bf11f5afd48d36d401fee5af9536Affected
  • 9934430e2178d5164eb1ac91a9b092f9e7e64745 to before 33106019c3be57b5fc6411cfaad6d98214a51265Affected
  • 9934430e2178d5164eb1ac91a9b092f9e7e64745 to before 2be31f252ade791b84f7164991f14436aed1d4b9Affected
  • 9934430e2178d5164eb1ac91a9b092f9e7e64745 to before c9a8b60ce140a68d172452f418137fc7ddbae7dbAffected
  • 9934430e2178d5164eb1ac91a9b092f9e7e64745 to before da6e25842431982d5a53cf00d925b98c690f4467Affected
  • dd80b98bdf0a4b3206739f3513b0518f27a7b4efAffected
  • d8e39c11f66125f49de55537a6efc8ecadf4a0f7Affected
  • 5.8.17 to before 5.9Affected
  • 5.9.2 to before 5.10Affected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.114 through 6.12.*Not affected
  • 6.18.57 through 6.18.*Not affected
  • 7.2.7 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.