CVE-2023-53241 nfsd: call op_release, even when op_func returns an error
A memory leak in the Linux kernel NFS server can lead to denial of service when errors occur during layoutget operations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-53241?
CVE-2023-53241 is a medium-severity memory corruption vulnerability in Linux kernel, published on 15 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
nfsd: call op_release, even when op_func returns an error
For ops with "trivial" replies, nfsd4_encode_operation will shortcut most of the encoding work and skip to just marshalling up the status. One of the things it skips is calling op_release. This could cause a memory leak in the layoutget codepath if there is an error at an inopportune time.
Have the compound processing engine always call op_release, even when op_func sets an error in op->status. With this change, we also need nfsd4_block_get_device_info_scsi to set the gd_device pointer to NULL on error to avoid a double free.
Weakness: CWE-401
Which versions are affected by CVE-2023-53241?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53241?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-53241 being exploited?
There is no known exploitation of CVE-2023-53241 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53241, DEBIAN-CVE-2023-53241, GHSA-8mj9-585g-24hv, UBUNTU-CVE-2023-53241.