CVE-2025-37777

Source
https://cve.org/CVERecord?id=CVE-2025-37777
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37777.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-37777
Downstream
Published
2025-05-01T13:07:15.741Z
Modified
2026-05-28T03:55:14.344337210Z
Summary
ksmbd: fix use-after-free in __smb2_lease_break_noti()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37777.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0626e6641f6b467447c81dd7678a69c66f7746cf
Fixed
1da8bd9a10ecd718692732294d15fd801c0eabb5
Fixed
1aec4d14cf81b7b3e7b69eb1cfa94144eed7138e
Fixed
e59796fc80603bcd8569d4d2e10b213c1918edb4
Fixed
21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37777.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
6.6.101
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.26
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.14.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37777.json"