smb: client: avoid using uninitialized SIDs in cifs_posix_to_fattr()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel da6e25842431982d5a53cf00d925b98c690f4467, Kernel 5.9, Kernel 5.10 and 10 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=9934430e2178d5164eb1ac91a9b092f9e7e64745 <da6e25842431982d5a53cf00d925b98c690f4467, >=5.8.17 <5.9, >=5.9.2 <5.10, >=9934430e2178d5164eb1ac91a9b092f9e7e64745 <1915b69e36906968e2b698699d0f219875ae846e, >=9934430e2178d5164eb1ac91a9b092f9e7e64745 <2be31f252ade791b84f7164991f14436aed1d4b9, >=9934430e2178d5164eb1ac91a9b092f9e7e64745 <33106019c3be57b5fc6411cfaad6d98214a51265, >=9934430e2178d5164eb1ac91a9b092f9e7e64745 <604feb3e8141bf11f5afd48d36d401fee5af9536, >=9934430e2178d5164eb1ac91a9b092f9e7e64745 <c9a8b60ce140a68d172452f418137fc7ddbae7db, =5.10, =d8e39c11f66125f49de55537a6efc8ecadf4a0f7, =dd80b98bdf0a4b3206739f3513b0518f27a7b4ef | da6e25842431982d5a53cf00d925b98c690f4467, 5.9, 5.10, 1915b69e36906968e2b698699d0f219875ae846e, 2be31f252ade791b84f7164991f14436aed1d4b9, 33106019c3be57b5fc6411cfaad6d98214a51265, 604feb3e8141bf11f5afd48d36d401fee5af9536, c9a8b60ce140a68d172452f418137fc7ddbae7db |
| linux-kernel: Kernel | >=5.8.17 <5.9, >=5.9.2 <5.10, >=6.13.0 <6.18.57, >=6.19.0 <7.2.7, >=6.2.0 <6.6.160, >=6.7.0 <6.12.114, >=5.10.0 <6.1.191 | 5.9, 5.10, 6.18.57, 7.2.7, 6.6.160, 6.12.114, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket