# CVE-2023-53606: nfsd: clean up potential nfsd\_file refcount leaks in COPY codepath

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.53% (percentile 38, 2026-11-26)
- **Published:** 2025-10-04T15:44:15.908Z
- **Modified:** 2026-10-15T22:17:44.067Z

## Who should check

- Anyone running Linux \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< fd63299db8090307eae66f2aef17c8f00aafa0a9; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< b3169b6ffe036b549c296a9e71591d29a1fb3209; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 75b8c681c563ef7e85da6862354efc18d2a08b1b; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 8f565846fbe8182961498d4cbe618b15076a683b; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 6ba434cb1a8d403ea9aad1b667c3ea3ad8b3191f
- Anyone running Linux 4.20

## Description

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.

## Affected and fixed versions

- Linux: \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< fd63299db8090307eae66f2aef17c8f00aafa0a9; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< b3169b6ffe036b549c296a9e71591d29a1fb3209; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 75b8c681c563ef7e85da6862354efc18d2a08b1b; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 8f565846fbe8182961498d4cbe618b15076a683b; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 6ba434cb1a8d403ea9aad1b667c3ea3ad8b3191f (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- Upgrade Linux to 6ba434cb1a8d403ea9aad1b667c3ea3ad8b3191f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53606. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53606.md
Affected: Linux >= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < fd63299db8090307eae66f2aef17c8f00aafa0a9; >= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < b3169b6ffe036b549c296a9e71591d29a1fb3209; >= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < 75b8c681c563ef7e85da6862354efc18d2a08b1b; >= e0639dc5805a9d4faaa2c07…
Fixed in: Linux 75b8c681c563ef7e85da6862354efc18d2a08b1b, Linux 8f565846fbe8182961498d4cbe618b15076a683b, Linux 6ba434cb1a8d403ea9aad1b667c3ea3ad8b3191f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53606 being exploited?

There is no confirmed exploitation: CVE-2023-53606 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53606?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-53606?

Linux \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< fd63299db8090307eae66f2aef17c8f00aafa0a9; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< b3169b6ffe036b549c296a9e71591d29a1fb3209; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 75b8c681c563ef7e85da6862354efc18d2a08b1b; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 8f565846fbe8182961498d4cbe618b15076a683b; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 6ba434cb1a8d403ea9aad1b667c3ea3ad8b3191f; Linux 4.20.

### Is there a fix for CVE-2023-53606?

Yes. Fixed in Linux 75b8c681c563ef7e85da6862354efc18d2a08b1b, Linux 8f565846fbe8182961498d4cbe618b15076a683b, Linux 6ba434cb1a8d403ea9aad1b667c3ea3ad8b3191f. Upgrade Linux to 6ba434cb1a8d403ea9aad1b667c3ea3ad8b3191f or later.

### How do I check if I'm affected by CVE-2023-53606?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/fd63299db8090307eae66f2aef17c8f00aafa0a9>
- patch: <https://git.kernel.org/stable/c/b3169b6ffe036b549c296a9e71591d29a1fb3209>
- patch: <https://git.kernel.org/stable/c/75b8c681c563ef7e85da6862354efc18d2a08b1b>
- patch: <https://git.kernel.org/stable/c/8f565846fbe8182961498d4cbe618b15076a683b>
- patch: <https://git.kernel.org/stable/c/6ba434cb1a8d403ea9aad1b667c3ea3ad8b3191f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53606>

HTML: <https://flawdb.com/CVE-2023-53606> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53606>
