Skip to main content

Linux Kernel EUVDEUVD-2025-201625

| CVE-2025-40320 CRITICAL
2025-12-08 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Critical
Disputed · 9.8 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Lure client to mount malicious SMB server
  2. Delivery
    Return responses forcing compound retry
  3. Exploit
    Free cfid then trigger replay path
  4. Execution
    statfs reuses stale cfid pointer
  5. Persist
    Refcount underflow use-after-free
  6. Impact
    Kernel memory corruption / DoS

Vulnerability Assessment

Exploitation Conditions

Exploitation requires the target to have an active CIFS/SMB mount (the 'cifs' kernel module in use) to a server the attacker controls or can influence, and the vulnerable smb2_query_info_compound() replay path must be triggered - i.e., the server must induce a compound QUERY_INFO retry after a cached fid (cfid) has been freed, then a client-side statfs/queryfs operation must reach the stale pointer. Limiting factors: hosts with no SMB mounts are unaffected; the client must connect to a malicious/compromised SMB server rather than a trusted file server; and the freed-then-reused window is a race on the replay/cleanup sequence, not a deterministic single-shot condition, which raises real attack complexity well above the AC:L implied by the NVD vector.

Impact

The signals conflict sharply and argue against treating the headline score at face value. NVD assigns CVSS 9.8 (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H), the automatic maximum commonly applied to kernel CVEs, but the code path requires an established SMB/CIFS mount and a server-driven replay to reach the freed pointer - conditions that are neither low-complexity nor purely remote-unauthenticated against a default host. EPSS is 0.03% (7th percentile), it is absent from CISA KEV, and no POC is referenced, all indicating negligible real-world exploitation pressure. The tags label this 'Information Disclosure,' yet the trace and UAF mechanics point primarily to memory corruption and denial of service; whether it yields info disclosure or code execution is unproven. Realistic priority is low-to-moderate: patch as part of normal kernel maintenance, but this is not an emergency. Verify with vendor - the network vector in the CVSS vector reflects the SMB protocol surface, while practical triggering depends on the client being mounted to a malicious or compromised server.

Exploit ScenarioDerived

A victim host mounts an SMB share from an attacker-controlled or compromised server; the attacker's server returns responses that force smb2_query_info_compound() down its replay path after a cached fid has already been freed. When the client subsequently runs a statfs-triggering operation, the stale cfid is dereferenced, causing a refcount underflow and use-after-free that crashes the kernel or corrupts memory. No public exploit is identified, and success depends on winning the replay/cleanup timing.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Jul 30, 2026

Use-after-free in the Linux kernel's CIFS/SMB client (cifs module) affects the smb2_query_info_compound() function, where a cached fid (cfid) freed during a first attempt is not reset to NULL before a replay, so subsequent cleanup dereferences a stale pointer. Reachable through ordinary filesystem operations such as statfs() against an SMB mount, it manifests as a refcount underflow and use-after-free that most plausibly causes kernel memory corruption and denial of service on hosts with CIFS mounts. This is no public exploit identified at time of analysis; EPSS is very low (0.03%, 7th percentile) and it is not in CISA KEV, though a vendor patch and Ubuntu USN are available.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 17:54

RemediationAI

