Bluetooth: bnep: fix out-of-bounds reads on short RX/TX frames and control fallthrough
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 8f31031326994d1abfcc6ebb6927ef96e51fb9ff| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: bnep: fix out-of-bounds reads on short RX/TX frames and control fallthrough
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.
From the CVE record · Linux
The Linux kernel's Bluetooth BNEP processing can read beyond short received frames, and its transmit path can read beyond short AF_PACKET frames. A short AF_PACKET transmit frame can cause a heap read and information leak; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with Bluetooth BNEP should check their kernel version; affected versions were not provided.