CVE-2025-21967: ksmbd: fix use-after-free in ksmbd_free_work_struct
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix use-after-free in ksmbd_free_work_struct
->interim_entry of ksmbd_work could be deleted after oplock is freed.
We don't need to manage it with linked list. The interim request could be
immediately sent whenever a oplock break wait is needed.
Security readout for executives and security teams
Plain-English summary
A memory-safety flaw in Linux's ksmbd SMB server can let an authenticated network user trigger use-after-free behavior. Successful exploitation could affect confidentiality, integrity, and availability. Risk is concentrated in systems running ksmbd and exposing SMB services; systems not using ksmbd are unlikely to be directly exposed.
Executive priority
Treat this as a high-priority patching issue for internet-facing or broadly reachable ksmbd servers. Inventory exposure promptly and apply supported updates during an accelerated maintenance window. Systems without ksmbd enabled can be deprioritized after configuration and runtime validation.
Technical view
CVE-2025-21967 is a CWE-416 use-after-free in ksmbd_free_work_struct. An interim_entry associated with ksmbd_work could be deleted after its oplock was freed. The kernel fix removes unnecessary linked-list management and sends the interim request immediately when waiting for an oplock break. CVSS 3.1 is 8.8: network reachable, low complexity, low privileges, and no user interaction.
Likely exposure
Prioritize Linux hosts where ksmbd is enabled, SMB is reachable, and untrusted or lower-privileged users can authenticate. The source bundle identifies affected Linux versions but does not provide sufficiently clear range notation for reliable package-level conclusions. Distribution backports may also change exposure, so validate against vendor advisories and kernel build provenance.
Exploitation context
The supplied sources do not establish active exploitation, and this CVE is not identified as being in CISA KEV. The CVSS vector indicates an authenticated, network-based attack with low complexity. No conclusion should be drawn about public exploit availability from this bundle.
Researcher notes
The vulnerable lifecycle involves ksmbd_work interim_entry handling during oplock-break waiting. The upstream resolution removes linked-list handling for that interim request. The bundle provides four stable-kernel commits, suggesting branch-specific fixes. Exact vulnerable version boundaries and distribution package mappings remain unclear and require vendor confirmation.
Mitigation direction
Install a vendor-supported kernel update containing the applicable stable fix or backport.
If ksmbd is unnecessary, disable it following distribution guidance.
Restrict SMB access to trusted networks and authenticated users while patching.
Review Linux distribution advisories for exact affected and fixed package versions.
Validation and detection
Determine whether ksmbd is enabled, loaded, or configured to start automatically.
Confirm whether SMB service ports are reachable from untrusted networks.
Record the running kernel and distribution package versions on exposed hosts.
Verify the installed kernel contains the vendor backport or referenced stable fix.
Retest ksmbd availability and required file-sharing functions after remediation.
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.
cwe · low confidence lookup
CWE-416: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
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.
2CVSS vectors
3Timeline events
1ADP providers
5Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
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.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.