ALSA: opl3: fix infoleak in opl3
authorxidongwang <wangxidong_97@163.com>
Mon, 6 Jul 2020 03:27:38 +0000 (20:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2020 06:13:26 +0000 (08:13 +0200)
commit642cab5239a3cc128cdfc30f0bdd3d5463f390be
tree7847b3c6d96233f1c8b79a7afc3ea074f01c3545
parentdaea9b9277e40e6f1ef34bd0be607a3aab2df0b4
ALSA: opl3: fix infoleak in opl3

commit ad155712bb1ea2151944cf06a0e08c315c70c1e3 upstream.

The stack object “info” in snd_opl3_ioctl() has a leaking problem.
It has 2 padding bytes which are not initialized and leaked via
“copy_to_user”.

Signed-off-by: xidongwang <wangxidong_97@163.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/1594006058-30362-1-git-send-email-wangxidong_97@163.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/drivers/opl3/opl3_synth.c