Files
linux/drivers/bluetooth
Kees Cook 7b8526bb48 Bluetooth: btintel: Check dsbr size from EFI variable
[ Upstream commit 3aa1dc3c90 ]

Since the size of struct btintel_dsbr is already known, we can just
start there instead of querying the EFI variable size. If the final
result doesn't match what we expect also fail. This fixes a stack buffer
overflow when the EFI variable is larger than struct btintel_dsbr.

Reported-by: zepta <z3ptaa@gmail.com>
Closes: https://lore.kernel.org/all/CAPBS6KoaWV9=dtjTESZiU6KK__OZX0KpDk-=JEH8jCHFLUYv3Q@mail.gmail.com
Fixes: eb9e749c01 ("Bluetooth: btintel: Allow configuring drive strength of BRI")
Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-19 15:39:59 +02:00
..
2025-03-25 12:31:27 -04:00
2025-03-25 12:42:35 -04:00
2017-06-16 11:48:40 -04:00
2024-11-14 15:28:07 -05:00