Commit Graph

37489 Commits

Author SHA1 Message Date
Wang Meng Yang
607f6d09ed Merge branch 'feat/support_bluedroid_le_coc_and_eatt' into 'master'
feat(ble/bluedroid): Support bluedroid LE COC and EATT features

See merge request espressif/esp-idf!50171
2026-07-10 10:14:44 +08:00
Renz Christian Bagaporo
907f4a66d9 Merge branch 'fix/lp_core_gpio_wakeup' into 'master'
fix(ulp): wake pin wakes ESP32-P4 from deep sleep on P4

Closes IDF-15823

See merge request espressif/esp-idf!49855
2026-07-10 07:44:36 +08:00
Euripedes Rocha
4e5f081396 Merge branch 'fix/sec-1162-1189-1190-null-checks' into 'master'
fix(esp_netif): harden NULL and OOM handling in netif APIs (SEC-1162, SEC-1189, SEC-1190)

See merge request espressif/esp-idf!50306
2026-07-09 17:01:20 +02:00
morris
03acfa1051 Merge branch 'refactor/move_regdma_entry_config_to_driver_layer_spi' into 'master'
refactor(spi): move sleep retention config into driver layer

See merge request espressif/esp-idf!50499
2026-07-09 22:48:37 +08:00
Martin Vychodil
f0887bcf87 Merge branch 'contrib/github_pr_18772' into 'master'
docs(nvs): remove unused return code (GitHub PR)

Closes IDFGH-17878

See merge request espressif/esp-idf!50560
2026-07-09 21:14:32 +08:00
Wang Meng Yang
84bb8fc207 Merge branch 'bugfix/avrc_ca_attr_id_check' into 'master'
fix(bt): Fix the validation of AVRCP metadata attr_id in handle_rc_attributes_rsp

See merge request espressif/esp-idf!50546
2026-07-09 19:42:43 +08:00
Wu Zheng Hui
d26f5682cf Merge branch 'change/change_regdma_malloc_caps' into 'master'
change(heap): reserve DMA pool with low priority MALLOC_CAP_DEFAULT cap

See merge request espressif/esp-idf!50255
2026-07-09 19:32:56 +08:00
Hu Rui
6e8f9119f1 Merge branch 'fix/uhci_rx_fsm' into 'master'
fix(uhci): rx fsm race condition

Closes IDFGH-17845

See merge request espressif/esp-idf!50498
2026-07-09 18:52:49 +08:00
Euripedes Rocha Filho
29aa464bec fix(esp_netif): harden NULL and OOM handling in netif APIs
Add a malloc NULL check in esp_netif_br_glue_add_port and stop freeing
the existing port list when realloc fails. Validate the mac argument in
esp_netif_set_mac and config->base in esp_netif_new_api before use.
2026-07-09 12:42:49 +02:00
Jiang Jiang Jian
74005f29cf Merge branch 'fix/support_two_MAC_only_esp32s31' into 'master'
fix(esp32s31): restrict UNIVERSAL_MAC_ADDRESSES to Two

See merge request espressif/esp-idf!50389
2026-07-09 17:40:40 +08:00
Jiang Jiang Jian
12dd02396b Merge branch 'bugfix/change_pvt_timer_target_param' into 'master'
feat(pvt): change pvt timer target & limit on master

See merge request espressif/esp-idf!50472
2026-07-09 16:53:01 +08:00
morris
6b29697fc8 Merge branch 'fix/fix_i2s_i80_color_size_check' into 'master'
fix(lcd): add color size check for i80 and boundary check for rgb

Closes SEC-1141 and SEC-1150

See merge request espressif/esp-idf!50201
2026-07-09 15:16:01 +08:00
yangfeng
156ea55ed1 fix(bt): Fix the validation of AVRCP metadata attr_id in handle_rc_attributes_rsp 2026-07-09 14:52:09 +08:00
Jiang Jiang Jian
a7883b90c5 Merge branch 'fix/blacklist_flag_correction' into 'master'
Correct blacklist flag

Closes WIFIBUG-1959

