LiveActive security incident?Get immediate response
CVE Record

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.

HighCVSS 8.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

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.
Prepared
Confidence
medium
Sources
6

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.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-21967 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
8.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.

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.

ScoreVersionSeverityVectorExploitImpactSource
8.8CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H2.85.9Linux
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9CISA-ADP

Vulnerability scoring details

Base CVSS 3.1 score

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

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
cvssV3_1other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cfunaffected
LinuxLinux5.15, 0, 6.6.84, 6.12.20, 6.13.8, 6.14affected
Weakness

CWE details

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.