diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2026-03-11 15:02:18 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-06-29 19:17:30 +0000 |
| commit | f145e3c02b46eef1178be175338f27b6a5154122 (patch) | |
| tree | 82c1116b08678e834a1ee6e816c30aacbe9585ae | |
| parent | 99d936f9858985c6387ef930ab6d66f013203edb (diff) | |
compat32: Zero struct to avoid stack disclosure
Approved by: so
Security: FreeBSD-SA-26:48.compat32
Security: CVE-2026-49425
Reported by: Adam Crosser, Praetorian
Reviewed by: philip
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55811
(cherry picked from commit 097cb4e9f0432c543c704cec712ce1cd3302335c)
(cherry picked from commit 4551ea3b3f04650cd5300a9eae8994bdb080db91)
(cherry picked from commit 6a808cd7534802d30010fb0a7f46381ff9f6ef3f)
| -rw-r--r-- | sys/compat/freebsd32/freebsd32_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index 13152d9d3588..df388a7d67d1 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -765,7 +765,7 @@ static int freebsd32_kevent_copyout(void *arg, struct kevent *kevp, int count) { struct freebsd32_kevent_args *uap; - struct kevent32 ks32[KQ_NEVENTS]; + struct kevent32 ks32[KQ_NEVENTS] = {}; int i, error; KASSERT(count <= KQ_NEVENTS, ("count (%d) > KQ_NEVENTS", count)); |