Vendor-released patch: update to a fixed stable kernel - 6.6.117, 6.12.58, 6.17.8, or 6.18 (or the fixed version shipped by your distribution). Ubuntu users should apply the kernel update per USN-8095-1 (https://ubuntu.com/security/notices/USN-8095-1) and reboot, or use livepatch where available. Where immediate patching is not possible, reduce exposure by avoiding CIFS/SMB mounts from untrusted or attacker-reachable servers and by unmounting non-essential SMB shares; the trade-off is loss of remote-share functionality on those hosts. Restricting which servers clients may mount (network segmentation/firewalling outbound SMB to only trusted file servers) limits the ability of a malicious server to drive the replay path, at the cost of tighter network policy. The upstream fix is small (reinitialize cfid to NULL at the replay label) and carried in the commits linked above.

Affected VersionsENISA

Linux patch: 6.6.117
Linux patch: 6.18
Linux patch: 6.12.58
Linux 4f1fffa2376922f3d1d506e49c0fd445b023a28e <b556c278d43f4707a9073ca74d55581b4f279806
Linux 433042a91f9373241307725b52de573933ffedbf <939c4e33005e2a56ea8fcedddf0da92df864bd3b
Linux 4f1fffa2376922f3d1d506e49c0fd445b023a28e <5c76f9961c170552c1d07c830b5e145475151600
Linux patch: 0
Linux 4f1fffa2376922f3d1d506e49c0fd445b023a28e <327f89c21601ebb7889f8c97754b76f08ce95a0c
Linux patch: 6.17.8
Linux 6.8

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the in-kernel SMB3/CIFS client (fs/smb/client, the 'cifs' module) used by Linux to mount remote Windows/Samba shares. smb2_query_info_compound() batches SMB2 QUERY_INFO operations and, on certain server responses, jumps to a 'replay' label to retry the compound request. A cached directory fid (cfid) allocated on the first pass can be freed during that pass; because the local cfid pointer is not reinitialized to NULL before the retry, the error/cleanup path later operates on the already-freed object. This is a classic use-after-free (CWE-416, though the record lists CWE as N/A) driven by a reference-counter underflow on the cfid, as shown by the 'refcount_t: underflow; use-after-free' warning in the trace via smb2_queryfs → cifs_statfs → __do_sys_statfs. The fix reinitializes cfid to NULL under the replay label so stale state is not reused.

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 (Medium–Critical)
Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 5.3 MEDIUM

Requires the client to mount an attacker-controlled SMB server (UI:R) and win a replay/free race (AC:H); primary demonstrated impact is kernel crash/DoS (A:H) with C/I unproven.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 6.3 MEDIUM

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 VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 30, 2026 - 06:37 NVD
9.8 (CRITICAL)
Patch released
Mar 16, 2026 - 15:00 nvd
Patch available
CVE Published
Dec 08, 2025 - 01:16 cve.org
CRITICAL 9.8
CVE Published
Dec 08, 2025 - 01:16 nvd
N/A

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

smb: client: fix potential cfid UAF in smb2_query_info_compound

When smb2_query_info_compound() retries, a previously allocated cfid may have been freed in the first attempt. Because cfid wasn't reset on replay, later cleanup could act on a stale pointer, leading to a potential use-after-free.

Reinitialize cfid to NULL under the replay label.

Example trace (trimmed):

refcount_t: underflow; use-after-free. WARNING: CPU: 1 PID: 11224 at ../lib/refcount.c:28 refcount_warn_saturate+0x9c/0x110 [...] RIP: 0010:refcount_warn_saturate+0x9c/0x110 [...] Call Trace: <TASK> smb2_query_info_compound+0x29c/0x5c0 [cifs f90b72658819bd21c94769b6a652029a07a7172f] ? step_into+0x10d/0x690 ? __legitimize_path+0x28/0x60 smb2_queryfs+0x6a/0xf0 [cifs f90b72658819bd21c94769b6a652029a07a7172f] smb311_queryfs+0x12d/0x140 [cifs f90b72658819bd21c94769b6a652029a07a7172f] ? kmem_cache_alloc+0x18a/0x340 ? getname_flags+0x46/0x1e0 cifs_statfs+0x9f/0x2b0 [cifs f90b72658819bd21c94769b6a652029a07a7172f] statfs_by_dentry+0x67/0x90 vfs_statfs+0x16/0xd0 user_statfs+0x54/0xa0 __do_sys_statfs+0x20/0x50 do_syscall_64+0x58/0x80

Executive ViewAI

Why It Matters

A critical Linux kernel networking vulnerability (CVE-2025-40320, CVSS 9.8) introduces memory corruption and service denial risks to any organization operating Linux file servers or storage infrastructure using SMB/CIFS connectivity, exploitable through routine file system operations performed by users or applications. This threatens data integrity and infrastructure availability, but no public exploitation has been confirmed and vendor patches are available. The threat requires urgent remediation due to the ubiquity of SMB in enterprise environments and the critical nature of the underlying flaw.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Prevalence
Ubiquitous
Linux kernel with in-tree CIFS client deployed across vast Linux fleet
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Image SL-Micro Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.115 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Affected
Container suse/sl-micro/6.0/toolbox:latest Affected

References

Advisories & patches
ADVISORY https://access.redhat.com/errata/RHSA-2026:18134 ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2025-40320 ADVISORY https://ubuntu.com/security/notices/USN-8095-1 ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0278/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0281/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0293/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0315/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20207/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20220/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20228/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20477/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20479/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20498/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20520/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20564/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20772/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20794/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20819/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20845/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20872/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20876/ REF https://git.kernel.org/stable/c/327f89c21601ebb7889f8c97754b76f08ce95a0c REF https://git.kernel.org/stable/c/5c76f9961c170552c1d07c830b5e145475151600 REF https://git.kernel.org/stable/c/939c4e33005e2a56ea8fcedddf0da92df864bd3b REF https://git.kernel.org/stable/c/b556c278d43f4707a9073ca74d55581b4f279806

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy