In the Linux kernel, the following vulnerability has been resolved: ceph: fix memory leak in ceph_readdir when note_last_dentry returns error Reset the last_readdir at the same time, and add a comment explaining why we don't free last_readdir when dir_emit returns false.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2025022601-CVE-2022-49107-03bc@gregkh/T