zephyr/subsys
Nirav Agrawal 5a8189bf2a bluetooth: host: gatt: fix null-ptr access if no include-svc userdata
- Issue: There is a bus-fault while accessing empty userdata structure
  pointer if application does not include any include service
  userdata instance (which consist of UUID list of included service)
  but service array has defined dummy entry for it assumed to be
  overridden by app during initial flow.
- For example, the issue has happened in case of tmap-central sample
 without "CONFIG_BT_OTS" support. there are some MCS attributes
 dependent on OTS service because of that
 "BT_GATT_INCLUDE_SERVICE(NULL)" entry is added as part of service
 definition. The given entry does not have userdata handler defined
 and is expecting to be overriden by the app if it will be included.
 During "bt_mcs_init()" call, "mcs.attrs[i].user_data" is not
 populated with any attr-instance pointer. This makes CPU to access
 null-address during reading local-database include-service attribute
 which was not provided by the app but the include-service entry was
 added to the db.
- Fix: Adding condition to check if user-data has null address, and
 returning back to avoid any hard-faults.

Signed-off-by: Nirav Agrawal <nirav.agrawal@nxp.com>
2025-06-25 15:51:24 -10:00
..
bindesc bindesc: fix typo in errno (ENONET->ENOENT) 2025-06-20 13:21:39 -04:00
bluetooth bluetooth: host: gatt: fix null-ptr access if no include-svc userdata 2025-06-25 15:51:24 -10:00
canbus
console
dap dap: add DAP backend USB 2025-03-11 18:54:24 +01:00
debug debug: Added CPU usage callback 2025-06-25 15:29:06 -10:00
demand_paging
dfu dfu: Add support for new MCUboot swap using offset mode 2025-02-10 19:05:25 +01:00
disk
dsp
emul
fb cfb: support non vtiled displays 2025-06-04 17:00:30 +02:00
fs fs/ext2: Missing error check in ext2_inode_remove_blocks 2025-06-17 16:06:21 +02:00
input input: Fix function signature of input_thread 2025-06-18 07:41:25 +02:00
ipc ipc: ipc_service: Parametrize workqueue stack size 2025-06-11 10:09:02 -07:00
jwt modules: mbedtls: make key exchange Kconfigs depend on, not select 2025-05-13 22:22:43 -04:00
llext llext: adopt SHELL_HELP macro 2025-06-21 18:34:08 +02:00
logging logging: use sys_clock_gettime() 2025-06-24 14:18:52 +02:00
lorawan lorawan: add link check support. 2025-04-17 17:23:12 +02:00
mem_mgmt
mgmt mgmt: mcumgr: remove redundant arguments for zephyr_library 2025-06-24 20:11:27 -10:00
modbus modbus: fix Apache-2.0 SPDX License identifier case 2025-06-11 10:23:46 -07:00
modem ubx: Refactor codebase in order to improve usability 2025-05-30 19:40:19 +02:00
net net: lib: wifi_credentials: Add support for Enterprise security 2025-06-25 15:31:29 -10:00
pm pm: device_runtime: fix unbalanced domain get/put 2025-06-24 09:14:20 +02:00
pmci pmci: mctp: Fix No SOURCES CMake warning 2025-04-23 17:55:19 +02:00
portability subsys/portability/cmsis_rtos_v2: Fix code compliance issues 2025-05-21 12:35:28 +02:00
profiling arch: Unify declaration of text region 2025-04-23 02:15:25 +02:00
random random: Correct Mutex define 2025-03-04 21:55:45 +01:00
retention
rtio rtio: Introduce OP_DELAY as a valid SQE operation 2025-04-30 09:48:16 +02:00
sd sd: fix incorrect error logging 2025-06-05 15:02:15 -05:00
secure_storage secure_storage: its: transform: improve expandability 2025-05-27 15:46:37 +02:00
sensing sensing: Fix static assert in get_sensor_by_dev() 2025-01-18 12:40:03 +01:00
settings settings: zms: add missing error check 2025-06-23 12:49:07 -07:00
shell net: mgmt: Convert the mgmt API to use 64-bit masks 2025-06-18 10:54:44 +02:00
sip_svc
stats
storage storage: flash_map: Add support for sub-partitions 2025-06-11 10:13:56 -07:00
task_wdt task_wdt: Add suspend and resume API functions 2025-04-02 13:05:14 +02:00
testsuite ztest: add missing break statement in ztest_test_pass function 2025-06-18 17:48:03 -04:00
timing
tracing subsys/tracing: do not select (RTT_)CONSOLE in SEGGER_SYSTEMVIEW 2025-06-24 20:04:07 -10:00
usb drivers: udc: disable SOF interrupt by default 2025-06-23 15:43:32 +01:00
zbus zbus: Improve consistency with runtime observers 2025-05-16 09:37:20 +02:00
CMakeLists.txt pmci: Move MCTP into the PMCI subsys 2025-04-21 12:43:33 +02:00
Kconfig pmci: Move MCTP into the PMCI subsys 2025-04-21 12:43:33 +02:00