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 4551ea3b3f)
(cherry picked from commit 6a808cd7534802d30010fb0a7f46381ff9f6ef3f)
This commit is contained in:
parent
fd37b87e86
commit
e0897f8606
1 changed files with 1 additions and 1 deletions
|
|
@ -766,7 +766,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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue