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)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 Mar 2011 06:38:29 +0000 (07:38 +0100)
commit4a122c10fbfe9020df469f0f669da129c5757671
tree57a707d3331c59f18f65dd9dfc1610944e461d7d
parent98d21df431ad55281e1abf780f8d51e3391900b2
ALSA: sound/pci/asihpi: check adapter index in hpi_ioctl

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>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpioctl.c