Bug 2348523 (CVE-2025-21795)

Summary: CVE-2025-21795 kernel: NFSD: fix hang in nfsd4_shutdown_callback
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, rhel-process-autobot, vkumar, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel's Network File System daemon (NFSD). When an NFSv4 client enters an inactive courtesy state, the server continues attempting to send callback requests rather than skipping them. This issue causes server callback shutdown routines to stall, allowing a client to trigger a temporary Denial of Service (DoS) by delaying server callback operations until network timeouts expire.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-27 03:01:49 UTC
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.

Comment 1 Mauro Matteo Cascella 2025-02-27 17:05:44 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022610-CVE-2025-21795-785d@gregkh/T

Comment 2 errata-xmlrpc 2025-11-11 08:02:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:20095 https://access.redhat.com/errata/RHSA-2025:20095

Comment 3 errata-xmlrpc 2025-11-11 10:25:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:20518 https://access.redhat.com/errata/RHSA-2025:20518

Comment 4 errata-xmlrpc 2026-01-19 13:14:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:0804 https://access.redhat.com/errata/RHSA-2026:0804