Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Peilin Ye <yepeilin.cs@gmail.com>
Cc: marcel@holtmann.org, stable@vger.kernel.org
Subject: Re: [PATCH 4.14 4.9 4.4-stable] Bluetooth: Fix slab-out-of-bounds read in hci_le_direct_adv_report_evt()
Date: Wed, 23 Dec 2020 19:17:47 +0100	[thread overview]
Message-ID: <X+OJyx/VEBlfItDz@kroah.com> (raw)
In-Reply-To: <20201223180446.17207-1-yepeilin.cs@gmail.com>

On Wed, Dec 23, 2020 at 01:04:46PM -0500, Peilin Ye wrote:
> commit f7e0e8b2f1b0a09b527885babda3e912ba820798 upstream.
> 
> `num_reports` is not being properly checked. A malformed event packet with
> a large `num_reports` number makes hci_le_direct_adv_report_evt() read out
> of bounds. Fix it.
> 
> Backporting notes:
>   - Rebased on linux-4.14.y, commit 3f2ecb86cb90 ("Linux 4.14.212")
>   - Retested by syzbot
> 
> Cc: stable@vger.kernel.org
> Fixes: 2f010b55884e ("Bluetooth: Add support for handling LE Direct Advertising Report events")
> Reported-and-tested-by: syzbot+24ebd650e20bd263ca01@syzkaller.appspotmail.com
> Link: https://syzkaller.appspot.com/bug?extid=24ebd650e20bd263ca01
> Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com>
> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
> ---
>  net/bluetooth/hci_event.c | 12 +++++-------
>  1 file changed, 5 insertions(+), 7 deletions(-)

Thanks for the backport, now queued up!

greg k-h

  reply	other threads:[~2020-12-23 18:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-23 18:04 [PATCH 4.14 4.9 4.4-stable] Bluetooth: Fix slab-out-of-bounds read in hci_le_direct_adv_report_evt() Peilin Ye
2020-12-23 18:17 ` Greg KH [this message]
2020-12-23 18:38   ` Peilin Ye

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=X+OJyx/VEBlfItDz@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=marcel@holtmann.org \
    --cc=stable@vger.kernel.org \
    --cc=yepeilin.cs@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox