ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup}
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s ext4 filename-handling functions can leak memory from the fscrypt_name structure when filename casefolding fails. The input does not specify how an attacker could trigger the failure, or whether access, authentication, or user interaction is required.
Operators running the Linux kernel should check their ext4 exposure; affected versions are not specified.