diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2026-03-10 13:53:46 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-06-30 02:32:58 +0000 |
| commit | 008ca5def63b5fd754c1acdf60bbd64786a36abc (patch) | |
| tree | ef8c03221a4b47a1875862a30c9a29c8a2ca7896 /sys/compat/linux/linux_misc.c | |
| parent | 5357f822416a2ea6adccfefdb88572f7b18065cb (diff) | |
compat/linux: Avoid waitid() kernel stack disclosure
Approved by: so
Security: FreeBSD-SA-26:47.linux
Security: CVE-2026-49424
Reported by: Adam Crosser, Praetorian
Reviewed by: philip
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55812
(cherry picked from commit 9a9f93bcf1aa0059d759b2f3ea6faeb2760a11bd)
(cherry picked from commit 9f8db9cc67fb86eeb2b645ce7f8aa748e99241a9)
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
| -rw-r--r-- | sys/compat/linux/linux_misc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 9e9536335cf2..26a3aeee61b0 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -749,6 +749,7 @@ linux_common_wait(struct thread *td, idtype_t idtype, int id, int *statusp, error = linux_copyout_rusage(&wru.wru_self, rup); if (error == 0 && infop != NULL && td->td_retval[0] != 0) { sig = bsd_to_linux_signal(siginfo.si_signo); + memset(&lsi, 0, sizeof(lsi)); siginfo_to_lsiginfo(&siginfo, &lsi, sig); error = copyout(&lsi, infop, sizeof(lsi)); } |
