summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorCatherine L <catherine.l@intel.com>2026-10-23 11:30:26 +0530
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-11-02 17:09:01 -0500
commitf92b7bca985205082c86140d0bd7c86c5be00efc (patch)
tree6ec160179a5193c90b13b5aa72d70ca9321ad69b /rust/kernel/alloc
parent19b4e5701712f74d005cc66a36374559e8dfd281 (diff)
Bluetooth: btintel: fix buffer over-read in fw payload
The firmware decoder cast fw_ptr + frag_len to struct hci_command_hdr and read cmd->plen before confirming the header and payload still fit in the remaining firmware buffer. Add explicit bounds checks before each dereference: 1. Reject if the command header is not fully contained in remain. 2. Reject if the full command including payload exceeds remain. 3. Log the offending fragment length and remaining size before returning -EINVAL. Fixes: fbbe83c52bc0d ("Bluetooth: btintel: Create common function for firmware download") Signed-off-by: Catherine L <catherine.l@intel.com> Tested-by: Kiran K <kiran.k@intel.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions