svn commit: r350283 - in releng: 11.2/sys/compat/freebsd32 11.3/sys/compat/freebsd32
Gordon Tetlow
gordon at FreeBSD.org
Wed Jul 24 12:54:11 UTC 2019
Author: gordon
Date: Wed Jul 24 12:54:10 2019
New Revision: 350283
URL: https://svnweb.freebsd.org/changeset/base/350283
Log:
Fix kernel memory disclosure in freebsd32_ioctl.
Approved by: so
Security: FreeBSD-SA-19:14.freebsd32
Security: CVE-2019-5605
Modified:
releng/11.2/sys/compat/freebsd32/freebsd32_ioctl.c
releng/11.3/sys/compat/freebsd32/freebsd32_ioctl.c
Modified: releng/11.2/sys/compat/freebsd32/freebsd32_ioctl.c
==============================================================================
--- releng/11.2/sys/compat/freebsd32/freebsd32_ioctl.c Wed Jul 24 12:53:06 2019 (r350282)
+++ releng/11.2/sys/compat/freebsd32/freebsd32_ioctl.c Wed Jul 24 12:54:10 2019 (r350283)
@@ -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);
Modified: releng/11.3/sys/compat/freebsd32/freebsd32_ioctl.c
==============================================================================
--- releng/11.3/sys/compat/freebsd32/freebsd32_ioctl.c Wed Jul 24 12:53:06 2019 (r350282)
+++ releng/11.3/sys/compat/freebsd32/freebsd32_ioctl.c Wed Jul 24 12:54:10 2019 (r350283)
@@ -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);
More information about the svn-src-all
mailing list