LiveActive security incident?Get immediate response
CVE Record

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.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

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.
Prepared
Confidence
high
Sources
8

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.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

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.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H3.93.6Linux

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2025-71150Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux2107ab40629aeabbec369cf34b8cf0f288c3eb1b, 37a0e2b362b3150317fb6e2139de67b1e29ae5ff, 450a844c045ff0895d41b05a1cbe8febd1acfcfd, a39e31e22a535d47b14656a7d6a893c7f6cf758c, b95629435b84b9ecc0c765995204a4d8a913ed52, b95629435b84b9ecc0c765995204a4d8a913ed52, 5.15.176, 6.1.121, 6.6.67, 6.12.6unaffected
LinuxLinux6.13, 0, 5.15.203, 6.1.160, 6.6.120, 6.12.64, 6.18.3, 6.19affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.