mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+5c915dc5dd417b83b348@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Read in l2cap_recv_frame
Date: Sun,  1 Sep 2024 19:13:46 +0800	[thread overview]
Message-ID: <20240901111346.1560-1-hdanton@sina.com> (raw)
In-Reply-To: <00000000000096680f062109ec63@google.com>

On Sun, 01 Sep 2024 00:39:27 -0700
> syzbot has found a reproducer for the following issue on:
> 
> HEAD commit:    e8784b0aef62 Merge tag 'usb-6.11-rc6' of git://git.kernel...
> git tree:       upstream
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=10dfdadb980000

#syz test upstream  e8784b0aef62

--- i/net/bluetooth/l2cap_core.c
+++ l/net/bluetooth/l2cap_core.c
@@ -6826,6 +6826,7 @@ static void l2cap_recv_frame(struct l2ca
 		break;
 
 	case L2CAP_CID_CONN_LESS:
+		*((__le16 *) skb->data) = 0;
 		psm = get_unaligned((__le16 *) skb->data);
 		skb_pull(skb, L2CAP_PSMLEN_SIZE);
 		l2cap_conless_channel(conn, psm, skb);
--

  parent reply	other threads:[~2024-09-01 11:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-27  7:44 syzbot
2024-09-01  7:39 ` syzbot
2024-09-01  9:04   ` Hillf Danton
2024-09-01 10:13     ` syzbot
2024-09-01 11:13   ` Hillf Danton [this message]
2024-09-01 12:33     ` syzbot

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=20240901111346.1560-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+5c915dc5dd417b83b348@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.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

all inboxes | Powered by JetHome®