Commit Graph
45430 Commits
Author SHA1 Message Date
Mahavir Jain dec92ae69a Merge branch 'fix/ecdsa_ecc_hw_input_validation_v5.4' into 'release/v5.4'
Validate ECDSA signature range and harden ECC memory power-down (v5.4)

See merge request espressif/esp-idf!49444
2026-06-23 11:29:49 +05:30
Jiang Jiang Jian f2c35e2a13 Merge branch 'bugfix/mbedtls_rsa_base_reduction_hw_crt_v5.4' into 'release/v5.4'
fix(mbedlts): Enable hardware CRT for RSA-4096 via base reduction (v5.4)

See merge request espressif/esp-idf!49852
2026-06-23 13:57:28 +08:00
Mahavir Jain 8ea0981879 Merge branch 'fix/disable_secure_boot_v2_ecdsa_v5.4' into 'release/v5.4'
Fix/disable secure boot v2 ecdsa (v5.4)

See merge request espressif/esp-idf!49473
2026-06-23 10:49:36 +05:30
Jiang Jiang Jian d90e1fb1ed Merge branch 'fix-malloc_pm_lock_in_internal_mem_v5.4' into 'release/v5.4'
fix(esp_pm): malloc pm_lock in internal mem (v5.4)

See merge request espressif/esp-idf!49687
2026-06-23 11:02:26 +08:00
Island e8270cddc6 Merge branch 'fix/ble_mesh_bug_report_v2_v5.4' into 'release/v5.4'
fix(ble_mesh): Miscellaneous bugfixes according to our internal bug report (v2)

See merge request espressif/esp-idf!49318
2026-06-22 22:29:32 +08:00
Rahul Tank 0a4dbf5d72 Merge branch 'feat/throughput_l2cap_coc_v5.4' into 'release/v5.4'
Added l2cap_coc example for throughput (v5.4)

See merge request espressif/esp-idf!49741
2026-06-22 19:40:58 +05:30
Wang Meng Yang db87239eb7 Merge branch 'bugfix/ag_unknown_codec_vv5.4' into 'release/v5.4'
fix(bt): skip unknown codecs when parsing AT+BAC(v5.4)

See merge request espressif/esp-idf!49841
2026-06-22 17:02:59 +08:00
Astha Verma 94863a7628 fix(nimble): Added l2cap_coc throughput examples 2026-06-22 11:41:14 +05:30
harshal.patil 4e4cb4123f fix(esp_common/esp_fault): make ESP_FAULT_ASSERT survive optimization
ESP_FAULT_ASSERT(C) was silently deleted by the optimizer when C is a cached
flag/status already proven by a preceding `if (!C) return/goto`: the compiler
folds C to a constant and drops all three checks, removing the fault-injection
protection with no warning.
2026-06-22 11:17:50 +05:30
harshal.patil 8110949d88 fix(secure_boot): range-check ECDSA r,s in bootloader before ROM verify 2026-06-22 11:17:50 +05:30
harshal.patil ad8d86f725 fix(esp_common): Add esp_fault_internal.h for use by G0 components
In release/v5.x, esp_fault.h resides in the esp_hw_support (G1)
component, so the G0 components (hal, esp_rom) must not depend on it.
Copy its contents to esp_common as esp_fault_internal.h, keep
esp_fault.h as a compatibility wrapper around it, and switch the hal
and esp_rom ECDSA/ECC code to the internal header.
2026-06-22 11:17:50 +05:30
harshal.patil 551fad393d test(mbedtls): Add out-of-bounds test for the ECDSA hardware driver 2026-06-22 11:17:50 +05:30
harshal.patil d9a3c1f866 fix(esp_rom): Patch ets_ecdsa_verify() to include signature bounds check 2026-06-22 11:17:50 +05:30
harshal.patilandAshish Sharma abcbe87e2d fix(mbedtls): validate ECDSA signature range and harden ECC memory power-down
Co-Authored-By: Ashish Sharma <ashish.sharma@espressif.com>
2026-06-22 11:17:50 +05:30
Kapil Gupta 9ce6228b0f fix(mbedtls): Fix cached Rinv size mismatch under private exponent blinding
Prevent signature verification failures on targets that do not round hardware words
to 16-word boundaries (e.g. ESP32-S3, ESP32-C6, and ESP32-P4), where exponent blinding
can cause `num_words` to vary between calls, leading to reuse of an incorrectly sized
cached `Rinv`.
2026-06-22 09:01:18 +05:30
Kapil Gupta e9586fa03a fix(mbedtls): Enable hardware CRT for RSA-4096 via base reduction
Perform modulo reduction on the base before size checks to allow RSA-4096
CRT (2048-bit exponentiations) to use the hardware accelerator instead of
falling back to software. Fix input validation, negative zero sign issues,
and early memory cleanup paths in esp_mpi_exp_mod()
2026-06-22 09:01:18 +05:30
xiongweichao bc3456c66b fix(bt): skip unknown codecs when parsing AT+BAC
Peers may report custom or non-standard codec UUIDs in AT+BAC alongside
CVSD/mSBC. Returning BTA_AG_CODEC_NONE on the first unknown entry
discarded already-parsed standard codecs. Log unknown UUIDs and continue
parsing so negotiated capabilities still reflect supported codecs.
2026-06-22 11:13:42 +08:00
Island aa222369e7 Merge branch 'feat/ble-smp-multi-adv-static-random-address_v5.4' into 'release/v5.4'
feat(ble/bluedroid): Add BLE SMP support for multi-ADV with static random addresses (5.4)

