CVE-2025-68246: ksmbd: close accepted socket when per-IP limit rejects connection
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: close accepted socket when per-IP limit rejects connection
When the per-IP connection limit is exceeded in ksmbd_kthread_fn(),
the code sets ret = -EAGAIN and continues the accept loop without
closing the just-accepted socket. That leaks one socket per rejected
attempt from a single IP and enables a trivial remote DoS.
Release client_sk before continuing.
This bug was found with ZeroPath.
Security readout for executives and security teams
Plain-English summary
A remote attacker can repeatedly trigger rejected SMB connections and cause Linux’s ksmbd server to retain sockets instead of releasing them. Continued resource consumption can make the service or system unavailable. The issue affects availability only; the supplied evidence does not indicate data theft or modification.
Executive priority
Prioritize exposed ksmbd servers because unauthenticated remote traffic can impair availability. Patch or isolate internet-reachable systems promptly, then address internally reachable servers according to service criticality. Emergency response is warranted if resource exhaustion or abnormal SMB connection bursts are observed.
Technical view
When ksmbd’s per-IP connection limit is exceeded, ksmbd_kthread_fn() returns to its accept loop with -EAGAIN without releasing the newly accepted client socket. Each rejected attempt therefore leaks a socket. The resolved code releases client_sk before continuing. CVSS 3.1 is 7.5: network-accessible, low complexity, unauthenticated, no user interaction, and high availability impact.
Likely exposure
Exposure is most likely on affected Linux systems where ksmbd is enabled and reachable over a network. Systems not running ksmbd are not implicated by the supplied description. The bundled version data is unusual and insufficient to determine every distribution package’s fixed status; confirm against kernel or distribution advisories.
Exploitation context
The condition is remotely triggerable without privileges or user interaction and is described as enabling a trivial denial of service. However, the bundle marks the CVE as absent from KEV and provides no evidence of active exploitation, public exploit availability, or observed attacks.
Researcher notes
The vulnerable control path combines per-IP limit rejection, ret = -EAGAIN, and continuation of the accept loop without closing client_sk. Impact is cumulative socket leakage and denial of service. The supplied sources identify multiple stable-kernel commits, but do not provide distribution-specific package mappings or evidence of exploitation in the wild.
Mitigation direction
Update to a vendor-supported kernel containing the referenced ksmbd socket-release fix.
Check Linux distribution advisories for the exact corrected package version.
Disable ksmbd where SMB server functionality is unnecessary.
Restrict network access to ksmbd until remediation is confirmed.
Monitor socket and resource exhaustion indicators on exposed systems.
Validation and detection
Inventory Linux hosts and identify whether ksmbd is enabled or loaded.
Determine whether ksmbd is reachable from untrusted networks.
Map installed kernel packages to vendor advisories or referenced stable commits.
Confirm the corrected code releases client_sk on the per-IP rejection path.
Review monitoring data for connection bursts, retained sockets, or resource exhaustion.
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-68246 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
6Source 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.