In the Linux kernel, the following vulnerability has been resolved: Bluetooth: validate retained LE Set CIG Parameters command length hci_cc_le_set_cig_params() validates the controller response but not the parameters of the previously sent command. A short command can claim a large num_cis without containing the corresponding cis[] array. A complete successful response then makes the handler read beyond the command skb while looking up each CIS ID. KASAN reports: BUG: KASAN: slab-out-of-bounds in hci_cc_le_set_cig_params Read of size 1 hci_cc_le_set_cig_params hci_cmd_complete_evt hci_event_packet Obtain the retained parameter length and require both the fixed header and the complete CIS array before using the command data. The reproducer no longer triggers a KASAN report with this change.
https://git.kernel.org/stable/c/ed4d302af778b9e2ead28134a2196c09a4ad248a
https://git.kernel.org/stable/c/82625cebeac8a58d72e39dee80d5656c36d49cb3
https://git.kernel.org/stable/c/5e46649ea03af491739905bc7a3102ee523a434a
https://git.kernel.org/stable/c/3ecf360ec91ddc6c924d48b8b6e9fed35a2c9d20