CVE-2023-53241

nfsd: call op_release, even when op_func returns an error

Medium · published September 15, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
4.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00159 · 4.7th percentile
Published
2025-09-15T14:23Z
EPSS history
Timeline
  • 15 SEP 14:23Z
    nfsd: call op_release, even when op_func returns an error
    cvelistv5