# CVE-2023-53241: nfsd: call op_release, even when op_func returns an error

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 8% of CVEs (2026-11-30)
- Published: 2025-09-15T14:23:09.750Z
- Modified: 2026-06-17T06:44:36.410Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 34b1744c91ccd44811005822106945fa80ecbff2 before 65a33135e91e6dd661ecdf1194b9d90c49ae3570; from 34b1744c91ccd44811005822106945fa80ecbff2 before b11d8162c24af4a351d21e2c804d25ca493305e3; from 34b1744c91ccd44811005822106945fa80ecbff2 before b623a8e5d38a69a3ef8644acb1030dd7c7bc28b3; from 34b1744c91ccd44811005822106945fa80ecbff2 before 3d0dcada384af22dec764c8374a2997870ec86ae; from 34b1744c91ccd44811005822106945fa80ecbff2 before 15a8b55dbb1ba154d82627547c5761cac884d810; 4.14 (not affected: before 4.14; from 5.10.220 up to 5.10.*; from 5.15.154 up to 5.15.*; from 6.1.24 up to 6.1.*; from 6.2.11 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 4.14 before 5.10.220; from 5.11 before 5.15.154; from 5.16 before 6.1.24; from 6.2 before 6.2.11; 6.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/65a33135e91e6dd661ecdf1194b9d90c49ae3570> (patch)
- <https://git.kernel.org/stable/c/b11d8162c24af4a351d21e2c804d25ca493305e3> (patch)
- <https://git.kernel.org/stable/c/b623a8e5d38a69a3ef8644acb1030dd7c7bc28b3> (patch)
- <https://git.kernel.org/stable/c/3d0dcada384af22dec764c8374a2997870ec86ae> (patch)
- <https://git.kernel.org/stable/c/15a8b55dbb1ba154d82627547c5761cac884d810> (patch)

## Sources

- CVE List: [CVE-2023-53241](https://www.cve.org/CVERecord?id=CVE-2023-53241), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53241](https://nvd.nist.gov/vuln/detail/CVE-2023-53241), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53241 · Whole record: https://cve.day/CVE-2023-53241.json · Rebuilt by cve.day 2026-11-25T22:58:34.792Z
