What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.220, 5.15.154, 6.1.24, 6.2.11. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-53241 or the next vulnerability affects your stack