In the Linux kernel, the following vulnerability has been resolved:
ext4: fix memory leaks in ext4fname{setupfilename,preparelookup}
If the filename casefolding fails, we'll be leaking memory from the fscryptname struct, namely from the 'cryptobuf.name' member.
Make sure we free it in the error path on both ext4fnamesetupfilename() and ext4fnamepreparelookup() functions.