What’s Vulnerable › Vulnerabilities

CVE-2023-53662: ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup}

Description

In the Linux kernel, the following vulnerability has been resolved: ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup} If the filename casefolding fails, we'll be leaking memory from the fscrypt_name struct, namely from the 'crypto_buf.name' member. Make sure we free it in the error path on both ext4_fname_setup_filename() and ext4_fname_prepare_lookup() functions.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.54, 6.5.4. Check the vendor advisory for mitigations.

References

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