]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r327497, r327498: fix memory disclosure in hpt* ioctls
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 23 Jan 2018 02:29:39 +0000 (02:29 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 23 Jan 2018 02:29:39 +0000 (02:29 +0000)
commit476a2c513afa8b749f543d6089c9caa11aadeb4e
treeb32aa5a5e6007db611d732f44a6d77b52d8b0467
parent5ba20095c18f720836608913b82e1cba582eba73
MFC r327497, r327498: fix memory disclosure in hpt* ioctls

r327497: 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)

r327498: hpt{nr,rr}: plug info leak in hpt_ioctl

The hpt{nr,rr} 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 hpt27{nr,rr} device has permissions only for root so this is not urgent,
and the fix can be MFCd and considered for a future EN.

The same issue was reported in the hpt27xx driver by Ilja Van Sprundel.

Security: memory disclosure in root-only ioctls
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@328268 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
sys/dev/hptnr/hptnr_osm_bsd.c
sys/dev/hptrr/hptrr_osm_bsd.c