Commit 4bcb0c7d authored by En-Wei Wu's avatar En-Wei Wu Committed by Luiz Augusto von Dentz
Browse files

Bluetooth: btusb: use skb_pull to avoid unsafe access in QCA dump handling



Use skb_pull() and skb_pull_data() to safely parse QCA dump packets.

This avoids direct pointer math on skb->data, which could lead to
invalid access if the packet is shorter than expected.

Fixes: 20981ce2 ("Bluetooth: btusb: Add WCN6855 devcoredump support")
Signed-off-by: default avatarEn-Wei Wu <en-wei.wu@canonical.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 7af8479d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment