In the Linux kernel, the following vulnerability has been resolved: apparmor: release exe file resources on path failure get_current_exe_path() takes both an exe_file reference and a path reference before resolving the path name. If aa_path_name() failed, it returned immediately and leaked both references. Route the failure through the common cleanup path so fput() and path_put() always run after the references are acquired.
https://git.kernel.org/stable/c/7306c41672487a6c28430714be063bc6942c28f2
https://git.kernel.org/stable/c/393809a05cfb60309ad63ee09138db8296d6b97e