CVE-2025-68474: ESF-IDF Has Out-of-Bounds Write in ESP32 Bluetooth AVRCP Vendor Command Handling
ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. In versions 5.5.1, 5.4.3, 5.3.4, 5.2.6, 5.1.6, and earlier, in the avrcvendormsg() function of the ESP-IDF BlueDroid AVRCP stack, the allocated buffer size was validated using AVRCMINCMDLEN (20 bytes). However, the actual fixed header data written before the vendor payload exceeds this value. This totals 29 bytes written before pmsg->pvendordata is copied. Using the old AVRCMINCMDLEN could allow an out-of-bounds write if vendorlen approaches the buffer limit. For commands where vendorlen is large, the original buffer allocation may be insufficient, causing writes beyond the allocated memory. This can lead to memory corruption, crashes, or other undefined behavior. The overflow could be larger when assertions are disabled.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68474?
CVE-2025-68474 has been classified as a medium severity vulnerability due to potential buffer overflow risks.
How do I fix CVE-2025-68474?
To fix CVE-2025-68474, upgrade the affected versions of esp-idf to a version later than 5.5.1.
What versions are affected by CVE-2025-68474?
CVE-2025-68474 affects esp-idf versions 5.5.1, 5.4.3, 5.3.4, 5.2.6, 5.1.6, and earlier.
What functionality is compromised by CVE-2025-68474?
CVE-2025-68474 compromises the buffer size validation in the avrc_vendor_msg() function of the ESP-IDF BlueDroid AVRCP stack.
Who is vulnerable to CVE-2025-68474?
Any organization or individual using affected versions of the esp-idf framework may be vulnerable to CVE-2025-68474.