]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hpt27xx: plug info leak in hpt_ioctl
authoremaste <emaste@FreeBSD.org>
Tue, 2 Jan 2018 18:29:44 +0000 (18:29 +0000)
committeremaste <emaste@FreeBSD.org>
Tue, 2 Jan 2018 18:29:44 +0000 (18:29 +0000)
commit503a0e4ebc7eeb010583328795439d1e3a502206
tree325c020e02cf7223ff6406fa9e3a31410d67387c
parent6266e5e4ecfbe4c28ac4a287086783edba2fef9b
hpt27xx: plug info leak in hpt_ioctl

The hpt27xx ioctl handler allocates a buffer without M_ZERO and calls
hpt_do_ioctl(), which might not overwrite the entire buffer.

Also zero bytesReturned in case it is not written by hpt_do_ioctl().

The hpt27xx device has permissions only for root so this is not urgent,
and the fix can be MFCd and considered for a future EN.

Reported by: Ilja van Sprundel <ivansprundel@ioactive.com>
Submitted by: Domagoj Stolfa <domagoj.stolfa@gmail.com> (M_ZERO)
Reviewed by: jhb, kib
MFC after: 3 days
Security: info leak in root-only ioctl
Sponsored by: The FreeBSD Foundation
sys/dev/hpt27xx/hpt27xx_osm_bsd.c