CVE-2025-37777

published 1 May 2025 · updated 5 Aug 2026

ksmbd: fix use-after-free in __smb2_lease_break_noti()

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1aec4d14cf81b7b3e7b69eb1cfa94144eed7138e, Kernel 1da8bd9a10ecd718692732294d15fd801c0eabb5, Kernel 21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de and 1 more.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.15, >=0626e6641f6b467447c81dd7678a69c66f7746cf <1aec4d14cf81b7b3e7b69eb1cfa94144eed7138e, >=0626e6641f6b467447c81dd7678a69c66f7746cf <1da8bd9a10ecd718692732294d15fd801c0eabb5, >=0626e6641f6b467447c81dd7678a69c66f7746cf <21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de, >=0626e6641f6b467447c81dd7678a69c66f7746cf <e59796fc80603bcd8569d4d2e10b213c1918edb41aec4d14cf81b7b3e7b69eb1cfa94144eed7138e, 1da8bd9a10ecd718692732294d15fd801c0eabb5, 21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de, e59796fc80603bcd8569d4d2e10b213c1918edb4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-37777 severity on Zeptric[![CVE-2025-37777](https://zeptric.io/badge/cve/CVE-2025-37777.svg)](https://zeptric.io/cve/CVE-2025-37777)