Linux
ksmbd: fix null pointer dereference in alloc_preauth_hash()
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix null pointer dereference in alloc_preauth_hash() The Client send malformed smb2 negotiate request. ksmbd return error response. Subsequently, the client can send smb2 session setup even thought conn->preauth_info is not allocated. This patch add KSMBD_SESS_NEED_SETUP status of connection to ignore session setup request if smb2 negotiate phase is not complete.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2d3461d6ae74ebdcd4d65128c855198649bcadcd
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < cce57cd8c5dead24127cf2308fdd60fcad2d6ba6
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < b8eb243e670ecf30e91524dd12f7260dac07d335
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780
Fixed in 2d3461d6ae74ebdcd4d65128c855198649bcadcd, cce57cd8c5dead24127cf2308fdd60fcad2d6ba6, ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad, 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d, b8eb243e670ecf30e91524dd12f7260dac07d335, c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780
- 5.15
Fixed in 0, 6.1.191, 6.6.107, 6.12.23, 6.13.11, 6.14.2, 6.15
Mitigation
Upgrade Linux to 2d3461d6ae74ebdcd4d65128c855198649bcadcd or cce57cd8c5dead24127cf2308fdd60fcad2d6ba6 or ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad or 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d or b8eb243e670ecf30e91524dd12f7260dac07d335 or c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.107 or 6.12.23 or 6.13.11 or 6.14.2 or 6.15 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.