Commit Graph

33484 Commits

Author SHA1 Message Date
morris
e2face00fa Merge branch 'fix/fix_parlio_valid_delay_max_value_v5.5' into 'release/v5.5'
fix(parlio): fix max valid delay value (v5.5)

See merge request espressif/esp-idf!49392
2026-06-11 14:08:53 +08:00
Mahavir Jain
8a1a4eae3a Merge branch 'fix/esp_tee_bbp_v5.5' into 'release/v5.5'
fix(esp_tee): Harden TEE secure services against REE manipulation (v5.5)

See merge request espressif/esp-idf!49370
2026-06-11 11:10:53 +05:30
morris
702f0d8ed4 Merge branch 'bugfix/gpspi_flash_freq_calc_v5.5' into 'release/v5.5'
fix(spi_flash): gpspi flash clock could reach higher frequency (v5.5)

See merge request espressif/esp-idf!49458
2026-06-10 23:10:32 +08:00
Rahul Tank
585e4157ec Merge branch 'bugfix/bt4371_crash_v5.5' into 'release/v5.5'
fix(nimble): Deinit NimBLE stop event in host task (v5.5)

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

See merge request espressif/esp-idf!49275
2026-06-10 15:38:50 +08:00
morris
0b816722db Merge branch 'fix/spi_buslock_multi_dev_acq_release_issue_v5.5' into 'release/v5.5'
fix(esp_hw_support): fixed spi buslock multi dev acq/release logic issue (v5.5)

See merge request espressif/esp-idf!49171
2026-06-10 10:13:03 +08:00
Song Ruo Jing
cec524c576 fix(spi_flash): gpspi flash clock could reach higher frequency 2026-06-09 22:08:32 +08:00
Rahul Tank
4b291b85b5 fix(nimble): Deinit NimBLE stop event in host task 2026-06-09 16:33:18 +05:30
Laukik Hase
b471faf803 fix(esp_tee): Harden the TEE secure services against REE manipulation
- `bootloader_flash_execute_command_common`: whitelist the flash command
   opcodes the REE actually uses; reject the rest
- `spi_flash_hal_* services`: a forged `host->driver` could hijack TEE
   control flow since the HAL dispatches through it, so swap
   `host->driver` to a TEE-rodata vtable around each HAL call
- Deny partition table and bootloader writes by default and permit
  bootloader writes only when explicitly enabled via
  `CONFIG_SPI_FLASH_DANGEROUS_WRITE_ALLOWED` option
- Protect the TEE-assigned interrupt pin configuration against REE
- Validate nested DS context pointers in start/finish_sign and bound
  the result copy to the SoC max signature size
- Fix the stack usage in service dispatcher argument parsing
2026-06-09 16:20:38 +05:30
Sarvesh Bodakhe
bc4db4f2a3 fix(wifi): scan security validation and NAN timer fixes
- Forbid TKIP cipher suites for WPA3-Enterprise scan results
- Use reason 210 (NO_AP_FOUND_W_COMPATIBLE_SECURITY) when an AP is
  found during a connecting scan but filtered out for incompatible
  security
- Stop NAN timers from re-arming after esp_wifi_stop
2026-06-09 11:52:04 +05:30
Mahavir Jain
74eedf49c1 Merge branch 'feat/fix_ws_server_httpd_queue_work_silent_drop_v5.5' into 'release/v5.5'
fix(esp_http_server): prevent silent message drop in httpd_queue_work (v5.5)

See merge request espressif/esp-idf!49354
2026-06-09 10:37:46 +05:30
Mahavir Jain
ffb831422b Merge branch 'fix/mbedtls_build_failure_x509_crt' into 'release/v5.5'
fix(mbedtls): fixes build failure with clang21

See merge request espressif/esp-idf!49326
2026-06-09 10:26:45 +05:30
Mahavir Jain
e4a7d55558 Merge branch 'contrib/github_pr_18641_v5.5' into 'release/v5.5'
fix(protocomm): prevent out-of-bounds write in console line buffer (GitHub PR) (v5.5)

