CVE-2025-71150: ksmbd: Fix refcount leak when invalid session is found on session lookup
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: Fix refcount leak when invalid session is found on session lookup
When a session is found but its state is not SMB2_SESSION_VALID, It
indicates that no valid session was found, but it is missing to decrement
the reference count acquired by the session lookup, which results in
a reference count leak. This patch fixes the issue by explicitly calling
ksmbd_user_session_put to release the reference to the session.
Security readout for executives and security teams
Plain-English summary
A flaw in Linux’s in-kernel SMB server, ksmbd, can leak session references when handling an invalid session. Repeated triggering could consume kernel resources and disrupt file-sharing availability. The supplied CVSS score is 7.5, reflecting remotely reachable denial-of-service risk without authentication or user interaction.
Executive priority
Prioritize internet-facing or broadly reachable ksmbd servers for prompt assessment and patching. Systems without ksmbd enabled are unlikely to be exposed. Treat this primarily as a service-availability risk, and require owners to confirm distribution-specific fixes because kernel backports can make version-only conclusions unreliable.
Technical view
During session lookup, ksmbd acquires a reference even when the located session is not SMB2_SESSION_VALID. The affected path fails to call ksmbd_user_session_put, leaking that reference. The published correction releases it explicitly. The documented impact is availability loss; the sources do not claim confidentiality or integrity compromise.
Likely exposure
Exposure is limited to Linux systems using ksmbd, particularly where SMB is reachable from untrusted networks. A Linux host is not exposed merely because it runs Linux. The bundle lists affected releases and commit identifiers, but administrators should confirm applicability through their distribution’s kernel advisory and backport status.
Exploitation context
The supplied record is not in CISA KEV, and the source bundle provides no evidence of active exploitation or a public exploit. Network reachability, low complexity, and no required privileges increase theoretical abuse potential, but practical triggering details and observed exploitation remain unconfirmed.
Researcher notes
The vulnerable condition is an omitted reference release after lookup returns a session whose state is invalid. The correction adds ksmbd_user_session_put on that path. No CWE is supplied. The bundle supports denial of service through resource leakage, but does not establish triggering frequency, exhaustion thresholds, crash behavior, or exploitation in the wild.
Mitigation direction
Install a distribution kernel update containing the referenced stable ksmbd correction.
Confirm backport status with the Linux distribution rather than relying solely on version numbers.
Disable ksmbd where kernel-hosted SMB service is unnecessary.
Restrict SMB access to trusted networks until patched.
Monitor vendor guidance for revised affected-version information.
Validation and detection
Determine whether ksmbd is enabled or loaded on each Linux system.
Identify whether SMB service is reachable from untrusted network segments.
Record exact kernel versions, distribution revisions, and backported patch status.
Verify the installed kernel includes the referenced session-reference correction.
Review telemetry for unexplained ksmbd resource growth or service disruption.
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-71150 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
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.