diff options
author | gordon <gordon@FreeBSD.org> | 2019-07-24 12:54:10 +0000 |
---|---|---|
committer | gordon <gordon@FreeBSD.org> | 2019-07-24 12:54:10 +0000 |
commit | c9f55f4afeb8674e5bcc7888c2b7288937a25ea4 (patch) | |
tree | 9d25a68ddb6e398125aceb80499a3d13a52613cc | |
parent | aae64a845b6024a348ac03faab07830ca176c2cb (diff) | |
download | FreeBSD-src-c9f55f4afeb8674e5bcc7888c2b7288937a25ea4.zip FreeBSD-src-c9f55f4afeb8674e5bcc7888c2b7288937a25ea4.tar.gz |
Fix kernel memory disclosure in freebsd32_ioctl.
Approved by: so
Security: FreeBSD-SA-19:14.freebsd32
Security: CVE-2019-5605
-rw-r--r-- | sys/compat/freebsd32/freebsd32_ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/freebsd32/freebsd32_ioctl.c b/sys/compat/freebsd32/freebsd32_ioctl.c index b634b30..b6cdbd9 100644 --- a/sys/compat/freebsd32/freebsd32_ioctl.c +++ b/sys/compat/freebsd32/freebsd32_ioctl.c @@ -262,6 +262,8 @@ freebsd32_ioctl_pciocgetconf(struct thread *td, vm_offset_t addr; int error; + memset(&pmc, 0, sizeof(pmc)); + memset(&pc32, 0, sizeof(pc32)); if ((error = copyin(uap->data, &pci32, sizeof(pci32))) != 0) return (error); |