# CVE-2025-21795: NFSD: fix hang in nfsd4\_shutdown\_callback

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.86% (percentile 56, 2026-11-26)
- **Published:** 2025-02-27T02:18:31.538Z
- **Modified:** 2026-11-10T13:17:35.850Z

## 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

## 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

- 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)

## Mitigation

- Upgrade Linux to 5.15.179 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <https://git.kernel.org/stable/c/abed68027ea3ab893ac85cc46a00e2e64a324239>
- patch: <https://git.kernel.org/stable/c/efa8a261c575f816c7e79a87aeb3ef8a0bd6b221>
- patch: <https://git.kernel.org/stable/c/38d345f612503b850c2973e5a879f88e441b34d7>
- patch: <https://git.kernel.org/stable/c/23ad7797c74cd8f7f90617f1e59a8703e2b43908>
- patch: <https://git.kernel.org/stable/c/cedfbb92cf97a6bff3d25633001d9c44442ee854>
- patch: <https://git.kernel.org/stable/c/e88d2451cd42e025465d6b51fd716a47b0b3800d>
- patch: <https://git.kernel.org/stable/c/036ac2778f7b28885814c6fbc07e156ad1624d03>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21795>

HTML: <https://flawdb.com/CVE-2025-21795> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21795>
