Linux kernel: nfsd: clean up potential nfsd_file refcount leaks in COPY codepath
Overview
In the Linux kernel, the following vulnerability has been resolved: nfsd: clean up potential nfsd_file refcount leaks in COPY codepath There are two different flavors of the nfsd4_copy struct. One is embedded in the compound and is used directly in synchronous copies. The other is dynamically allocated, refcounted and tracked in the client struture. For the embedded one, the cleanup just involves releasing any nfsd_files held on its behalf. For the async one, the cleanup is a bit more involved, and we need to dequeue it from lists, unhash it, etc. There is at least one potential refcount leak in this code now. If the kthread_create call fails, then both the src and dst nfsd_files in the original nfsd4_copy object are leaked. The cleanup in this codepath is also sort of weird. In the async copy case, we'll have up to four nfsd_file references (src and dst for both flavors of copy structure). They are both put at the end of nfsd4_do_async_copy, even though the ones held on behalf of the embedded one outlive that structure. Change it so that we always clean up the nfsd_file refs held by the embedded copy structure before nfsd4_copy returns. Rework cleanup_async_copy to handle both inter and intra copies. Eliminate nfsd4_cleanup_intra_ssc since it now becomes a no-op.
- Published
- 10/4/2025
- Last modified
- 10/15/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
linux kernel linux | ≥ 4.20, < 5.10.220 | Verify advisory | Source |
linux kernel linux | ≥ 5.11, < 5.15.154 | Verify advisory | Source |
linux kernel linux | ≥ 5.16, < 6.1.16 | Verify advisory | Source |
linux kernel linux | ≥ 6.2, < 6.2.3 | Verify advisory | Source |
Linux Linux | ≥ e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < fd63299db8090307eae66f2aef17c8f00aafa0a9 | Verify advisory | Source |
Linux Linux | ≥ e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < b3169b6ffe036b549c296a9e71591d29a1fb3209 | Verify advisory | Source |
Linux Linux | ≥ e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < 75b8c681c563ef7e85da6862354efc18d2a08b1b | Verify advisory | Source |
Linux Linux | ≥ e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < 8f565846fbe8182961498d4cbe618b15076a683b | Verify advisory | Source |
Linux Linux | ≥ e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < 6ba434cb1a8d403ea9aad1b667c3ea3ad8b3191f | Verify advisory | Source |
Linux Linux | 4.20 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 7.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.