Linux ksmbd
CVE-2025-71220
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate SMB2 session to ksmbd
-
DeliverySend SMB2 CREATE for RPC pipe
-
ExploitTrigger ksmbd_iov_pin_rsp failure
-
ExecutionLeak unreleased RPC session handle
-
ImpactExhaust kernel resources (availability impact)
Vulnerability Assessment
| Exploitation Conditions | Requires the optional in-kernel SMB server (ksmbd / CONFIG_SMB_SERVER) to be built, enabled, and exposed - not present in default Linux deployments. The attacker must reach create_smb2_pipe(), which is invoked when an authenticated SMB2 session opens an RPC named pipe, so a valid SMB session is needed (consistent with PR:L). The missing cleanup only occurs when ksmbd_iov_pin_rsp() fails; the available sources do not describe how that failure is triggered or whether it is attacker-controlled, so reliable exploitation is unverified. Limiting factors: non-default feature, required SMB authentication, and an error path that depends on an internal pin failure rather than a directly supplied input. |
| Impact | The real-world risk is low despite the 7.8 'High' CVSS. The input vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) follows the generic pattern auto-assigned to nearly all Linux kernel CVEs and should be treated with suspicion: it claims full C:H/I:H/A:H impact, yet the fix is a one-line addition of ksmbd_session_rpc_close() on an error path in create_smb2_pipe(), which reads as a resource/handle leak rather than code execution or data disclosure. There is also an attack-vector conflict - ksmbd is the in-kernel SMB3 server and the affected function runs when handling SMB2 CREATE requests for RPC pipes over the network, yet the input marks AV:L (local); this discrepancy should be verified against the upstream commit. The exploitation signals all point low: EPSS is 0.03% (9th percentile), the CVE is not in CISA KEV, and no public exploit is identified at time of analysis - only vendor/advisory references exist. The vendor priority label is 'this_week', consistent with a patchable but non-emergency kernel fix. Net: this is a high-CVSS-but-low-real-risk issue gated behind a non-default feature (ksmbd) and an authenticated SMB session, with the triggering error path not shown to be attacker-controlled. |
| Exploit ScenarioDerived | An attacker with valid credentials for an SMB share on a Linux host running the optional in-kernel ksmbd server opens an RPC pipe via an SMB2 CREATE request; if the server's response-buffer pinning (ksmbd_iov_pin_rsp) fails during that operation, the associated RPC session handle is never released, leaking kernel resources that an attacker could repeat to degrade availability. No public exploit is identified at time of analysis, and the condition that causes the pin failure is not described in the available sources. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 05, 2026
Missing cleanup in the Linux kernel's optional ksmbd SMB server leaves an RPC pipe session unreleased when ksmbd_iov_pin_rsp() fails during create_smb2_pipe(), with the authoritative assessment limiting impact to low availability on non-default, authenticated SMB deployments. Only systems that build and expose ksmbd (CONFIG_SMB_SERVER) and allow an authenticated SMB2 session to open an RPC named pipe are in scope; EPSS is 0.03% and no public exploit identified at time of analysis. The authoritative vector is AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L, so the NVD 7.8 High score overstates confidentiality and integrity impact.
Earlier versions of this analysis (1)
In the Linux kernel, the following vulnerability has been resolved:
smb/server: call ksmbd_session_rpc_close() on error path in create_smb2_pipe()
When ksmbd_iov_pin_rsp() fails, we should call ksmbd_session_rpc_close().
RemediationAI
Patch status is vendor patch available, but the input does not provide an exact released kernel version; apply a kernel update containing the referenced stable commits (04dd114b682a4ccaeba2c2bad049c8b50ce740d8, 2b7b4df87fe6f2db6ee45f475de6b37b8b8e5d29, 7c28f8eef5ac5312794d8a52918076dcd787e53b, a2c68e256fb7a4ac34154c6e865a1389acca839f, ac18761b530b5dd40f59af8a25902282e5512854 and fdda836fcee6fdbcccc24e3679097efb583f581f) or install the distribution update described at https://ubuntu.com/security/notices/USN-8278-1. If immediate patching is not possible, disable or unload the ksmbd module and block SMB port 445 at the network boundary; that removes the optional SMB server and breaks SMB file-sharing workflows that depend on it. Restricting SMB access to trusted authenticated users reduces exposure but does not fix the missing cleanup on the ksmbd_iov_pin_rsp() error path.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ksmbd is the in-kernel SMB3 server in the Linux kernel, enabled through CONFIG_SMB_SERVER and absent from default deployments. create_smb2_pipe() is the path used when an authenticated SMB2 client opens an RPC named pipe, and ksmbd_iov_pin_rsp() pins the response buffer for transmission; when that pin operation fails, the error path omits ksmbd_session_rpc_close(), leaving the RPC pipe session/handle without its normal cleanup. The input assigns no CWE, but the pattern is an error-path resource-lifecycle failure rather than a directly attacker-supplied memory corruption. The CPE data identifies linux:linux_kernel with wildcard version fields plus 6.19:rc1, rc2 and rc3; a VulDB tag mentions Information Disclosure, but the authoritative assessment scores C:N/I:N/A:L, so confidentiality and integrity impact are not supported. The sources do not describe how the ksmbd_iov_pin_rsp() failure is triggered or whether it is attacker-controlled, so reliable exploitation is unverified.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
Sources disagree (Low–High)AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
ksmbd serves SMB over the network (AV:N) and needs an authenticated session (PR:L); an unreleased handle on an error path is a resource leak, so A:L and no confidentiality/integrity impact; exact mechanism undescribed.
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
In the Linux kernel, the following vulnerability has been resolved:
smb/server: call ksmbd_session_rpc_close() on error path in create_smb2_pipe()
When ksmbd_iov_pin_rsp() fails, we should call ksmbd_session_rpc_close().
Executive ViewAI
CVE-2025-71220 is a high-severity vulnerability in the Linux kernel's optional ksmbd SMB server that could cause low availability impact on systems running the non-default ksmbd service. Only organizations that have compiled and exposed this optional component are affected, and exploitation requires an authenticated SMB session. Leadership should prioritize patching only if the ksmbd service is in active use, as the real-world risk is limited and no public exploit has been identified.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB