Skip to main content

Linux Kernel CVE-2025-40212

CRITICAL
2025-11-24 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
    Reach nfsd on NFS port
  2. Delivery
    Synthesize pseudo-root filehandle (v2/v3)
  3. Exploit
    Send crafted LOOKUP/access request
  4. Execution
    Trigger extra exp_put reference drop
  5. Persist
    Use-after-free on export struct
  6. Impact
    Crash NFS server (DoS)

Vulnerability Assessment

Exploitation Conditions

Requires that the target host runs the in-kernel NFS server (nfsd) with at least one exported filesystem AND accepts NFSv2 or NFSv3 traffic; the attacker must be able to send RPC/NFS requests to the server (network reachability to port 2049 and mount services). The essential trigger is a client-synthesized, deliberately incorrect filehandle referencing the pseudo-root filesystem - normal NFS clients never send this, so the condition is inherently non-default client behavior rather than a server misconfiguration. Limiting factors: exploitation is impossible if only NFSv4 is served, if nfsd is not running, or if network access to NFS ports is restricted to trusted clients; achieving anything beyond a crash requires reliably weaponizing the use-after-free, which the changelog does not confirm.

Impact

The signals conflict sharply. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H = 9.8) implies trivial unauthenticated remote full compromise, but the kernel changelog explicitly says the bug 'can only be triggered by the client synthesising an incorrect filehandle' and characterizes the outcome as use-after-free and 'possible denial of service' - not confirmed code execution. That points to higher attack complexity (crafting a non-standard pseudo-root filehandle) and a primarily availability impact, so the 9.8 appears inflated relative to the description; treat C:H/I:H as unproven. Corroborating the lower-urgency read, EPSS is only 0.07% (21st percentile), the CVE is not in CISA KEV, no POC is referenced, and the only references are upstream stable-tree fix commits. Net: real but low-priority for most environments - patch on normal kernel cadence, prioritize hosts that run nfsd and are reachable by untrusted NFS clients. Note the tags list 'Denial Of Service' only, reinforcing that DoS, not RCE, is the realistic worst case.

Exploit ScenarioDerived

A malicious or compromised client on the NFS-accessible network mounts nothing legitimately but crafts an NFSv3 request bearing a synthesized filehandle pointing at nfsd's pseudo-root filesystem. Repeatedly sending such requests forces the double reference-drop in nfsd_set_fh_dentry(), corrupting kernel memory and crashing or destabilizing the NFS server (denial of service). No public exploit is identified at time of analysis, and reliable exploitation beyond DoS would require winning a use-after-free race.

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

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

Alert me

AnalysisAIv2 – Jul 30, 2026

Denial of service (and potential use-after-free) in the Linux kernel's NFS server (nfsd) allows a malicious NFSv2/NFSv3 client to trigger a refcount leak in nfsd_set_fh_dentry() by presenting a synthesized pseudo-root filehandle. Because nfsd stores the export in struct svc_fh even after dropping its reference via exp_put(), a later fh_put() drops an extra reference, leading to use-after-free and possible crash of the NFS server. EPSS is low (0.07%, 21st percentile) and there is no public exploit identified at time of analysis; despite the input's 9.8 CVSS, the description limits real impact to DoS reachable only by a client that deliberately forges an invalid filehandle.

Earlier versions of this analysis (1)
v1 Mar 28, 2026 - 19:23

In the Linux kernel, the following vulnerability has been resolved: nfsd: fix refcount leak in nfsd_set_fh_dentry() nfsd exports a "pseudo root filesystem" which is used by NFSv4 to find the various. No vendor patch available.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the stable-tree fix from the three git.kernel.org commits (8a7348a9ed70, b6bc86ce3944, c83d7365cec5) by updating to a distribution kernel that incorporates them, or rebuild from a patched stable branch. Consult your distribution's security tracker for the exact packaged kernel version once available, since the feed did not provide a tagged release number. As a compensating control until patched, restrict which hosts can reach the NFS server: firewall NFS ports (TCP/UDP 2049, plus rpcbind/mountd ports) to only trusted client subnets, and export filesystems only to known clients via /etc/exports host restrictions - trade-off is reduced NFS reachability for legitimate ad-hoc clients. Where NFSv4 is the only required protocol, disabling NFSv2/NFSv3 (e.g., limiting nfsd to vers=4) removes the specific v2/v3 trigger path, at the cost of breaking any remaining v3 clients. If the NFS server is not needed on a given host, unload/disable nfsd entirely.

