In the Linux kernel, the following vulnerability has been resolved: procfs: fix possible double mmput() in doprocmapquery() When user provides incorrectly sized buffer for build ID for PROCMAPQUERY we return with -ENAMETOOLONG error. After recent changes this condition happens later, after we unlocked mmaplock/per-VMA lock and did mmput(), so original goto out is now wrong and will double-mmput() mmstruct. Fix by jumping further to clean up only vmfile and name_buf.