]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit667604ab2bf0a675d9485534f03b8d9823de49f7
tree57a707d3331c59f18f65dd9dfc1610944e461d7d
parent02a17c7e8e5836919255e6e1fd639d5a8a0af247
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