Affected ProductsAI

The vulnerability affects the Linux kernel's in-kernel NFS server (nfsd) subsystem. Specific fixed/affected version boundaries are not enumerated in the provided feed (no CPE strings were supplied and CVSS/NVD did not include version ranges), but the fix landed in the stable tree via commits referenced at https://git.kernel.org/stable/c/8a7348a9ed70bda1c1f51d3f1815bcbdf9f3b38c, https://git.kernel.org/stable/c/b6bc86ce3944b10b9fc181fc00c1a520a20ed965, and https://git.kernel.org/stable/c/c83d7365cec5eb5ebeeee2a72e29b4ca58a7e4c2. Only systems that actually run the kernel NFS server (nfsd) and export filesystems are exposed; kernels without nfsd loaded/enabled are not affected in practice.

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

nfsd exports a 'pseudo root filesystem' that NFSv4 clients traverse via LOOKUP from a known root filehandle; NFSv2/NFSv3 clients instead use the MOUNT protocol and are not meant to touch the pseudo root. The bug lives in filehandle-to-dentry resolution (nfsd_set_fh_dentry): when a v2/v3 client references the pseudo-root filesystem, the function reports an error and calls exp_put() to release the export reference, but still assigns the export pointer into struct svc_fh. The subsequent fh_put() then decrements the same refcount a second time. This is a classic reference-count mismanagement / use-after-free (CWE-416/CWE-911 class) caused by mutating shared state before all error paths are validated; the fix reorders the svc_fh assignments to occur only after every error case is handled. CWE was not supplied in the feed (CWE: N/A), but the root cause is an over-release of an object reference.

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.9 MEDIUM

Network-reachable NFS with no auth (PR:N), but requires forging a specific pseudo-root filehandle and winning a UAF race (AC:H); realistic impact is server crash only (A:H, C/I:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 7.0 HIGH
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat 5.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

3
Analysis Updated
Jul 30, 2026 - 06:50 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
9.8 (CRITICAL)
CVE Published
Nov 24, 2025 - 13:16 nvd
N/A

DescriptionCVE.org

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

nfsd: fix refcount leak in nfsd_set_fh_dentry()

nfsd exports a "pseudo root filesystem" which is used by NFSv4 to find the various exported filesystems using LOOKUP requests from a known root filehandle. NFSv3 uses the MOUNT protocol to find those exported filesystems and so is not given access to the pseudo root filesystem.

If a v3 (or v2) client uses a filehandle from that filesystem, nfsd_set_fh_dentry() will report an error, but still stores the export in "struct svc_fh" even though it also drops the reference (exp_put()). This means that when fh_put() is called an extra reference will be dropped which can lead to use-after-free and possible denial of service.

Normal NFS usage will not provide a pseudo-root filehandle to a v3 client. This bug can only be triggered by the client synthesising an incorrect filehandle.

To fix this we move the assignments to the svc_fh later, after all possible error cases have been detected.

Executive ViewAI

Why It Matters

A critical vulnerability in Linux NFS file servers (CVE-2025-40212) can allow network attackers to disrupt file sharing services through targeted requests; no public exploit identified at time of analysis suggests this is not currently under active attack. However, no vendor-released patch is available, requiring organizations dependent on NFS file distribution to immediately strengthen network access controls.

Business Impact: High
Compensating Controls

Implement network segmentation to restrict NFS access to authorized client subnets only; configure firewall rules on NFS servers to deny requests from untrusted networks; enable and monitor NFS server logging for abnormal client behavior; maintain automated backups independent of NFS infrastructure to enable rapid recovery if service is compromised; disable NFSv2 protocol if not required for legacy systems and consider NFSv4 with enhanced security options; implement NFS service redundancy and failover capabilities where business-critical.

Threat Intelligence Overview

EPSS Score
0.1%
Top 79% exploitable
Prevalence
High
Linux kernel is ubiquitous but nfsd is enabled mainly on NFS file servers
Data Quality
4 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.1%
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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:latest Affected
Container suse/sl-micro/6.0/kvm-os-container:latest Container suse/sl-micro/6.0/rt-os-container:latest Affected
Container suse/sl-micro/6.0/toolbox:latest Affected
Container suse/sl-micro/6.1/baremetal-os-container:latest Affected

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