🛡️ CVE-2025-40212 on Debian — linux
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.
Distribution advisory
This page covers CVE-2025-40212 as tracked by Debian, for the package linux. The fix is available in version 6.17.9-1; earlier versions remain affected.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
Affected software
DEBIAN-CVE-2025-40212 is recorded against 1 package.
- linux (fixed in 6.17.9-1)
Timeline and source
Published on 24 November 2025 and last revised on 4 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2025-40212 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| linux | — | 6.17.9-1 |
References
Similar Threats
- Unknown CGA-23jx-hhcx-m389
- Unknown CGA-2qp7-6757-fmgc
- Unknown CGA-2rj5-jc55-r267
- Unknown CGA-3m96-cwq8-6xmx
- Unknown CGA-3qj9-973w-fh9g
More DEBIAN CVE 2025 advisories
Browse all of DEBIAN CVE 2025 in the advisory index.
- DEBIAN-CVE-2025-40204
- DEBIAN-CVE-2025-40205
- DEBIAN-CVE-2025-40206
- DEBIAN-CVE-2025-40207
- DEBIAN-CVE-2025-40208
- DEBIAN-CVE-2025-40209
- DEBIAN-CVE-2025-40210
- DEBIAN-CVE-2025-40211
- DEBIAN-CVE-2025-40213
- DEBIAN-CVE-2025-40214
- DEBIAN-CVE-2025-40215
- DEBIAN-CVE-2025-40216
- DEBIAN-CVE-2025-40217
- DEBIAN-CVE-2025-40218
- DEBIAN-CVE-2025-40219
- DEBIAN-CVE-2025-40220
Exploit Protection
Are you running linux?
DEBIAN-CVE-2025-40212 carries CVSS 9.8 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For DEBIAN-CVE-2025-40212 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.