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-15T11:53:57.080941767Z
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

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"