CVE-2025-38437: ksmbd: fix potential use-after-free in oplock/lease break ack
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix potential use-after-free in oplock/lease break ack
If ksmbd_iov_pin_rsp return error, use-after-free can happen by
accessing opinfo->state and opinfo_put and ksmbd_fd_put could
called twice.
Security readout for executives and security teams
Plain-English summary
A flaw in Linux’s in-kernel SMB server, ksmbd, can access memory after it has been released when processing an oplock or lease-break acknowledgement error. A network user with limited privileges may be able to crash the system or compromise confidentiality and integrity. The supplied evidence does not establish successful code execution.
Executive priority
Prioritize expedited remediation for internet-facing, broadly reachable, or business-critical ksmbd servers. Treat disabled or unreachable ksmbd systems as lower immediate exposure after verification. Because the maximum stated impacts are high, track remediation to completion even though active exploitation is not established.
Technical view
When ksmbd_iov_pin_rsp returns an error, the affected path may access opinfo->state after release and call opinfo_put and ksmbd_fd_put twice. This creates a potential use-after-free during oplock or lease-break acknowledgement handling. CVSS 3.1 is 8.8: network reachable, low complexity, low privileges, no user interaction, with high impact ratings.
Likely exposure
Exposure is concentrated on Linux systems running an affected kernel with ksmbd enabled and reachable by SMB clients. Systems not using ksmbd are unlikely to expose this path. The bundled version data does not clearly express every distribution-specific fixed boundary, so kernel package status must be confirmed with the applicable vendor.
Exploitation context
The CVE is not identified as being in CISA KEV in the supplied bundle. No supplied source documents active exploitation or a public proof of concept. The CVSS vector indicates a low-privileged network attacker, but practical reliability and outcomes beyond a potential use-after-free are not established here.
Researcher notes
The described defect is an error-path lifetime-management failure involving opinfo state access and duplicate reference releases after ksmbd_iov_pin_rsp fails. The sources support potential use-after-free, but do not establish exploit primitives, reliable remote code execution, affected configuration nuances, or active abuse. Match vendor kernels to the relevant stable commits rather than relying only on release numbers.
Mitigation direction
Install a vendor-supported kernel containing the applicable Linux stable fix.
Disable ksmbd where in-kernel SMB service is unnecessary.
Restrict SMB access to trusted networks and authenticated users while patching.
Check distribution security guidance for package-specific fixed versions.
Validation and detection
Determine whether ksmbd is enabled or loaded on each system.
Identify the running kernel and distribution package version.
Confirm the package includes the applicable referenced stable-kernel fix.
Verify SMB is not exposed beyond explicitly authorized networks.
Review kernel logs for ksmbd crashes or memory-safety warnings.
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-38437 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
1ADP providers
7Source 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.