summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHui Peng <benquike@gmail.com>2026-09-19 22:17:38 +0000
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-09-21 09:37:19 -0400
commitf0ca020cbb9bb7f3f4ea8ba1dfcf30a282aec91e (patch)
tree47b865052841f87963464323329dc77a8da0f9f8 /tools/perf/scripts/python/stackcollapse.py
parentb5dbb41b212c50c095a4dbee3017a84fe94f033b (diff)
downloadlinux-f0ca020cbb9bb7f3f4ea8ba1dfcf30a282aec91e.tar.gz
linux-f0ca020cbb9bb7f3f4ea8ba1dfcf30a282aec91e.zip
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. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Assisted-by: LLM Signed-off-by: Hui Peng <benquike@gmail.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions