# CVE-2026-97554: smb: client: avoid using uninitialized SIDs in cifs_posix_to_fattr()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-09-25T10:21:45.851Z
- Modified: 2026-10-30T13:21:07.387Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9934430e2178d5164eb1ac91a9b092f9e7e64745 before 1915b69e36906968e2b698699d0f219875ae846e; from 9934430e2178d5164eb1ac91a9b092f9e7e64745 before 604feb3e8141bf11f5afd48d36d401fee5af9536; from 9934430e2178d5164eb1ac91a9b092f9e7e64745 before 33106019c3be57b5fc6411cfaad6d98214a51265; from 9934430e2178d5164eb1ac91a9b092f9e7e64745 before 2be31f252ade791b84f7164991f14436aed1d4b9; from 9934430e2178d5164eb1ac91a9b092f9e7e64745 before c9a8b60ce140a68d172452f418137fc7ddbae7db; from 9934430e2178d5164eb1ac91a9b092f9e7e64745 before da6e25842431982d5a53cf00d925b98c690f4467; dd80b98bdf0a4b3206739f3513b0518f27a7b4ef; d8e39c11f66125f49de55537a6efc8ecadf4a0f7; from 5.8.17 before 5.9; from 5.9.2 before 5.10; 5.10 (not affected: before 5.10; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/1915b69e36906968e2b698699d0f219875ae846e>
- <https://git.kernel.org/stable/c/604feb3e8141bf11f5afd48d36d401fee5af9536>
- <https://git.kernel.org/stable/c/33106019c3be57b5fc6411cfaad6d98214a51265>
- <https://git.kernel.org/stable/c/2be31f252ade791b84f7164991f14436aed1d4b9>
- <https://git.kernel.org/stable/c/c9a8b60ce140a68d172452f418137fc7ddbae7db>
- <https://git.kernel.org/stable/c/da6e25842431982d5a53cf00d925b98c690f4467>

## Sources

- CVE List: [CVE-2026-97554](https://www.cve.org/CVERecord?id=CVE-2026-97554), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-97554](https://nvd.nist.gov/vuln/detail/CVE-2026-97554), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-97554 · Whole record: https://cve.day/CVE-2026-97554.json · Rebuilt by cve.day 2026-11-25T22:59:40.955Z
