CVE-2025-68474
ESF-IDF Has Out-of-Bounds Write in ESP32 Bluetooth AVRCP Vendor Command Handling
Check your servers for CVE-2025-68474
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-68474 affects esp-idf, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:L/SI:L/SA:L
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality low, integrity low, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality low, integrity low, availability low: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.46%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 31.5% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 29 Dec 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-787 Out-of-bounds Write
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| esp-idf |
affected >= 5.5-beta1, <= 5.5.1 affected >= 5.4-beta1, <= 5.4.3 affected >= 5.3-beta1, <= 5.3.4 affected >= 5.2-beta1, <= 5.2.6 affected <= 5.1.6
|
Is my server affected?
Find the installed version of esp-idf and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i esp-idf
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-68474 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-68474RHEL, Rocky, Alma, Fedora
rpm -q esp-idf
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-68474Alpine
apk list --installed | grep -i esp-idfWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-68474
trivy image --scanners vuln IMAGE | grep CVE-2025-68474
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/espressif/esp-idf/commit/0b0b59f2e19cb99dfa1b28c284d1c5c1d276a132 github.com
- https://github.com/espressif/esp-idf/commit/565fa98d0cfd58102204c1cb636747e17ee59845 github.com
- https://github.com/espressif/esp-idf/commit/8262ee807d5cd425f66304f703eeb3382fb888c0 github.com
- https://github.com/espressif/esp-idf/commit/a6c1bc5e3e91ad1cb964ce2c178ee40a5d10a4a0 github.com
- https://github.com/espressif/esp-idf/commit/aa0e3d75db995b7137b55349fc92ee684b47092d github.com
- https://github.com/espressif/esp-idf/commit/b9ba1e29b65536ab4b670ac099585d09adce0376 github.com
Source: the record CVE-2025-68474 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse