]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: emu10k1: fix possible info leak to userspace on SNDRV_EMU10K1_IOCTL_INFO
authorWilly Tarreau <w@1wt.eu>
Sat, 8 Sep 2018 06:12:21 +0000 (08:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Sep 2018 15:18:28 +0000 (17:18 +0200)
commitd8599c89e7b75a0f9713b5a2099b9a94d621e678
tree499e94efd9d2e885a356daa0af63dfaf1ab0a992
parent787712bea25dc4bf369f7070cb741b7ee8c43258
ALSA: emu10k1: fix possible info leak to userspace on SNDRV_EMU10K1_IOCTL_INFO

snd_emu10k1_fx8010_ioctl(SNDRV_EMU10K1_IOCTL_INFO) allocates
memory using kmalloc() and partially fills it by calling
snd_emu10k1_fx8010_info() before returning the resulting
structure to userspace, leaving uninitialized holes. Let's
just use kzalloc() here.

BugLink: http://blog.infosectcbr.com.au/2018/09/linux-kernel-infoleaks.html
Signed-off-by: Willy Tarreau <w@1wt.eu>
Cc: Jann Horn <jannh@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emufx.c