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.
https://git.kernel.org/stable/c/f639d9867eea647005dc824e0e24f39ffc50d4e4
https://git.kernel.org/stable/c/f4429786129648a8f4bb1e5faa143c4478cc5c4a
https://git.kernel.org/stable/c/e792575b902a3939ca482491ee9fb3a236f99640
https://git.kernel.org/stable/c/7f740ede35132d3d5d19747cad56a511d21bb156
https://git.kernel.org/stable/c/2fe82d3254029ef9ec4e7be890125d5ef4f537de