See merge request espressif/esp-idf!49830
2026-07-09 14:44:42 +08:00
morris
583c7414a0 Merge branch 'feat/sec_esp_drivers' into 'master'
fix(drivers): harden multiple peripheral drivers against local DoS and memory corruption

Closes SEC-1183, SEC-1181, SEC-1191, SEC-1120, SEC-1154, SEC-1138, SEC-1136, and SEC-1140

See merge request espressif/esp-idf!50203
2026-07-09 14:21:11 +08:00
zhiweijian
83f0831c53 feat(ble/bluedroid): Support bluedroid LE COC and EATT features 2026-07-09 14:03:01 +08:00
morris
13b23bcdb3 refactor(spi): move sleep retention config into driver layer
Move per-target GPSPI regdma retention descriptors out of esp_hal_gpspi
and
into esp_driver_spi so the driver owns its backup scope and restore
sequence.
2026-07-09 11:53:44 +08:00
Xu Si Yu
ad931960dd fix(openthread): disable software retx security in spinel-only config 2026-07-09 11:27:57 +08:00
Hu Rui
026313df81 fix(uhci): rx fsm race condition
Closes https://github.com/espressif/esp-idf/issues/18746
2026-07-09 10:58:47 +08:00
morris
b99459931a fix(sdspi): reject oversized pre-read data before block receive
Guard start_command_read_blocks against cards that place TOKEN_BLOCK_START so early that extra_data_size exceeds the bytes expected on the current iteration. Without this check, the unsigned subtraction for will_receive underflows and propagates into memset, SPI transaction length, and memcpy counts against the fixed 516-byte block buffer.
2026-07-09 10:27:01 +08:00
morris
498f9aa96a fix(spi_slave): free DMA-private buffers when transaction queue is full
spi_slave_queue_trans calls spi_slave_setup_priv_trans to allocate
DMA buffers, then tries xQueueSend. If the queue is full the function
returns ESP_ERR_TIMEOUT without freeing those buffers, leaking up to
2 * max_transfer_sz per failed call. Call spi_slave_uninstall_priv_trans
before returning the timeout.
2026-07-09 10:27:01 +08:00
morris
e86fcc8b48 fix(jpeg): release platform mutex on semaphore/pm-lock allocation failure
jpeg_acquire_codec_handle acquires s_jpeg_platform.mutex at entry
but two ESP_RETURN_ON_* macros (semaphore-create and PM-lock-create
failure) return without releasing it. Replace with ESP_GOTO_ON_*
that jumps to a cleanup label which frees partial resources, NULLs
the codec pointer, and releases the mutex.
2026-07-09 10:27:01 +08:00
morris
73031f7280 fix(i2c): release platform mutex on intr/pm_lock delete failure
ESP_RETURN_ON_ERROR inside the s_i2c_platform.mutex critical section
returns without releasing the mutex, permanently blocking all I2C
bus operations. Replace with ESP_GOTO_ON_ERROR that jumps to a
cleanup label releasing the mutex before return.
2026-07-09 10:27:01 +08:00
morris
56f56b887b fix(csi): move csi_fsm init before resource allocation to fix err-path leak
CSI_FSM_INIT is 1, but the controller struct is zero-allocated.
Any failure before the former csi_fsm assignment (near the end of
esp_cam_new_csi_ctlr) jumped to err: which called s_del_csi_ctlr.
That function bailed out immediately because csi_fsm == 0, leaking
the claimed slot, queue, bridge, DMA channel, PM lock, and backup
buffer. Move csi_fsm = CSI_FSM_INIT right after a successful claim
so the err: path properly tears down all allocated resources.
2026-07-09 10:27:01 +08:00
morris
944c74dbda fix(adc): add missing input validation for channel and ret_handle
- adc_cali_curve_fitting: validate config->chan in check_valid() to
  prevent OOB access into s_adc_cali_chan_compens compensation table
- adc_filter: make s_adc_filter_free idempotent on !UNIT_BINDED SoCs
  to prevent double-free on repeated adc_del_continuous_iir_filter
