{"id":"CVE-2023-53241","state":"PUBLISHED","title":"nfsd: call op_release, even when op_func returns an error","description":"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->status. 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.","publishedAt":"2025-09-15T14:23:09.750Z","updatedAt":"2026-05-11T19:40:58.403Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"34b1744c91ccd44811005822106945fa80ecbff2","status":"affected","lessThan":"65a33135e91e6dd661ecdf1194b9d90c49ae3570","versionType":"git"},{"version":"34b1744c91ccd44811005822106945fa80ecbff2","status":"affected","lessThan":"b11d8162c24af4a351d21e2c804d25ca493305e3","versionType":"git"},{"version":"34b1744c91ccd44811005822106945fa80ecbff2","status":"affected","lessThan":"b623a8e5d38a69a3ef8644acb1030dd7c7bc28b3","versionType":"git"},{"version":"34b1744c91ccd44811005822106945fa80ecbff2","status":"affected","lessThan":"3d0dcada384af22dec764c8374a2997870ec86ae","versionType":"git"},{"version":"34b1744c91ccd44811005822106945fa80ecbff2","status":"affected","lessThan":"15a8b55dbb1ba154d82627547c5761cac884d810","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/blocklayout.c","fs/nfsd/nfs4xdr.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.14","versionType":"semver"},{"version":"5.10.220","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.154","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.24","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.11","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/blocklayout.c","fs/nfsd/nfs4xdr.c"]}],"references":["https://git.kernel.org/stable/c/65a33135e91e6dd661ecdf1194b9d90c49ae3570","https://git.kernel.org/stable/c/b11d8162c24af4a351d21e2c804d25ca493305e3","https://git.kernel.org/stable/c/b623a8e5d38a69a3ef8644acb1030dd7c7bc28b3","https://git.kernel.org/stable/c/3d0dcada384af22dec764c8374a2997870ec86ae","https://git.kernel.org/stable/c/15a8b55dbb1ba154d82627547c5761cac884d810"],"weaknesses":["CWE-401"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53241.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53241","state":"PUBLISHED","datePublished":"2025-09-15T14:23:09.750Z","dateUpdated":"2026-05-11T19:40:58.403Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-15T14:19:21.848Z"},"containers":{"cna":{"title":"nfsd: call op_release, even when op_func returns an error","descriptions":[{"lang":"en","value":"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->status. 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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"34b1744c91ccd44811005822106945fa80ecbff2","status":"affected","lessThan":"65a33135e91e6dd661ecdf1194b9d90c49ae3570","versionType":"git"},{"version":"34b1744c91ccd44811005822106945fa80ecbff2","status":"affected","lessThan":"b11d8162c24af4a351d21e2c804d25ca493305e3","versionType":"git"},{"version":"34b1744c91ccd44811005822106945fa80ecbff2","status":"affected","lessThan":"b623a8e5d38a69a3ef8644acb1030dd7c7bc28b3","versionType":"git"},{"version":"34b1744c91ccd44811005822106945fa80ecbff2","status":"affected","lessThan":"3d0dcada384af22dec764c8374a2997870ec86ae","versionType":"git"},{"version":"34b1744c91ccd44811005822106945fa80ecbff2","status":"affected","lessThan":"15a8b55dbb1ba154d82627547c5761cac884d810","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/blocklayout.c","fs/nfsd/nfs4xdr.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.14","versionType":"semver"},{"version":"5.10.220","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.154","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.24","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.11","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/blocklayout.c","fs/nfsd/nfs4xdr.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/65a33135e91e6dd661ecdf1194b9d90c49ae3570"},{"url":"https://git.kernel.org/stable/c/b11d8162c24af4a351d21e2c804d25ca493305e3"},{"url":"https://git.kernel.org/stable/c/b623a8e5d38a69a3ef8644acb1030dd7c7bc28b3"},{"url":"https://git.kernel.org/stable/c/3d0dcada384af22dec764c8374a2997870ec86ae"},{"url":"https://git.kernel.org/stable/c/15a8b55dbb1ba154d82627547c5761cac884d810"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:40:58.403Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.10.220"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.15.154"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.1.24"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.2.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2023-53241","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-01-14T17:57:52.493898Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-401","lang":"en","type":"CWE","description":"CWE-401 Missing Release of Memory after Effective Lifetime"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T18:02:50.702Z"}}]}}}