ksmbd: fix null pointer dereference error in generate_encryptionkey
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0626e6641f6b467447c81dd7678a69c66f7746cf · < 9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix null pointer dereference error in generate_encryptionkey
If client send two session setups with krb5 authenticate to ksmbd, null pointer dereference error in generate_encryptionkey could happen. sess->Preauth_HashValue is set to NULL if session is valid. So this patch skip generate encryption key if session is valid.
From the CVE record · Linux
The Linux kernel's ksmbd can dereference a null pointer while generating an encryption key. A network client can trigger this by sending two session setup requests using Kerberos authentication; the input does not specify whether a valid login is required.
Engineers running Linux systems with ksmbd should check whether their kernel includes the fix; affected versions are not specified.