From: syzbot <syzbot+6e76aa21aaf2d8be6034@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Forwarded: [PATCH] Bluetooth: hci_conn: Fix memory leak in tx_q on connection teardown
Date: Thu, 08 Jan 2026 17:53:50 -0800 [thread overview]
Message-ID: <69605fae.050a0220.1c677c.03ad.GAE@google.com> (raw)
In-Reply-To: <695e9923.050a0220.1c677c.0370.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: [PATCH] Bluetooth: hci_conn: Fix memory leak in tx_q on connection teardown
Author: kartikey406@gmail.com
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
Cloned SKBs queued in conn->tx_q.queue for TX timestamp tracking are
not freed if the connection is torn down before all completion events
arrive. Add skb_queue_purge() in hci_conn_cleanup() to fix the leak.
Reported-by: syzbot+6e76aa21aaf2d8be6034@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=6e76aa21aaf2d8be6034
Signed-off-by: Deepanshu Kartikey <kartikey406@gmail.com>
---
net/bluetooth/hci_conn.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index c3f7828bf9d5..3fb93faf60f3 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -148,6 +148,7 @@ static void hci_conn_cleanup(struct hci_conn *conn)
hci_remove_link_key(hdev, &conn->dst);
hci_chan_list_flush(conn);
+ skb_queue_purge(&conn->tx_q.queue);
if (HCI_CONN_HANDLE_UNSET(conn->handle))
ida_free(&hdev->unset_handle_ida, conn->handle);
--
2.43.0
next prev parent reply other threads:[~2026-01-09 1:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-07 17:34 [syzbot] [batman?] [bluetooth?] memory leak in skb_clone (3) syzbot
2026-01-08 8:31 ` Forwarded: [PATCH] Bluetooth: hci_conn: Fix memory leak in tx_q on connection teardown syzbot
2026-01-08 8:56 ` syzbot
2026-01-09 1:53 ` syzbot [this message]
2026-02-25 12:54 ` Forwarded: Re: [syzbot] [batman?] [bluetooth?] memory leak in skb_clone (3) syzbot
2026-03-09 14:06 ` Forwarded: Re: [syzbot] [bluetooth?] [batman?] " syzbot
2026-03-09 15:05 ` 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=69605fae.050a0220.1c677c.03ad.GAE@google.com \
--to=syzbot+6e76aa21aaf2d8be6034@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
--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®