]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix kernel memory disclosure in svr4_sys_getdents64
authoremaste <emaste@FreeBSD.org>
Wed, 21 Mar 2018 23:45:48 +0000 (23:45 +0000)
committeremaste <emaste@FreeBSD.org>
Wed, 21 Mar 2018 23:45:48 +0000 (23:45 +0000)
commit110dab7b4ab68afa0fa8ae10254b778c6d8e2f00
treed4eba0e8fe6978638e7416f09d3a235209e8ae09
parentfc07d889c1ac62a2bed1944f523505217cf104fc
Fix kernel memory disclosure in svr4_sys_getdents64

svr4_sys_getdents64() copies a dirent structure to userland.  When
calculating the record length for any given dirent entry alignment is
performed.  However, the aligned bytes are not cleared, this will
trigger an info leak.

Direct commit to stable/11; this code does not exist in HEAD.  This
change to be merged from stable/11 to stable/10.

Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>
MFC after: 3 days
Security: Kernel memory disclosure (797)
Sponsored by: The FreeBSD Foundation
sys/compat/svr4/svr4_misc.c