This is a note to let you know that I've just added the patch titled ASoC: 88pm860x: array overflow in snd_soc_put_volsw_2r_st() to the 3.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: asoc-88pm860x-array-overflow-in-snd_soc_put_volsw_2r_st.patch and it can be found in the queue-3.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From d967967e8d1116fb38bad25e58714b5dddd03cca Mon Sep 17 00:00:00 2001 From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Date: Fri, 13 Sep 2013 10:52:49 +0300 Subject: ASoC: 88pm860x: array overflow in snd_soc_put_volsw_2r_st() From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> commit d967967e8d1116fb38bad25e58714b5dddd03cca upstream. This is called from snd_ctl_elem_write() with user supplied data so we need to add some bounds checking. Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Signed-off-by: Mark Brown <broonie@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- sound/soc/codecs/88pm860x-codec.c | 3 +++ 1 file changed, 3 insertions(+) --- a/sound/soc/codecs/88pm860x-codec.c +++ b/sound/soc/codecs/88pm860x-codec.c @@ -351,6 +351,9 @@ static int snd_soc_put_volsw_2r_st(struc val = ucontrol->value.integer.value[0]; val2 = ucontrol->value.integer.value[1]; + if (val >= ARRAY_SIZE(st_table) || val2 >= ARRAY_SIZE(st_table)) + return -EINVAL; + err = snd_soc_update_bits(codec, reg, 0x3f, st_table[val].m); if (err < 0) return err; Patches currently in stable-queue which might be from dan.carpenter@xxxxxxxxxx are queue-3.10/cciss-fix-info-leak-in-cciss_ioctl32_passthru.patch queue-3.10/cpqarray-fix-info-leak-in-ida_locked_ioctl.patch queue-3.10/asoc-max98095-a-couple-array-underflows.patch queue-3.10/asoc-ab8500-codec-info-leak-in-anc_status_control_put.patch queue-3.10/net-sctp-fix-smatch-warning-in-sctp_send_asconf_del_ip.patch queue-3.10/asoc-88pm860x-array-overflow-in-snd_soc_put_volsw_2r_st.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html