mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
esp_crt_check_bundle() read the 4-byte certificate header (name_len, key_len) via esp_crt_get_len() after only checking that the cert's start offset lies inside the bundle, so a crafted bundle whose first or last certificate starts within the final 3 bytes caused a transient out-of-bounds read of up to 3 bytes before the extent check rejected it. Require the whole header to lie inside the bundle before reading it.