kernel_samsung_a53x/net/bluetooth
Luiz Augusto von Dentz decd968a51 Bluetooth: hci_core: Fix possible buffer overflow
[ Upstream commit 81137162bfaa7278785b24c1fd2e9e74f082e8e4 ]

struct hci_dev_info has a fixed size name[8] field so in the event that
hdev->name is bigger than that strcpy would attempt to write past its
size, so this fixes this problem by switching to use strscpy.

Fixes: dcda165706b9 ("Bluetooth: hci_core: Fix build warnings")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:48 +01:00
..
bnep Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cmtp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hidp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rfcomm Bluetooth: rfcomm: Fix null-ptr-deref in rfcomm_check_security 2024-11-19 08:44:36 +01:00
6lowpan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
a2mp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
a2mp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
af_bluetooth.c Bluetooth: af_bluetooth: Fix Use-After-Free in bt_sock_recvmsg 2024-11-18 12:12:02 +01:00
amp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecdh_helper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecdh_helper.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_conn.c Bluetooth: Fix bogus check for re-auth no supported with non-ssp 2024-11-18 12:12:38 +01:00
hci_core.c Bluetooth: hci_core: Fix possible buffer overflow 2024-11-19 08:44:48 +01:00
hci_debugfs.c Bluetooth: Fix atomicity violation in {min,max}_key_size_set 2024-11-18 12:12:47 +01:00
hci_debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_event.c Bluetooth: Remove superfluous call to hci_conn_check_pending() 2024-11-19 08:44:48 +01:00
hci_request.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_request.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_sock.c Bluetooth: hci_sock: Correctly bounds check and pad HCI_MON_NEW_INDEX name 2024-11-08 11:26:20 +01:00
hci_sysfs.c Bluetooth: Fix double free in hci_conn_cleanup 2024-11-18 11:43:12 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
l2cap_core.c Bluetooth: Enforce validation on max value of connection interval 2024-11-18 23:18:28 +01:00
l2cap_sock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
leds.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
leds.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mgmt.c Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LE 2024-11-18 12:12:02 +01:00
mgmt_config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mgmt_config.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mgmt_util.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mgmt_util.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msft.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msft.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
selftest.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
selftest.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smp.c Bluetooth: SMP: Fix crash when receiving new connection when debug is enabled 2024-11-18 12:12:04 +01:00
smp.h Bluetooth: use inclusive language in SMP 2024-11-18 12:12:01 +01:00