See merge request espressif/esp-idf!49344
2026-06-08 20:20:44 +05:30
Chen Jichang
0cb56b975b fix(parlio): fix max valid delay value 2026-06-08 17:52:17 +08:00
Jiang Jiang Jian
407dfb44a7 Merge branch 'bugfix/acl_conn_state_error_v5.5' into 'release/v5.5'
fix: Fix missing handling for HCI_ERR_CONNECTION_EXISTS (v5.5)

See merge request espressif/esp-idf!49314
2026-06-08 13:56:00 +08:00
Rahul Tank
1576525dac Merge branch 'bugfix/fix_clang_compilation_issue_v5.5' into 'release/v5.5'
fix(nimble): Fix for clang compilation issues (v5.5)

See merge request espressif/esp-idf!49307
2026-06-06 09:25:36 +05:30
Mahavir Jain
c2dd042394 Merge branch 'fix/esp_tee_buffer_overflow_v5.5' into 'release/v5.5'
fix(esp_tee): fix buffer overflow (v5.5)

See merge request espressif/esp-idf!49304
2026-06-05 18:28:21 +05:30
Euripedes Rocha
1a89df8c49 Merge branch 'contrib/github_pr_18642_v5.5' into 'release/v5.5'
fix(eth): use stored base_increment when computing PTP addend (GitHub PR) (v5.5)

See merge request espressif/esp-idf!49105
2026-06-05 12:37:32 +02:00
Ashish Sharma
dedb02dd25 fix(esp_http_server): take ctrl_sock_semaphore on shutdown and async wake
httpd_stop() and httpd_req_async_handler_complete() both pushed
messages onto the control mbox via cs_send_to_ctrl_sock() without
reserving a slot in ctrl_sock_semaphore. Once the silent-drop fix
made the semaphore unconditional, the bypass became a real bug:
when the mbox is saturated by pending httpd_queue_work() items the
unguarded sendto() can return ENOBUFS, and even when it succeeds it
leaves the semaphore overstating free slots until the consumer
drains the message — a window during which a concurrent
httpd_queue_work() can take a slot but still find the mbox full.

Acquire the semaphore (portMAX_DELAY) before both sends and give it
back on send failure so the take/give invariant is preserved. The
httpd task is the consumer in both paths, so blocking is bounded
and deadlock-free. Reword the stale "no-op give on full" comment in
httpd_process_ctrl_msg() to reflect that only the recv-error path
relies on the cap behavior now.
2026-06-05 17:37:55 +08:00
Ashish Sharma
fcc140c11c fix(esp_http_server): prevent silent message drop in httpd_queue_work
Closes https://github.com/espressif/esp-idf/issues/18563
2026-06-05 17:37:55 +08:00
Andrii Anoshyn
c92dc5b035 fix(protocomm): prevent out-of-bounds write in console line buffer
The console transport read loop passed &linebuf[i] to uart_read_bytes()
before checking i < LINE_BUF_SIZE, so a line of LINE_BUF_SIZE or more
bytes without a terminator wrote one byte past the 256-byte linebuf
stack array.

Gate the read on the bounds check and reserve the final byte for the NUL
terminator (LINE_BUF_SIZE - 1), so the buffer handed to esp_console_run()
stays terminated even when an overlong line is truncated.

Closes https://github.com/espressif/esp-idf/issues/18638

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-05 17:33:37 +08:00
Ashish Sharma
99fc683322 fix(mbedtls): fixes build failure with clang21
Closes https://github.com/espressif/esp-idf/issues/18456
2026-06-05 16:49:29 +08:00
yangfeng
5d8aec60a5 fix: Fix missing handling for HCI_ERR_CONNECTION_EXISTS
- Closes https://github.com/espressif/esp-idf/issues/18562
2026-06-05 14:17:55 +08:00
Alexey Lapshin
610be5330f fix(esp_tee): fix buffer overflow 2026-06-05 12:25:35 +07:00
Rahul Tank
010b3a37b2 fix(nimble): Fix for clang compilation issues 2026-06-05 10:55:27 +05:30
Island
0364adce59 Merge branch 'fix/ble_funcs_reset_default_enabled_v5.5' into 'release/v5.5'
fix(bt): Add default BLE controller funcs reset enable (5.5)

