CVE-2025-21795
NFSD: fix hang in nfsd4_shutdown_callback
Mitigation
- Upgrade Linux to 5.15.179 or later.
Who should check
- Anyone running Linux >= 67ef9e5fd737eab2495f2586df7e9ea30caa1b77, < abed68027ea3ab893ac85cc46a00e2e64a324239; >= 26540b8940a2e21582afa61a6fb8af87310bac72, < efa8a261c575f816c7e79a87aeb3ef8a0bd6b221; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 38d345f612503b850c2973e5a879f88e441b34d7; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 23ad7797c74cd8f7f90617f1e59a8703e2b43908; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < cedfbb92cf97a6bff3d25633001d9c44442ee854; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < e88d2451cd42e025465d6b51fd716a47b0b3800d; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 036ac2778f7b28885814c6fbc07e156ad1624d03; >= 5.10.220, < 5.10.235; >= 5.15.154, < 5.15.179
- Anyone running Linux 5.19
Vulnerability facts
- Affected
- Linux >= 67ef9e5fd737eab2495f2586df7e9ea30caa1b77, < abed68027ea3ab893ac85cc46a00e2e64a324239; >= 26540b8940a2e21582afa61a6fb8af87310bac72, < efa8a261c575f816c7e79a87aeb3ef8a0bd6b221; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 38d345f612503b850c2973e5a879f88e441b34d7; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 23ad7797c74cd8f7f90617f1e59a8703e2b43908; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < cedfbb92cf97a6bff3d25633001d9c44442ee854; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < e88d2451cd42e025465d6b51fd716a47b0b3800d; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 036ac2778f7b28885814c6fbc07e156ad1624d03; >= 5.10.220, < 5.10.235; >= 5.15.154, < 5.15.179; Linux 5.19
- Fixed in
- Linux 38d345f612503b850c2973e5a879f88e441b34d7, Linux 23ad7797c74cd8f7f90617f1e59a8703e2b43908, Linux 036ac2778f7b28885814c6fbc07e156ad1624d03, Linux 5.10.235, Linux 5.15.179
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.86% chance of exploitation in 30 days (percentile 56, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: NFSD: fix hang in nfsd4_shutdown_callback If nfs4_client is in courtesy state then there is no point to send the callback. This causes nfsd4_shutdown_callback to hang since cl_cb_inflight is not 0. This hang lasts about 15 minutes until TCP notifies NFSD that the connection was dropped. This patch modifies nfsd4_run_cb_work to skip the RPC call if nfs4_client is in courtesy state.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 67ef9e5fd737eab2495f2586df7e9ea30caa1b77, < abed68027ea3ab893ac85cc46a00e2e64a324239; >= 26540b8940a2e21582afa61a6fb8af87310bac72, < efa8a261c575f816c7e79a87aeb3ef8a0bd6b221; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 38d345f612503b850c2973e5a879f88e441b34d7; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 23ad7797c74cd8f7f90617f1e59a8703e2b43908; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < cedfbb92cf97a6bff3d25633001d9c44442ee854; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < e88d2451cd42e025465d6b51fd716a47b0b3800d; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 036ac2778f7b28885814c6fbc07e156ad1624d03; >= 5.10.220, < 5.10.235; >= 5.15.154, < 5.15.179 | — | cvelist |
| Linux | 5.19 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-21795. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21795.md Affected: Linux >= 67ef9e5fd737eab2495f2586df7e9ea30caa1b77, < abed68027ea3ab893ac85cc46a00e2e64a324239; >= 26540b8940a2e21582afa61a6fb8af87310bac72, < efa8a261c575f816c7e79a87aeb3ef8a0bd6b221; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 38d345f612503b850c2973e5a879f88e441b34d7; >= 66af25799940b26efd41ea6… Fixed in: Linux 38d345f612503b850c2973e5a879f88e441b34d7, Linux 23ad7797c74cd8f7f90617f1e59a8703e2b43908, Linux 036ac2778f7b28885814c6fbc07e156ad1624d03, Linux 5.10.235, Linux 5.15.179 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/abed68027ea3ab893ac85cc46a00e2e64a324239
- https://git.kernel.org/stable/c/efa8a261c575f816c7e79a87aeb3ef8a0bd6b221
- https://git.kernel.org/stable/c/38d345f612503b850c2973e5a879f88e441b34d7
- https://git.kernel.org/stable/c/23ad7797c74cd8f7f90617f1e59a8703e2b43908
- https://git.kernel.org/stable/c/cedfbb92cf97a6bff3d25633001d9c44442ee854
- https://git.kernel.org/stable/c/e88d2451cd42e025465d6b51fd716a47b0b3800d
- https://git.kernel.org/stable/c/036ac2778f7b28885814c6fbc07e156ad1624d03
Other
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html
FAQ
Is CVE-2025-21795 being exploited?
There is no confirmed exploitation: CVE-2025-21795 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-21795?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-21795?
Linux >= 67ef9e5fd737eab2495f2586df7e9ea30caa1b77, < abed68027ea3ab893ac85cc46a00e2e64a324239; >= 26540b8940a2e21582afa61a6fb8af87310bac72, < efa8a261c575f816c7e79a87aeb3ef8a0bd6b221; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 38d345f612503b850c2973e5a879f88e441b34d7; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 23ad7797c74cd8f7f90617f1e59a8703e2b43908; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < cedfbb92cf97a6bff3d25633001d9c44442ee854; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < e88d2451cd42e025465d6b51fd716a47b0b3800d; >= 66af25799940b26efd41ea6e648f75c41a48a2c2, < 036ac2778f7b28885814c6fbc07e156ad1624d03; >= 5.10.220, < 5.10.235; >= 5.15.154, < 5.15.179; Linux 5.19.
Is there a fix for CVE-2025-21795?
Yes. Fixed in Linux 38d345f612503b850c2973e5a879f88e441b34d7, Linux 23ad7797c74cd8f7f90617f1e59a8703e2b43908, Linux 036ac2778f7b28885814c6fbc07e156ad1624d03, Linux 5.10.235, Linux 5.15.179. Upgrade Linux to 5.15.179 or later.
How do I check if I'm affected by CVE-2025-21795?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.