CVE-2025-37777: ksmbd: fix use-after-free in __smb2_lease_break_noti()
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.
Security readout for executives and security teams
Plain-English summary
A memory-safety flaw in the Linux kernel’s ksmbd SMB server can occur when an asynchronous lease notification uses transport memory already freed during disconnection. Successful exploitation could compromise confidentiality, integrity, and availability. Risk is concentrated on systems running affected kernels with ksmbd enabled and reachable.
Executive priority
Treat this as a high-priority infrastructure patch for exposed or sensitive ksmbd servers. Promptly establish whether ksmbd is actually enabled; systems using another SMB implementation are not established as affected by this record. Schedule normal accelerated remediation for isolated systems after vendor package validation.
Technical view
The connection object may remain referenced after the ksmbd server thread terminates, while its transport is freed. A later asynchronous __smb2_lease_break_noti() call can reach ksmbd_conn_write() through the stale transport, causing use-after-free. The kernel fix moves transport cleanup into ksmbd_conn_free(). CVSS 3.1 is 8.8: network-accessible, low complexity, low privileges, and no user interaction.
Likely exposure
Likely exposure is limited to Linux systems using the in-kernel ksmbd SMB server on affected kernel branches. Network reachability increases concern. The supplied affected-version data includes ambiguous entries and does not map fixes to distribution packages, so validate exposure against each Linux vendor’s advisory and kernel build.
Exploitation context
The supplied record does not establish active exploitation, and the CVE is not marked as present in CISA KEV. The CVSS vector indicates a network-adjacent attack path requiring low privileges, but the sources provide no verified public exploit status or observed attack campaign.
Researcher notes
The central race concerns differing lifetimes of the referenced connection and its transport during shutdown. Assessment should focus on asynchronous lease-break work after disconnect and whether the running branch contains the cleanup-lifetime change. The bundle provides four stable commits but insufficient branch mapping to declare exact fixed distribution versions.
Mitigation direction
Apply a vendor kernel release containing the referenced stable fix for your supported branch.
Prioritize reachable ksmbd servers and systems serving sensitive or business-critical data.
Until patched, restrict SMB access to trusted networks and authenticated users.
Disable ksmbd where SMB service is unnecessary, following vendor operational guidance.
Validation and detection
Inventory systems where ksmbd is enabled and identify broadly reachable SMB services.
Map running kernel packages to vendor advisories or the referenced stable fixes.
Confirm updated systems rebooted into the remediated kernel.
Review kernel logs for ksmbd faults around disconnect and lease-break activity.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-37777 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
5Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.