See merge request espressif/esp-idf!49787
2026-06-22 10:35:26 +08:00
Island 241e8b8243 Merge branch 'docs/ble-uart-tutorial_v5.4' into 'release/v5.4'
docs(ble): added ESP-BLE-UART OpenCode Companion Guide (5.4)

See merge request espressif/esp-idf!49382
2026-06-22 10:34:39 +08:00
Aditya Patwardhan ef0b3dd4f9 change(secure_boot): mark ECDSA based Secure Boot V2 as insecure on affected SoCs
ECDSA based Secure Boot V2 is not functional for certain input vectors on
ESP32-C5/C61/H2/P4 and on the preview targets ESP32-H4/H21. RSA based Secure
Boot V2 is the recommended scheme where the SoC supports it. This issue will be
fixed in a future hardware ECO revision; more details will be shared through the
hardware errata document.

A new hidden Kconfig option SECURE_BOOT_V2_ECDSA_INSECURE marks the affected
mass-production SoCs (ESP32-C5/C61/H2/P4). On these SoCs, when hardware Secure
Boot V2 is enabled, the ECDSA (V2) signing scheme is no longer offered by
default; it must be turned on explicitly via SECURE_BOOT_V2_FORCE_ENABLE_ECDSA
under "Allow potentially insecure options" (CONFIG_SECURE_BOOT_INSECURE). App
signing without hardware Secure Boot is not affected. Note that ESP32-C61 has no
RSA based Secure Boot V2, so it has no Secure Boot scheme enabled by default.

The preview targets ESP32-H4 and ESP32-H21 mark ECDSA Secure Boot V2 as not
supported in their SoC capabilities instead of using the option above. As
ESP32-H4 has no other Secure Boot V2 scheme, Secure Boot is disabled entirely on
it; ESP32-H21 retains RSA based Secure Boot V2.

The security documentation keeps the ECDSA Secure Boot V2 content visible and
adds a warning describing the limitation (including that ECDSA Secure Boot V2 on
ESP32-C61 is not recommended for production). CI apps that exercise ECDSA Secure
Boot V2 on the affected SoCs set CONFIG_SECURE_BOOT_V2_FORCE_ENABLE_ECDSA
accordingly.
2026-06-19 15:26:43 +05:30
Rahul Tank 9f27743eba Merge branch 'bugfix/fix_log_performance_v5.4' into 'release/v5.4'
fix(nimble): Guard ble_hs_log_mbuf/flat_buf against non-DEBUG log level (v5.4)

See merge request espressif/esp-idf!49730
2026-06-18 21:39:42 +05:30
Zhang Hai Peng 68e37183f1 feat(ble/bluedroid): Add BLE SMP support for multi-ADV with static random addresses
(cherry picked from commit 7986e2faa8)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-18 10:24:49 +08:00
morris 43cc865e97 Merge branch 'bugfix/ppa_blend_yuv_hang_v5.4' into 'release/v5.4'
fix(ppa): fix hang if blend operation on a YUV format input background image (v5.4)

See merge request espressif/esp-idf!49737
2026-06-17 15:04:26 +08:00
Island 5908c0bbd0 Merge branch 'feat/format_bt_hci_to_btsnoop_v5.4' into 'release/v5.4'
refactor(bt): migrate bt_hci_to_btsnoop to esp-pylib (5.4)

See merge request espressif/esp-idf!49708
2026-06-17 14:43:54 +08:00
Mahavir Jain 18c8b5fada Merge branch 'fix/fix_sec2_client_possible_pub_length_truncation_v5.4' into 'release/v5.4'
fix(esp_prov): fixes security2 client possible public length truncation (v5.4)

See merge request espressif/esp-idf!49334
2026-06-17 10:08:05 +05:30
Song Ruo Jing 64a650958c fix(ppa): fix hang if blend operation on a YUV format input background image
Closes https://github.com/espressif/esp-idf/issues/18687
2026-06-16 19:36:04 +08:00
Rahul Tank 3637cfd331 fix(nimble): Gaurd ble_hs_log_mbuf/flat_buf against non-DEBUG log level 2026-06-16 16:29:09 +05:30
Ashish Sharma e08eb015e5 fix(esp_prov): fixes sec2 client possible public length truncation 2026-06-16 18:27:36 +08:00
wuzhenghui c0893ec548 fix(esp_pm): malloc pm_lock in internal mem 2026-06-16 17:56:27 +08:00
Zhang Hai Peng 62f6092adf refactor(bt): migrate bt_hci_to_btsnoop to esp-pylib
Replace argparse with rich-click and use esp_pylib.logger for
standardized console output and fatal error handling.


