All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peilin Ye <yepeilin.cs@gmail.com>
To: Greg KH <gregkh@linuxfoundation.org>
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 13:38:24 -0500	[thread overview]
Message-ID: <20201223183824.GA17390@PWN> (raw)
In-Reply-To: <X+OJyx/VEBlfItDz@kroah.com>

On Wed, Dec 23, 2020 at 07:17:47PM +0100, Greg KH wrote:
> 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!

<offlist>

No problem!  It's 24th in China - Merry Christmas!

Peilin


      reply	other threads:[~2020-12-23 18:39 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
2020-12-23 18:38   ` Peilin Ye [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=20201223183824.GA17390@PWN \
    --to=yepeilin.cs@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=marcel@holtmann.org \
    --cc=stable@vger.kernel.org \
    /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.