summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-07-20 19:47:17 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-07-20 17:41:28 -0400
commitdf541cd485ff80a5ddc579d99687bc7506df9851 (patch)
tree220f2941ab9b2c973c0cfa48755bdeea9d33c6f2 /include
parentc783399efc22d035443f1dfbf2a09bf9562aaa5e (diff)
Bluetooth: btusb: validate Realtek vendor event length
btusb_recv_event_realtek() reads the event code at data[0] and the Realtek subevent code at data[2] before deciding whether to consume a vendor event as a coredump. For example, the two-byte event ff 00 contains a complete vendor-event header declaring zero parameters. The old classifier still reads a nonexistent third byte and can misclassify the event as a coredump if the adjacent byte is 0x34. Require the HCI event header and first parameter to be present before inspecting the Realtek subevent code. Short events continue through the normal HCI receive path, which owns their protocol validation. Fixes: 044014ce85a1 ("Bluetooth: btrtl: Add Realtek devcoredump support") Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions