In the Linux kernel, the following vulnerability has been resolved:exec: fix the racy usage of fs_struct->in_execcheck_unsafe_exec() sets fs->in_exec under cred_guard_mutex, then execve()
paths clear fs->in_exec lockless. This is fine if exec succeeds, but if it
fails we have the following race:Change fs/exec.c to clear fs->in_exec with cred_guard_mutex held.