See merge request espressif/esp-idf!49137
2026-06-05 12:13:32 +08:00
Jiang Jiang Jian
3d03a4035b Merge branch 'doc-fix_sleep_mode_doc_v5.5' into 'release/v5.5'
docs(system): update GPIO wakeup section for clarity on EXT0 and EXT1 support (v5.5)

See merge request espressif/esp-idf!49116
2026-06-05 10:54:09 +08:00
Island
4ed0e7cc00 Merge branch 'fix/fix_conn_recycle_assertion_at_halt_v5.5' into 'release/v5.5'
fix(ble): fix conn recycle assertion at halt on ESP32-C2 (5.5)

See merge request espressif/esp-idf!49237
2026-06-04 19:21:12 +08:00
wanckl
61e0dca2a0 fix(driver_spi): fixed esp32p4 gpspi with dma potential crash or stuck 2026-06-04 15:49:21 +08:00
morris
9143499717 Merge branch 'fix/jpeg_cve_fix_v5.5' into 'release/v5.5'
fix(jpeg_decoder): Add some strict check to avoid bad picture attack (backport v5.5)

See merge request espressif/esp-idf!49255
2026-06-04 15:47:07 +08:00
wanckl
26263a36a2 fix(esp_hw_support): fixed spi buslock multi dev acq/release logic issue 2026-06-04 15:28:04 +08:00
C.S.M
82c5c2dad4 fix(jpeg_decoder): Add some strict check to avoid bad picture attack 2026-06-04 11:43:26 +08:00
Jiang Jiang Jian
7ec71cefdd Merge branch 'bugfix/ft_igtk_installation_v5.5' into 'release/v5.5'
fix(esp_wifi): Correct igtk key installation in ft-psk mode (v5.5)

See merge request espressif/esp-idf!49210
2026-06-04 11:11:00 +08:00
morris
010a6f5dd6 Merge branch 'test/enable_isp_test_esp32p4_rev1_v5.5' into 'release/v5.5'
fix(isp): enable esp32p4_rev1 unit test (v5.5)

See merge request espressif/esp-idf!49231
2026-06-04 09:57:26 +08:00
Scramble Tools
9bf5b6eed5 fix(esp_eth): use stored base_increment when computing PTP addend
The addend in `emac_hal_ptp_start()` was derived from the floating-point
`config->ptp_req_accuracy_ns` instead of the integer `base_increment`
register that actually drives the sub-second update. The cast to
`uint8_t` loses the fractional part, so the un-corrected addend leaves
the PTP clock running off-rate.

Example: with a 40 MHz XTAL and the default `req_accuracy_ns = 40`,
`base_increment` rounds 85.899 up to 86, leaving the clock +1170 ppm
fast — well outside the IEEE 802.1AS neighborRateRatio limit (~±200
ppm), so strict-1AS bridges refuse asCapable.

Compute the addend from the stored `base_increment` for both rollover
modes: `addend = 2^32 * clk_period_ns / increment_ns`.

Measured on ESP32-P4: neighborRateRatio drops from +1147.5 ppm to
+4.2 ppm, and asCapable is granted.

Co-authored-by: Ondrej Kosta <panzer412@gmail.com>
2026-06-03 14:17:02 +02:00
morris
6a3dab1b4b Merge branch 'fix/fix_mipi_lcd_dirty_buffer_v5.5' into 'release/v5.5'
feat(lcd): support buffer switch interrupt (v5.5)

