]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: ISO: don't leak skb in ISO_CONT RX
authorPauli Virtanen <pav@iki.fi>
Mon, 22 Sep 2025 18:11:22 +0000 (21:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:37 +0000 (11:56 +0200)
commit76aaa5c636763ac3958f518a84687fb522b2b01c
tree8f0a27bb4f3184a9ed5d916271b355d49f1f6cf9
parenteba6d787ec117a5d2c60f9644e0a39c18542b6be
Bluetooth: ISO: don't leak skb in ISO_CONT RX

[ Upstream commit 5bf863f4c5da055c1eb08887ae4f26d99dbc4aac ]

For ISO_CONT RX, the data from skb is copied to conn->rx_skb, but the
skb is leaked.

Free skb after copying its data.

Fixes: ccf74f2390d6 ("Bluetooth: Add BTPROTO_ISO socket type")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/iso.c