nfsd: fix nfsd_file leak on inter-server COPY setup failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ce0887ac96d35c7105090e166bb0807dc0a0e838 · < 424d5c95108a4809b832cb0a312c61de4aec0078| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nfsd: fix nfsd_file leak on inter-server COPY setup failure
When nfsd4_setup_inter_ssc() fails, nfsd4_copy() returns nfserr_offload_denied directly, bypassing the out: label where release_copy_files() would drop the nf_dst reference taken by nfs4_preprocess_stateid_op(). Each failed inter-server COPY leaks one nfsd_file, pinning file/inode/dentry/vfsmount.
Fix by setting status and jumping to out: instead of returning directly.
From the CVE record · Linux
A failure during inter-server COPY setup in the Linux kernel’s nfsd can leave an nfsd_file reference unreleased, pinning file-system objects. Each such failure leaks another reference. The input does not specify whether an attacker needs authentication or user interaction to trigger the failure.
Engineers running Linux kernels with nfsd should check their deployments; affected versions are not specified.