kernel_samsung_a53x/net/bluetooth/bnep
Luiz Augusto von Dentz c4b47220b3 Bluetooth: bnep: Fix out-of-bound access
[ Upstream commit 0f0639b4d6f649338ce29c62da3ec0787fa08cd1 ]

This fixes attempting to access past ethhdr.h_source, although it seems
intentional to copy also the contents of h_proto this triggers
out-of-bound access problems with the likes of static analyzer, so this
instead just copy ETH_ALEN and then proceed to use put_unaligned to copy
h_proto separetely.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-01-19 15:04:04 +01:00
..
bnep.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c Bluetooth: bnep: Fix out-of-bound access 2025-01-19 15:04:04 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00