#48: Mbed TLS Has New Maintainers
Back in August 2024 I wrote about what the Mbed announcement meant for your ESP32 projects. Mbed OS was going away, but Mbed TLS was fine. This fall Mbed TLS had a scare of its own. Last week it got good news, and Espressif is part of it.
If your product does TLS through IDF, this is your TLS stack. ESP-TLS “operates using MbedTLS as the default SSL/TLS library” according to the ESP-TLS docs. This includes your OTA updates as well.
What Happened
In October the Mbed TLS team announced that the current maintainers would stop working on the TLS and X.509 libraries in April 2027. They will keep maintaining TF-PSA-Crypto. Without new maintainers, “security incident response, security fixes, and releases will cease from April 2027.”
On November 19 they followed up. Linaro takes over maintenance and stewardship, and Mbed TLS stays under TrustedFirmware.org. From the post:
Linaro, NXP and Espressif have committed engineering resources to help ensure the continued maintenance of Mbed TLS beyond April 2027.
TrustedFirmware.org made it official on November 25.
Two details in Linaro’s announcement matter for planning. Linaro takes the Mbed TLS 4.x branches, starting with the 4.1 LTS. The baseline commitment prioritizes “monitoring and handling high-severity vulnerabilities in Mbed TLS 4.1 LTS.” The mailing list post calls this “a minimum level of maintenance” and says more help is needed for new features and reviewing contributions.
Why Espressif Matters
IDF doesn’t pull Mbed TLS straight from upstream. The components/mbedtls/mbedtls submodule points at Espressif’s fork, where they carry their own patches on top of each release. Espressif engineers already work in this code. Now some of them will help maintain it upstream. This is useful and better than Espressif waiting on someone else to fix a TLS bug in the stack your product ships.
It doesn’t change how you get fixes, though. You get Mbed TLS through IDF, so a fix reaches your devices only when you update IDF and ship that firmware.
What to Watch
March 28, 2027. The 3.6.8 release notes say “the official support window for the 3.6.x branch of Mbed TLS ends on 28 March 2027.” That matters because current IDF v5.x releases ship 3.6. I checked the submodule at each tag: v5.3.6, v5.4.5, and v5.5.6 ship 3.6.7, while v6.0.3 and v6.1.1 ship 4.1.1. The 4.1 LTS is supported until March 2029. IDF v5.5 is supported through January 2028, and Linaro’s commitment covers 4.x. I haven’t seen Espressif say how v5.x will get Mbed TLS fixes after March. If you’re staying on v5.x, watch for that.
April 2027. That’s the handover. After it, the new team is on its own.
Your IDF’s Mbed TLS version. Look at MBEDTLS_VERSION_STRING in components/mbedtls/mbedtls/include/mbedtls/build_info.h in your IDF checkout. Upstream released 3.6.8 and 4.1.2 on November 16 with a batch of security fixes. No tagged IDF release had them when I checked on December 1. release/v5.4 has already moved to 3.6.8. The other release branches were still on 3.6.7 or 4.1.1.
Advisories. Bookmark the Mbed TLS security advisories, Espressif’s advisories, and the ESP-IDF Security Dashboard. As I covered in that post, read each one against your config before you panic.
My Take
This is good news. Mbed TLS keeps getting security fixes, and the company whose fork you already ship is helping write them. However, if you are running an old version of the stack, it’s time to create a plan to update to a newer, supported version that gives you long-term guarantees on security patches. This is especially important in this wild world of AI we now live in.
