smb: client: hold server info until cifsd exits
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 54919a8dcd3c2fcaa535597da5290a7a1dece5b3, Kernel 20a2fb9842ca504ce8d877ee04fb850a1af5ef73, Kernel 3c0a424aabe7a312badd9e9d5c530a73901a104c and 4 more.
In the Linux kernel, the following vulnerability has been resolved: smb: client: hold server info until cifsd exits The last session reference can be dropped while the cifsd demultiplex thread is still running clean_demultiplex_info(). That thread frees TCP_Server_Info there, racing with cifs_put_tcp_session() as it releases the server crypto state. syzbot reported a KASAN use-after-free in cifs_crypto_secmech_release(). Keep an object reference for the cifsd thread. Defer final crypto, session-key, network namespace, string, and structure cleanup until both the last session reference and the thread reference are dropped. Drop the thread reference after clean_demultiplex_info() has finished using the server. Build-tested with ARCH=arm64 and W=1 for fs/smb/client/connect.o. The KASAN reproducer was not run on the patched kernel.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=a5c3e1c725af9e84deceb3c33939ca4ffe3fefc8 <54919a8dcd3c2fcaa535597da5290a7a1dece5b3, >=a5c3e1c725af9e84deceb3c33939ca4ffe3fefc8 <20a2fb9842ca504ce8d877ee04fb850a1af5ef73, >=a5c3e1c725af9e84deceb3c33939ca4ffe3fefc8 <3c0a424aabe7a312badd9e9d5c530a73901a104c, >=a5c3e1c725af9e84deceb3c33939ca4ffe3fefc8 <482c117c6dbeee382790168af10959810450ab09, =3.17 | 54919a8dcd3c2fcaa535597da5290a7a1dece5b3, 20a2fb9842ca504ce8d877ee04fb850a1af5ef73, 3c0a424aabe7a312badd9e9d5c530a73901a104c, 482c117c6dbeee382790168af10959810450ab09 |
| linux-kernel: Kernel | >=6.13.0 <6.18.64, >=6.19.0 <7.3.2, >=3.17.0 <6.12.118 | 6.18.64, 7.3.2, 6.12.118 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket