CVE-2025-40212

CRITICAL

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 vari...

Affects 1 product across 6 vendors.

CVSS 3.19.8
EPSS0.4%
Percentile33th
PatchUnknown
CVSS Vector — Plain English Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
◆ AI Analysis — automated analysis, not human-reviewed

A refcount leak vulnerability was identified in the nfsd_set_fh_dentry() function of the Linux kernel, affecting the NFS daemon's handling of filehandles in the pseudo root filesystem.

BSID: BS-2025-GLOBAL-033643-I • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: MEDIUM

Is this CVE in your environment?

BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.

Check My Environment →
Frequently Asked Questions
What is CVE-2025-40212?
A refcount leak vulnerability was identified in the nfsd_set_fh_dentry() function of the Linux kernel, affecting the NFS daemon's handling of filehandles in the pseudo root filesystem.
What is the CVSS score for CVE-2025-40212?
CVE-2025-40212 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.4%.
Is CVE-2025-40212 actively exploited?
No confirmed active exploitation of CVE-2025-40212 as of 2026-10-24.
How do I remediate CVE-2025-40212?
Priority: MEDIUM.
What systems are affected by CVE-2025-40212?
CVE-2025-40212 affects Client; Kernel; Linux Linux; Lookup; Nfsv4; Protocol.
Vulnerability Details
CVE IDCVE-2025-40212
BSIDBS-2025-GLOBAL-033643-I BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2025-11-24
Last Modified2026-10-18
ICS Relevance0%
SourceNVD
Official Description

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.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

An attacker could potentially exploit this vulnerability to cause a refcount leak, which could lead to memory exhaustion and denial of service. The vulnerability is specific to NFSv4, as NFSv3 does not have access to the pseudo root filesystem.

Exploitation Likelihood: MEDIUM

Affected Products
VendorProductAffected Versions
Client — —
Kernel — —
Linux Linux 6.12
Lookup — —
Nfsv4 — —
Protocol — —
Remediation

No official vendor advisory link on record. See the CVE record →

Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 333 Days
CISA known-exploitedNot in KEV catalog
Public ExploitNot confirmed
PoC CodeNot confirmed
AI Enrichment Record — provenance & audit hash
Model/workspace/models/qwen2.5-coder-32b-instruct-bf16
ConfidenceMEDIUM
Enriched At2026-05-24
SHA-512 Audit Hashafd67fbdaf8f327f9fea25e5835e7551e3f4dc6c0bcaa3abbf9008ebdcb4aa734365b0cc3af3a7d7e85d2eac57b2c835e8ca67bdfba430556bcd3261eff635c7
Related CVEs affecting Client
CVE-1999-0661 10.0 A system is running a version of software that was replaced with a Trojan Hor... CVE-2025-6512 10.0 On a client with a non-admin user, a script can be integrated into a report. ... CVE-2026-41070 10.0 openvpn-auth-oauth2 is a plugin/management interface client for OpenVPN serve... CVE-2025-53624 10.0 The Docusaurus gists plugin adds a page to your Docusaurus instance, displayi... CVE-2026-23693 10.0 ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elemen...
View all Client CVEs →

Critical Severity - Know Your Exposure

A CVSS 9.8 vulnerability in your ICS environment cannot wait. BreachSpider maps critical CVEs to your specific assets and tells you what to fix first.

Create a free account →