CVE-2026-97554

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.

Affected Software

VendorProductVersion RangeStatus
LinuxLinux9934430e2178d5164eb1ac91a9b092f9e7e64745 < c9a8b60ce140a68d172452f418137fc7ddbae7dbaffected
LinuxLinux9934430e2178d5164eb1ac91a9b092f9e7e64745 < da6e25842431982d5a53cf00d925b98c690f4467affected
LinuxLinuxdd80b98bdf0a4b3206739f3513b0518f27a7b4efaffected
LinuxLinuxd8e39c11f66125f49de55537a6efc8ecadf4a0f7affected
LinuxLinux5.8.17 < 5.9affected
LinuxLinux5.9.2 < 5.10affected
LinuxLinux5.10affected
LinuxLinux0 < 5.10unaffected
LinuxLinux7.2.7 <= 7.2.*unaffected
LinuxLinux7.3-rc3 <= *unaffected

Weaknesses

References