CVE-2023-53241

published 15 Sep 2025 · updated 11 May 2026

nfsd: call op_release, even when op_func returns an error

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 15a8b55dbb1ba154d82627547c5761cac884d810, Kernel 3d0dcada384af22dec764c8374a2997870ec86ae, Kernel 65a33135e91e6dd661ecdf1194b9d90c49ae3570 and 2 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.14, >=34b1744c91ccd44811005822106945fa80ecbff2 <15a8b55dbb1ba154d82627547c5761cac884d810, >=34b1744c91ccd44811005822106945fa80ecbff2 <3d0dcada384af22dec764c8374a2997870ec86ae, >=34b1744c91ccd44811005822106945fa80ecbff2 <65a33135e91e6dd661ecdf1194b9d90c49ae3570, >=34b1744c91ccd44811005822106945fa80ecbff2 <b11d8162c24af4a351d21e2c804d25ca493305e3, >=34b1744c91ccd44811005822106945fa80ecbff2 <b623a8e5d38a69a3ef8644acb1030dd7c7bc28b315a8b55dbb1ba154d82627547c5761cac884d810, 3d0dcada384af22dec764c8374a2997870ec86ae, 65a33135e91e6dd661ecdf1194b9d90c49ae3570, b11d8162c24af4a351d21e2c804d25ca493305e3, b623a8e5d38a69a3ef8644acb1030dd7c7bc28b3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-53241 severity on Zeptric[![CVE-2023-53241](https://zeptric.io/badge/cve/CVE-2023-53241.svg)](https://zeptric.io/cve/CVE-2023-53241)