- adc_cali_line_fitting(esp32): fix config && config typo to
  config && ret_handle, preventing NULL-pointer dereference
2026-07-09 10:27:01 +08:00
Zhang Wen Xu
c828d0d709 Merge branch 'feat/update_openthread_submodule_and_br_lib_20260624' into 'master'
feat(openthread): update openthread submodule

Closes IDFCI-2648

See merge request espressif/esp-idf!49974
2026-07-08 12:36:23 +00:00
tarun.kumar
f614b0343c fix(wifi) : Correct blacklist flag
- Fixes state desync where global blacklist was cleared but blacklist bss flag was true causing rejection of correct AP as well.
2026-07-08 15:22:50 +05:30
morris
d5c193167a Merge branch 'refactor/move_regdma_entry_config_to_driver_layer_jpeg' into 'master'
refactor(jpeg): move sleep retention config into driver layer

See merge request espressif/esp-idf!50465
2026-07-08 17:28:06 +08:00
C.S.M
3359f647c5 Merge branch 'feat/h21_temperature_sensor' into 'master'
feat(temperature_sensor): Add temperature sensor support for esp32h21

Closes IDF-11624 and IDF-11625

See merge request espressif/esp-idf!50419
2026-07-08 17:02:58 +08:00
Song Ruo Jing
056590f7a4 Merge branch 'feature/uart_rs485_half_duplex_collision_detection' into 'master'
feat(uart): add collision detection test cases for RS485

Closes IDFGH-15463

See merge request espressif/esp-idf!50244
2026-07-08 17:00:00 +08:00
Rahul Tank
63943f4d8b Merge branch 'bugfix/ai_reviewer_nimble_1.6' into 'master'
fix(nimble): Fixes for AI reported issues

See merge request espressif/esp-idf!50012
2026-07-08 13:55:54 +05:30
Jack
811c64c17c docs(esp_hw_support): fix IEEE 802.15.4 spelling and EUI-64 byte-range notation
Correct "802.154" to "802.15.4" and change the EUI-64 derivation notation
from base_mac[0:3]/base_mac[3:6] to the inclusive base_mac[0:2]/base_mac[3:5]
in the esp32h2/esp32h21/esp32h4 Kconfig.mac help text and the EN/zh_CN
misc_system_api docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 15:13:52 +08:00
Wang Meng Yang
0a3ccbc151 Merge branch 'bugfix/smp_sec_flags' into 'master'
fix(bt/bluedroid): fixed several security issues from NVIDIA

Closes SEC-084, SEC-713, SEC-1143, SEC-1153, SEC-1164, and SEC-1169

See merge request espressif/esp-idf!50200
2026-07-08 12:41:25 +08:00
Song Ruo Jing
4a94a5a396 fix(stdio): add console input ability when selects ESP_CONSOLE_UART_CUSTOM_NUM_1 2026-07-08 12:08:46 +08:00
Song Ruo Jing
ef635c533b feat(uart): add collision detection test cases for RS485
Related https://github.com/espressif/esp-idf/issues/16101
2026-07-08 12:08:40 +08:00
Wang Meng Yang
7bfe369f86 Merge branch 'bugfix/bug_bounty_av' into 'master'
fix(bt/bluedroid): Fix bug bounty issues about A/V from NVIDIA

Closes SEC-1186 and SEC-1187

See merge request espressif/esp-idf!50318
2026-07-08 11:18:23 +08:00
yanzihan@espressif.com
259ecfdbeb feat(pvt): change pvt timer target & limit 2026-07-08 11:15:35 +08:00
Marius Vikhammer
ff88ad88a9 Merge branch 'test/linux-full-component-build' into 'master'
test: add Linux full component build app

See merge request espressif/esp-idf!50377
2026-07-08 10:13:12 +08:00
Martin Vychodil
5d8acd46e9 Merge branch 'fix/fatfs_6682_fat32_overflow' into 'master'
fix(storage/fatfs): fix FAT32 mount integer overflow (CVE-2026-6682)

