ALSA: sound/pci/asihpi: check adapter index in hpi_ioctl
authorDan Rosenberg <drosenberg@vsecurity.com>
Thu, 17 Mar 2011 22:32:24 +0000 (18:32 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Mar 2011 19:50:30 +0000 (12:50 -0700)
commitc8c9edfe6a04a862066dffbffe255eaae5742efc
tree036a7512f8b307e6d41b6d7c0c5d7af0c9b209e8
parent2de4380602b42871a073bead7153b5c662e3289a
ALSA: sound/pci/asihpi: check adapter index in hpi_ioctl

commit 4a122c10fbfe9020df469f0f669da129c5757671 upstream.

The user-supplied index into the adapters array needs to be checked, or
an out-of-bounds kernel pointer could be accessed and used, leading to
potentially exploitable memory corruption.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/asihpi/hpioctl.c