In the Linux kernel, the following vulnerability has been resolved:[EOL][EOL]ksmbd: fix null pointer dereference error in generate_encryptionkey[EOL][EOL]If client send two session setups with krb5 authenticate to ksmbd,[EOL]null pointer dereference error in generate_encryptionkey could happen.[EOL]sess->Preauth_HashValue is set to NULL if session is valid.[EOL]So this patch skip generate encryption key if session is valid.