(cherry picked from commit 3a7896f2c5)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-16 15:34:04 +08:00
Island e155d443ad Merge branch 'fix/gattc-multi-app-notif-warning_v5.4' into 'release/v5.4'
fix(bt): Suppress gattc drop-notif warning for unregistered gatt_if (5.4)

See merge request espressif/esp-idf!49515
2026-06-15 15:08:20 +08:00
Wang Meng Yang c4f758d14d Merge branch 'bugfix/bbp_isses_v5.4' into 'release/v5.4'
Bugfix/bbp isses v5.4

See merge request espressif/esp-idf!49626
2026-06-15 12:57:48 +08:00
Island 2b89a2ec22 Merge branch 'bugfix/fix_bluedroid_ai_review_bugs_20260427_v5.4' into 'release/v5.4'
Bugfix/fix bluedroid ai review bugs 20260427 (5.4)

See merge request espressif/esp-idf!49539
2026-06-15 11:04:00 +08:00
Jin Cheng 852a3545d1 fix(bt/bluedroid): added buffer length check for OBEX APIs 2026-06-12 18:44:19 +08:00
Jin Cheng cc3478275e fix(bt/bluedroid): added buffer length check for HID Device data indication 2026-06-12 18:40:06 +08:00
Jin Cheng e7d62574f3 fix(bt/bluedroid): added validation for all SMP BR opcode lengths in smp_br_data_received 2026-06-12 18:40:06 +08:00
Jin Cheng 58b11e36bc fix(bt/bluedroid): fixed CTKD link key authentication downgrade in SC-Only mode 2026-06-12 18:40:06 +08:00
Jin Cheng d544e486c9 fix(bt/bluedroid): added buffer length check for HID host data indication 2026-06-12 18:40:06 +08:00
Jin Cheng 5731c63ece fix(bt/bluedroid): added buffer length check for L2CAP related functions 2026-06-12 18:40:06 +08:00
zhiweijian 9c0f5d878d fix(examples): improve bluedroid BLE example error handling
Check GAP/GATT event status, fix prepare-write buffer lifecycle, and
align example code with updated Bluedroid API behavior.
2026-06-12 10:27:08 +08:00
zhiweijian 433d5d03d8 refactor(examples): disable unused BT options in bluedroid BLE examples
Add sdkconfig.defaults to turn off unused Bluedroid host features per
example role (GATT client/server, SMP, legacy adv, etc.).
2026-06-12 10:26:52 +08:00
ShenWeilong 11b5ef5b3d fix(bluedroid): Set CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y in bluedroid host examples 2026-06-12 10:25:26 +08:00
Rahul Tank 8fb23a7886 Merge branch 'fix/add_remaining_vars_to_heap_v5.4' into 'release/v5.4'
fix(nimble): Change remaining vars from Static to Dynamic (v5.4)

See merge request espressif/esp-idf!49284
2026-06-11 17:30:25 +05:30
Sumeet Singh 1b468d2271 fix(nimble): Change remaining vars from Static to Dynamic (v5.4) 2026-06-11 13:35:52 +05:30
Wang Meng Yang 6c83a40d5b Merge branch 'bugfix/ci_avrc_abs_vol_example_v5.4' into 'release/v5.4'
fix: Fix the potential stack overflow issue in the Classic Bluetooth example (v5.4)

See merge request espressif/esp-idf!49406
2026-06-11 14:19:59 +08:00
morris 5ddae0f71a Merge branch 'fix/fix_gdma_crc_stuck_with_large_input_v5.4' into 'release/v5.4'
fix(gdma): fix crc stuck with large input (v5.4)

See merge request espressif/esp-idf!49363
2026-06-11 14:12:27 +08:00
Rahul Tank 70540f6015 Merge branch 'bugfix/bt4371_crash_v5.4' into 'release/v5.4'
fix(nimble): Deinit NimBLE stop event in host task (v5.4)

See merge request espressif/esp-idf!49299
2026-06-10 20:38:36 +05:30
Jiang Jiang Jian a4b0b4e396 Merge branch 'bugfix/scan_issue_wpa3_enterprise_v5.4' into 'release/v5.4'
fix(wifi): scan security validation and NAN timer fixes (Backport v5.4)

See merge request espressif/esp-idf!49447
2026-06-10 20:29:07 +08:00
Zhi Wei Jian 0e6cb5b53e fix(bt): fix BTC task and BLE mesh bluedroid adapter
(cherry picked from commit 678fb93245)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-10 19:53:49 +08:00
Zhi Wei Jian a70431cac3 fix(ble/bluedroid): fix HCI command and BTU robustness
(cherry picked from commit c9d13aaf64)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-10 19:53:49 +08:00