CVE-2026-51261
Deferred Deferred - Pending Action

Missing Mutex in ESP32-audioI2S AudioBuffer Free Space

Vulnerability report for CVE-2026-51261, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-28

Last updated on: 2026-07-28

Assigner: MITRE

Description

Missing mutex synchronization in AudioBuffer::freeSpace() in schreibfaul1 ESP32-audioI2S 3.4.5 creates a race condition between concurrent tasks. The function calculates available buffer space without protecting shared read/write pointers, returning an incorrectly large value. Trusting this value leads to heap out-of-bounds write, memory corruption, device crash, and arbitrary code execution.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-28
Last Modified
2026-07-28
Generated
2026-07-28
AI Q&A
2026-07-28
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
schreibfaul1 esp32-audioi2s 3.4.5

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a race condition vulnerability in the AudioBuffer::freeSpace() function of the ESP32-audioI2S library version 3.4.5. The function calculates available buffer space without proper mutex synchronization, leading to incorrect large values. This happens because shared ring buffer pointers are read without protection between concurrent audio decoding and I2S playback tasks.

Detection Guidance

Detecting this vulnerability requires analyzing the ESP32-audioI2S library code for missing mutex synchronization in AudioBuffer::freeSpace(). Check if m_readPtr and m_writePtr are accessed without a mutex lock in src/Audio.cpp. Monitor for heap corruption errors or crashes during audio playback tasks.

Impact Analysis

The vulnerability can cause heap out-of-bounds writes, memory corruption, device crashes, and potentially arbitrary code execution. Exploitation requires streaming long audio media to trigger the race condition, either via unauthenticated remote audio streams or malicious local audio files without physical access.

Mitigation Strategies

Immediately update to a patched version if available. If not, implement mutex locks around accesses to m_readPtr and m_writePtr in AudioBuffer::freeSpace(). Disable audio streaming from untrusted sources until patched. Monitor system logs for heap corruption or crashes during audio operations.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-51261. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart