]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sound/oss/opl3: validate voice and channel indexes
authorDan Rosenberg <drosenberg@vsecurity.com>
Wed, 23 Mar 2011 15:42:57 +0000 (11:42 -0400)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:58:49 +0000 (11:58 -0700)
commit8c389a3b0274f3bf86724d2776973071ac86dbdb
treef441be619718d6067644e9861d5232202d4039a9
parentd6b391f4879ddcc92f3f46dca793aaaa2cb1a84e
sound/oss/opl3: validate voice and channel indexes

commit 4d00135a680727f6c3be78f8befaac009030e4df upstream.

User-controllable indexes for voice and channel values may cause reading
and writing beyond the bounds of their respective arrays, leading to
potentially exploitable memory corruption.  Validate these indexes.

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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
sound/oss/opl3.c