CVE-2025-21795
NFSD: fix hang in nfsd4_shutdown_callback
Check your servers for CVE-2025-21795
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21795 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.67%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 53.1% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 67ef9e5fd737eab2495f2586df7e9ea30caa1b77, before abed68027ea3ab893ac85cc46a00e2e64a324239 affected from 26540b8940a2e21582afa61a6fb8af87310bac72, before efa8a261c575f816c7e79a87aeb3ef8a0bd6b221 affected from 66af25799940b26efd41ea6e648f75c41a48a2c2, before 38d345f612503b850c2973e5a879f88e441b34d7 affected from 66af25799940b26efd41ea6e648f75c41a48a2c2, before 23ad7797c74cd8f7f90617f1e59a8703e2b43908 affected from 66af25799940b26efd41ea6e648f75c41a48a2c2, before cedfbb92cf97a6bff3d25633001d9c44442ee854 affected from 66af25799940b26efd41ea6e648f75c41a48a2c2, before e88d2451cd42e025465d6b51fd716a47b0b3800d affected from 66af25799940b26efd41ea6e648f75c41a48a2c2, before 036ac2778f7b28885814c6fbc07e156ad1624d03 affected from 5.10.220, before 5.10.235 affected from 5.15.154, before 5.15.179
Other versions: unaffected
|
| Linux |
affected 5.19 unaffected before 5.19 unaffected from 5.10.235 up to and including 5.10.* unaffected from 5.15.179 up to and including 5.15.* unaffected from 6.1.129 up to and including 6.1.* unaffected from 6.6.79 up to and including 6.6.* unaffected from 6.12.16 up to and including 6.12.* unaffected from 6.13.4 up to and including 6.13.* unaffected 6.14 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-21795 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21795
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-21795
trivy image --scanners vuln IMAGE | grep CVE-2025-21795
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/abed68027ea3ab893ac85cc46a00e2e64a324239 git.kernel.org
- https://git.kernel.org/stable/c/efa8a261c575f816c7e79a87aeb3ef8a0bd6b221 git.kernel.org
- https://git.kernel.org/stable/c/38d345f612503b850c2973e5a879f88e441b34d7 git.kernel.org
- https://git.kernel.org/stable/c/23ad7797c74cd8f7f90617f1e59a8703e2b43908 git.kernel.org
- https://git.kernel.org/stable/c/cedfbb92cf97a6bff3d25633001d9c44442ee854 git.kernel.org
- https://git.kernel.org/stable/c/e88d2451cd42e025465d6b51fd716a47b0b3800d git.kernel.org
- https://git.kernel.org/stable/c/036ac2778f7b28885814c6fbc07e156ad1624d03 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2025-21795 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse