CVE-2025-68474 ESF-IDF Has Out-of-Bounds Write in ESP32 Bluetooth AVRCP Vendor Command Handling

Medium 6.1 Published Updated

An out-of-bounds write in the ESP-IDF Bluetooth AVRCP stack allows attackers to cause memory corruption, potentially leading to code execution or crashes on ESP32 devices.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-68474?

CVE-2025-68474 is a medium-severity memory corruption vulnerability in espressif esp-idf, published on 26 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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 avrc_vendor_msg() function of the ESP-IDF BlueDroid AVRCP stack, the allocated buffer size was validated using AVRC_MIN_CMD_LEN (20 bytes). However, the actual fixed header data written before the vendor payload exceeds this value. This totals 29 bytes written before p_msg->p_vendor_data is copied. Using the old AVRC_MIN_CMD_LEN could allow an out-of-bounds write if vendor_len approaches the buffer limit. For commands where vendor_len 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.

Weakness: CWE-787

Which versions are affected by CVE-2025-68474?

It affects 1 product.

Products include Espressif Esp-Idf.

How do I fix CVE-2025-68474?

No fix has been published for CVE-2025-68474 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-68474 being exploited?

There is no known exploitation of CVE-2025-68474 in the wild and no public exploit code.

Sources

Also known as GHSA-43gh-7r4f-qp57.

Is CVE-2025-68474 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free