]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: eir: Fix possible crashes on eir_create_adv_data
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 10 Jun 2025 14:14:35 +0000 (10:14 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 11 Jun 2025 20:29:22 +0000 (16:29 -0400)
commit47c03902269aff377f959dc3fd94a9733aa31d6e
tree0f70e4853dfb4b476be1857c8f63ddfa1f332264
parent5725bc608252050ed8a4d47d59225b7dd73474c8
Bluetooth: eir: Fix possible crashes on eir_create_adv_data

eir_create_adv_data may attempt to add EIR_FLAGS and EIR_TX_POWER
without checking if that would fit.

Link: https://github.com/bluez/bluez/issues/1117#issuecomment-2958244066
Fixes: 01ce70b0a274 ("Bluetooth: eir: Move EIR/Adv Data functions to its own file")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/eir.c
net/bluetooth/eir.h
net/bluetooth/hci_sync.c