See merge request espressif/esp-idf!50448
2026-07-08 05:53:45 +08:00
Tomáš Rohlínek
6a20a83421 fix(storage/fatfs): fix FAT32 mount integer overflow (CVE-2026-6682)
The initial CVE-2026-6682 fix (merged in !50362) hardened the exFAT
mount path, but the CVE as reported by runZero is a FAT32 defect in
mount_volume() and is reachable in ESP-IDF's default configuration
(exFAT and 64-bit LBA disabled). This corrects the fix.

Root cause: `fasize *= fs->n_fats` is a DWORD multiply with no overflow
guard. A crafted BPB_FATSz32 such as 0x80000001 with NumFATs=2 wraps
`fasize` to 0x00000002. The wrapped (too-small) FAT size then places
`fs->database` inside the FAT region, so a forged directory entry in the
overlapping sector yields an attacker-controlled `finfo.fsize`. Any
caller that uses that size as a read length overflows its buffer with
attacker-controlled bytes (CVSS 7.6, path to RCE). The later
`fs->fsize < szbfat` check does not catch this because it compares the
un-doubled single-FAT size, which is still large.

Fix: reject a per-FAT size that overflows DWORD when multiplied by the
FAT count, and reject a reserved+FAT+root system-area size that overflows
DWORD, before either value is used to derive the data-area base.

The previous exFAT cluster-heap/bitmap 64-bit promotions are retained as
defense-in-depth and their comments relabeled accordingly (they are not
CVE-2026-6682). The SBOM cve-exclude-list reason is updated to describe
the FAT32 overflow and its fix.
2026-07-07 16:36:30 +02:00
Li Shuai
f70ea602fe Merge branch 'feat/idfgh-17859' into 'master'
add kconfig option for REGDMA sleep clock ICG

Closes IDFGH-17859

See merge request espressif/esp-idf!50228
2026-07-07 21:50:10 +08:00
Wang Meng Yang
78fea40c2e Merge branch 'fix/tx_power_validate' into 'master'
fix(bt): validate BR/EDR TX power against chip-supported range

See merge request espressif/esp-idf!50072
2026-07-07 20:38:45 +08:00
Jiang Jiang Jian
1605930498 Merge branch 'bugfix/fix_offchan_rx_fail_when_spiram_enabled' into 'master'
fix(wifi): fixed the offchan tx fail when SPIRAM_TRY_ALLOCATE_WIFI_LWIP enabled

Closes WIFI-7402

See merge request espressif/esp-idf!50194
2026-07-07 19:34:43 +08:00
morris
47f4e5d412 refactor(jpeg): move sleep retention config into driver layer
Move per-target JPEG regdma retention descriptors out of esp_hal_jpeg
and into
esp_driver_jpeg so the codec driver owns its backup scope and restore
flow.
2026-07-07 19:03:05 +08:00
Rahul Tank
6d835d5226 fix(nimble): Fixes for AI reported issues 2026-07-07 15:45:24 +05:30
Mahavir Jain
05250d7dd1 Merge branch 'feat/enable_cross_signed_cert_suppport_default' into 'master'
feat(mbedtls): enable cross signed certificate verification support by default

See merge request espressif/esp-idf!49905
2026-07-07 14:47:37 +05:30
Hu Rui
484f5f3426 Merge branch 'feat/usj_custom_intr_prior' into 'master'
feat(usj): support set interrupt priority

Closes IDF-7961

See merge request espressif/esp-idf!50376
2026-07-07 16:35:06 +08:00
chenqingqing
9fbebf293d fix(bt): clarify BR/EDR TX power behavior in menuconfig help 2026-07-07 15:39:26 +08:00
zhangyanjiao
cf695709f1 fix(wifi): fixed the offchan tx fail when SPIRAM_TRY_ALLOCATE_WIFI_LWIP enabled 2026-07-07 15:31:00 +08:00
C.S.M
fff527fbd7 feat(temperature_sensor): Add temperature sensor support for esp32h21 2026-07-07 15:05:39 +08:00