5.5medium
ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup}
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1ae98e295fa2577fb5e492200c58d10230e00e99 before 98fc9c2cc45cfcb56961a73de3ec69b474063fc0, from 1ae98e295fa2577fb5e492200c58d10230e00e99 before 1fb3f1bbfdb511034b0360dbeb0f6a8424ed2a5c, from 1ae98e295fa2577fb5e492200c58d10230e00e99 before 36daf050be3f6f067631dc52054de2d3b7cc849f, from 1ae98e295fa2577fb5e492200c58d10230e00e99 before 7ca4b085f430f3774c3838b3da569ceccd6a0177, 5.13 Not affected: before 5.13, from 5.15.199 up to 5.15.*, from 6.1.54 up to 6.1.*, from 6.5.4 up to 6.5.*, from 6.6 up to * | CVE List |
| linux linux_kernel | from 5.13 before 6.1.54, from 6.2 before 6.5.4 | NVD |
Classification
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ext4: corrige fugas de memoria en ext4_fname_{setup_filename,prepare_lookup} Si el plegado de mayúsculas y minúsculas del nombre de archivo falla, estaremos fugando memoria de la estructura fscrypt_name, específicamente del miembro ’crypto_buf.name’. Asegurémonos de liberarla en la ruta de error en ambas funciones ext4_fname_setup_filename() y ext4_fname_prepare_lookup().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-53662 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-53662 changed 2026-10-28 | Public domain |