Re: [PATCH] Bluetooth: bnep: fix out-of-bounds reads on short RX/TX frames and control fallthrough

From: patchwork-bot+bluetooth

Date: Mon Sep 21 2026 - 10:47:01 EST


Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:

On Sat, 19 Sep 2026 22:17:38 +0000 you wrote:
> Fix multiple out-of-bounds reads in Bluetooth BNEP frame processing:
>
> 1. In bnep_rx_frame() and bnep_ctrl_frame() (net/bluetooth/bnep/core.c),
> use pskb_may_pull() to verify the BNEP header, control type byte,
> filter count, and extension headers exist before reading them, and
> return 0 after handling BNEP_CONTROL instead of falling through to
> Ethernet frame submission when no extension headers follow.
> 2. In bnep_net_xmit() (net/bluetooth/bnep/netdev.c), verify skb->len >=
> ETH_HLEN with pskb_may_pull() before reading the 14-byte Ethernet
> header to prevent an out-of-bounds heap read and infoleak on short
> AF_PACKET TX frames.
>
> [...]

Here is the summary with links:
- Bluetooth: bnep: fix out-of-bounds reads on short RX/TX frames and control fallthrough
https://git.kernel.org/bluetooth/bluetooth-next/c/f0ca020cbb9b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html