All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: gregkh@linuxfoundation.org
Cc: tiwai@suse.de, stable@vger.kernel.org
Subject: Re: FAILED: patch "[PATCH] ALSA: usb-audio: Fix OOB access of mixer element list" failed to apply to 4.14-stable tree
Date: Sun, 28 Jun 2020 17:52:23 -0400	[thread overview]
Message-ID: <20200628215223.GM1931@sasha-vm> (raw)
In-Reply-To: <1593358260240211@kroah.com>

On Sun, Jun 28, 2020 at 05:31:00PM +0200, gregkh@linuxfoundation.org wrote:
>
>The patch below does not apply to the 4.14-stable tree.
>If someone wants it applied there, or to any other stable or longterm
>tree, then please email the backport, including the original git commit
>id to <stable@vger.kernel.org>.
>
>thanks,
>
>greg k-h
>
>------------------ original commit in Linus's tree ------------------
>
>From 220345e98f1cdc768eeb6e3364a0fa7ab9647fe7 Mon Sep 17 00:00:00 2001
>From: Takashi Iwai <tiwai@suse.de>
>Date: Wed, 24 Jun 2020 14:23:40 +0200
>Subject: [PATCH] ALSA: usb-audio: Fix OOB access of mixer element list
>
>The USB-audio mixer code holds a linked list of usb_mixer_elem_list,
>and several operations are performed for each mixer element.  A few of
>them (snd_usb_mixer_notify_id() and snd_usb_mixer_interrupt_v2())
>assume each mixer element being a usb_mixer_elem_info object that is a
>subclass of usb_mixer_elem_list, cast via container_of() and access it
>members.  This may result in an out-of-bound access when a
>non-standard list element has been added, as spotted by syzkaller
>recently.
>
>This patch adds a new field, is_std_info, in usb_mixer_elem_list to
>indicate that the element is the usb_mixer_elem_info type or not, and
>skip the access to such an element if needed.
>
>Reported-by: syzbot+fb14314433463ad51625@syzkaller.appspotmail.com
>Reported-by: syzbot+2405ca3401e943c538b5@syzkaller.appspotmail.com
>Cc: <stable@vger.kernel.org>
>Link: https://lore.kernel.org/r/20200624122340.9615-1-tiwai@suse.de
>Signed-off-by: Takashi Iwai <tiwai@suse.de>

I took these two additional commits:

8c558076c740 ("ALSA: usb-audio: Clean up mixer element list traverse")
b2500b584cfd ("ALSA: usb-audio: uac1: Invalidate ctl on interrupt")

and queued all 3 for 4.14, 4.9, and 4.4

-- 
Thanks,
Sasha

      reply	other threads:[~2020-06-28 21:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-28 15:31 FAILED: patch "[PATCH] ALSA: usb-audio: Fix OOB access of mixer element list" failed to apply to 4.14-stable tree gregkh
2020-06-28 21:52 ` Sasha Levin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200628215223.GM1931@sasha-vm \
    --to=sashal@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=stable@vger.kernel.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.