zephyr/subsys/bluetooth/host
Mateusz Kapala 15bd8b256f bluetooth: host: Fix NULL pointer dereference in bt_conn_auth_cb_overlay
There is a check in bt_conn_auth_cb_overlay function which validates
if content of the callback structure is correct, but there is no
NULL-check on the structure pointer itself, which could result in
NULL pointer dereference.

It should be possible to set the callback structure pointer to `NULL`
using bt_conn_auth_cb_overlay function if the application requires
ex. Just Works pairing for one Bluetooth identity and global
callbacks are configured for advanced pairing scheme (like Passkey
Display) for other Bluetooth identity.

Signed-off-by: Mateusz Kapala <mateusz.kapala@nordicsemi.no>
2023-05-19 09:40:21 +02:00
..
a2dp_internal.h
a2dp.c
addr_internal.h BluetootH: Host: add helper functions for resolved addresses 2023-01-12 13:31:12 +01:00
addr.c BluetootH: Host: add helper functions for resolved addresses 2023-01-12 13:31:12 +01:00
adv.c Bluetooth: Use bt_addr_eq 2023-05-09 09:23:52 +02:00
adv.h
aes_ccm.c
at.c bluetooth: fix armclang compiler warnings with is*() functions 2023-03-31 09:19:16 +02:00
at.h
att_internal.h Bluetooth: ATT: Split BT_ATT_MTU for UATT/EATT 2023-04-24 13:31:18 +02:00
att.c Bluetooth: host: att: clear ATT_PENDING_SENT 2023-04-26 13:53:08 +02:00
avdtp_internal.h
avdtp.c
br.c Bluetooth: Use bt_addr_eq 2023-05-09 09:23:52 +02:00
br.h
buf.c Bluetooth: Fix clearing sent_cmd pointer when allocating event buffer 2023-04-11 16:57:37 +02:00
CMakeLists.txt Bluetooth: Move bt_data_parse to dedicated source file 2023-03-16 11:46:36 +01:00
conn_internal.h Bluetooth: host: don't fragment ISO if len <= MTU 2023-05-03 10:02:44 +02:00
conn.c bluetooth: host: Fix NULL pointer dereference in bt_conn_auth_cb_overlay 2023-05-19 09:40:21 +02:00
crypto.c
crypto.h
data.c Bluetooth: Host: Move new bt_data functions to data.c 2023-03-21 18:17:52 +00:00
direction_internal.h
direction.c Bluetooth: host: df: Add missing bt_conn_unref in error cases 2023-03-23 08:56:07 +00:00
ecc.c tests: bluetooth: host: Add UT for bt_pub_key_gen() 2023-03-22 09:33:42 +01:00
ecc.h
gatt_internal.h
gatt.c Bluetooth: host: Fix dangling reference in service changed 2023-05-12 09:55:53 +03:00
hci_common.c
hci_core.c Bluetooth: Use bt_addr_eq 2023-05-09 09:23:52 +02:00
hci_core.h Bluetooth: id: Keep RPA as bt_addr_t 2023-05-12 10:55:50 +03:00
hci_ecc.c
hci_ecc.h
hci_raw_internal.h
hci_raw.c Bluetooth: hci_raw: Fix a LOG_ERR message 2023-04-28 10:33:18 -05:00
hfp_hf.c
hfp_internal.h
id.c Bluetooth: id: Keep RPA as bt_addr_t 2023-05-12 10:55:50 +03:00
id.h
iso_internal.h Bluetooth: audio: Fix declaring conn type object in header file 2023-03-28 15:07:09 +02:00
iso.c Bluetooth: iso: use kconfig for userdata size 2023-05-03 10:02:44 +02:00
Kconfig Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
Kconfig.gatt Bluetooth: Logging: Move all logging symbols together 2023-03-28 10:33:24 +02:00
Kconfig.l2cap Bluetooth: host: l2cap: trigger SDUs that get lost in limbo 2023-04-26 13:53:08 +02:00
keys_br.c Bluetooth: Use bt_addr_eq 2023-05-09 09:23:52 +02:00
keys.c Bluetooth: Use bt_addr_eq 2023-05-09 09:23:52 +02:00
keys.h
l2cap_br.c Bluetooth: L2CAP: Fix use of 'br_chan' 2023-02-20 09:53:26 +01:00
l2cap_internal.h
l2cap.c Bluetooth: host: l2cap: send only 1 credit 2023-04-26 13:53:08 +02:00
long_wq.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
long_wq.h
monitor.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
monitor.h
rfcomm_internal.h
rfcomm.c
scan.c Bluetooth: Host: Fix double conversion of phy 2023-05-15 13:10:29 +02:00
scan.h
sdp_internal.h
sdp.c
settings.c
settings.h
smp_null.c
smp.c Bluetooth: Host: Fix warning from the logging subsystem 2023-05-09 14:28:49 +02:00
smp.h Bluetooth: Host: SMP Keypress Notification 2023-03-13 14:04:25 +01:00
ssp.c
ssp.h
testing.c Bluetooth: Mesh: Add Model Receive testing callback 2023-03-06 13:52:15 +01:00
testing.h Bluetooth: Mesh: Add Model Receive testing callback 2023-03-06 13:52:15 +01:00
uuid.c