# CVE-2025-21795: NFSD: fix hang in nfsd4_shutdown_callback

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Published: 2025-02-27T02:18:31.538Z
- Modified: 2026-11-10T13:17:35.850Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 67ef9e5fd737eab2495f2586df7e9ea30caa1b77 before abed68027ea3ab893ac85cc46a00e2e64a324239; from 26540b8940a2e21582afa61a6fb8af87310bac72 before efa8a261c575f816c7e79a87aeb3ef8a0bd6b221; from 66af25799940b26efd41ea6e648f75c41a48a2c2 before 38d345f612503b850c2973e5a879f88e441b34d7; from 66af25799940b26efd41ea6e648f75c41a48a2c2 before 23ad7797c74cd8f7f90617f1e59a8703e2b43908; from 66af25799940b26efd41ea6e648f75c41a48a2c2 before cedfbb92cf97a6bff3d25633001d9c44442ee854; from 66af25799940b26efd41ea6e648f75c41a48a2c2 before e88d2451cd42e025465d6b51fd716a47b0b3800d; from 66af25799940b26efd41ea6e648f75c41a48a2c2 before 036ac2778f7b28885814c6fbc07e156ad1624d03; from 5.10.220 before 5.10.235; from 5.15.154 before 5.15.179; 5.19 (not affected: before 5.19; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.129 up to 6.1.*; from 6.6.79 up to 6.6.*; from 6.12.16 up to 6.12.*; from 6.13.4 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 5.10.220 before 5.10.235; from 5.15.154 before 5.15.179; from 5.19 before 6.1.129; from 6.2 before 6.6.79; from 6.7 before 6.12.16; from 6.13 before 6.13.4; 6.14

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

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

## Sources

- CVE List: [CVE-2025-21795](https://www.cve.org/CVERecord?id=CVE-2025-21795), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2025-21795](https://nvd.nist.gov/vuln/detail/CVE-2025-21795), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2025-21795 · Whole record: https://cve.day/CVE-2025-21795.json · Rebuilt by cve.day 2026-11-25T22:58:54.571Z