See merge request espressif/esp-idf!49102
2026-06-03 18:43:36 +08:00
Jin Chen
00ae58b047 fix(ble): fix conn recycle assertion at halt on ESP32-C2
(cherry picked from commit 5483aeedb6)

Co-authored-by: cjin <jinchen@espressif.com>
2026-06-03 17:54:07 +08:00
Chen Chen
504ccd8f46 fix(isp): fix ccm test case for esp32p4-rev1 2026-06-03 16:23:28 +08:00
morris
1fd2e0a7a3 fix(isp): enable esp32p4_rev1 unit test 2026-06-03 16:23:28 +08:00
Rahul Tank
270673d835 Merge branch 'bugfix/fix_security_proto_nimble_v5.5' into 'release/v5.5'
fix(protocomm): harden nimble/bluedroid transport size handling (v5.5)

See merge request espressif/esp-idf!49181
2026-06-03 11:37:41 +05:30
Kapil Gupta
0268c8ee50 fix(esp_wifi): Correct igtk key installation in ft 2026-06-03 08:56:33 +05:30
wuzhenghui
2ea0d4639d docs(system): update GPIO wakeup section for clarity on EXT0 and EXT1 support
backport !47362
2026-06-03 10:57:54 +08:00
Jiang Jiang Jian
c2fd5ea019 Merge branch 'fix-fix_rtc_spinlock_sleep_dead_lock_v5.5' into 'release/v5.5'
fix(esp_hw_support): fix possible dead lock in deepsleep process (v5.5)

See merge request espressif/esp-idf!49176
2026-06-03 10:52:05 +08:00
Jiang Jiang Jian
5c36eef57e Merge branch 'fix/isp_iram_safe_typo_v5.5' into 'release/v5.5'
fix(isp): fix typo in CONFIG_ISP_ISR_IRAM_SAFE macro reference (v5.5)

See merge request espressif/esp-idf!49069
2026-06-03 10:51:12 +08:00
Jiang Jiang Jian
c987c21dbc Merge branch 'bugfix/esp_idf_ulp_wakeupcauses_record_v5.5' into 'release/v5.5'
fix(ulp): record wakeup causes before lp core request sleep v5.5

See merge request espressif/esp-idf!49121
2026-06-03 10:51:04 +08:00
Jiang Jiang Jian
bb45b5725a Merge branch 'fix/https-redirect-downgrade_v5.5' into 'release/v5.5'
fix(esp_http_client): block HTTPS-to-HTTP redirect downgrade (v5.5)

See merge request espressif/esp-idf!48980
2026-06-03 10:38:18 +08:00
Jiang Jiang Jian
adcccedd92 Merge branch 'change/esp_idf_ulp_add_int_api_5.5' into 'release/v5.5'
change(ulp): add lp periph intr enable apis v5.5

See merge request espressif/esp-idf!49144
2026-06-03 10:37:39 +08:00
Jiang Jiang Jian
d5a918aefb Merge branch 'fix/fix_put_phy_init_bin_into_partiiton_when_embed_v5.5' into 'release/v5.5'
fix(phy): fix still put multiple phy init date bin into flash when...(backport v5.5)

See merge request espressif/esp-idf!49149
2026-06-03 10:37:21 +08:00
Jiang Jiang Jian
faa3edd8b2 Merge branch 'fix-fix_ub_in_gpio_wakeup_setting_v5.5' into 'release/v5.5'
fix(esp_hw_support): add validation for gpio_pin_mask (v5.5)

See merge request espressif/esp-idf!49107
2026-06-03 10:35:23 +08:00
Jiang Jiang Jian
e51e13b518 Merge branch 'feat/ble-log-iram-optim_v5.5' into 'release/v5.5'
opt(bt): Move SPI Tx Callback to Flash When SPI ISR IN IRAM Disabled (5.5)

See merge request espressif/esp-idf!48923
2026-06-03 10:31:17 +08:00