[GIT PULL] execve fixes for v6.11-rc4

From: Kees Cook
Date: Tue Aug 13 2024 - 16:27:57 EST


Hi Linus,

Please pull these execve fixes for v6.11-rc4.

Thanks!

-Kees

The following changes since commit de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed:

Linux 6.11-rc2 (2024-08-04 13:50:53 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/execve-v6.11-rc4

for you to fetch changes up to f50733b45d865f91db90919f8311e2127ce5a0cb:

exec: Fix ToCToU between perm check and set-uid/gid usage (2024-08-13 13:24:29 -0700)

----------------------------------------------------------------
execve fixes for v6.11-rc4

- binfmt_flat: Fix corruption when not offsetting data start

- exec: Fix ToCToU between perm check and set-uid/gid usage

----------------------------------------------------------------
Kees Cook (2):
binfmt_flat: Fix corruption when not offsetting data start
exec: Fix ToCToU between perm check and set-uid/gid usage

fs/binfmt_flat.c | 4 +++-
fs/exec.c | 8 +++++++-
2 files changed, 10 insertions(+), 2 deletions(-)

--
Kees Cook