{"id":"CVE-2023-53241","summary":"nfsd: call op_release, even when op_func returns an error","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: call op_release, even when op_func returns an error\n\nFor ops with \"trivial\" replies, nfsd4_encode_operation will shortcut\nmost of the encoding work and skip to just marshalling up the status.\nOne of the things it skips is calling op_release. This could cause a\nmemory leak in the layoutget codepath if there is an error at an\ninopportune time.\n\nHave the compound processing engine always call op_release, even when\nop_func sets an error in op-\u003estatus. With this change, we also need\nnfsd4_block_get_device_info_scsi to set the gd_device pointer to NULL\non error to avoid a double free.","modified":"2026-04-02T09:43:51.656467Z","published":"2025-09-15T14:23:09.750Z","related":["SUSE-SU-2025:03615-1","SUSE-SU-2025:03628-1","SUSE-SU-2025:3716-1","SUSE-SU-2025:3761-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53241.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/15a8b55dbb1ba154d82627547c5761cac884d810"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3d0dcada384af22dec764c8374a2997870ec86ae"},{"type":"WEB","url":"https://git.kernel.org/stable/c/65a33135e91e6dd661ecdf1194b9d90c49ae3570"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b11d8162c24af4a351d21e2c804d25ca493305e3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b623a8e5d38a69a3ef8644acb1030dd7c7bc28b3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53241.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53241"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"34b1744c91ccd44811005822106945fa80ecbff2"},{"fixed":"65a33135e91e6dd661ecdf1194b9d90c49ae3570"},{"fixed":"b11d8162c24af4a351d21e2c804d25ca493305e3"},{"fixed":"b623a8e5d38a69a3ef8644acb1030dd7c7bc28b3"},{"fixed":"3d0dcada384af22dec764c8374a2997870ec86ae"},{"fixed":"15a8b55dbb1ba154d82627547c5761cac884d810"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53241.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}