In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in __smb2leasebreak_noti() Move tcptransport free to ksmbdconnfree. If ksmbd connection is referenced when ksmbd server thread terminates, It will not be freed, but conn->tcptransport is freed. __smb2leasebreak_noti can be performed asynchronously when the connection is disconnected. __smb2leasebreaknoti calls ksmbdconnwrite, which can cause use-after-free when conn->ksmbdtransport is already freed.