]> git.hungrycats.org Git - linux/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)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Apr 2011 14:53:24 +0000 (16:53 +0200)
commita1fb9e0ae20bd1178aad9cec8a6c344a159553f2
treeb56802c7ce02b007d12017f5f9908e95b3149962
parent798d07510c753dd6a63a991f256a4dbfb366ebe2
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>
sound/oss/opl3.c