Skip to content
Memory corruption Advisory Advanced CVE-2023-27349

BlueZ Audio Profile AVRCP Improper Validation of Array Index Remote Code Execution Vulnerability

The AVRCP handling in BlueZ fails to properly validate user-supplied data, leading to a write past the end of an allocated buffer. A network-adjacent attacker who gets the target to connect to a malicious Bluetooth device could execute code as root.

Michael Randrianantenaina Follow

Originally disclosed on Zero Day Initiative

High 7.1 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code via Bluetooth on affected installations of BlueZ. User interaction is required to exploit this vulnerability in that the target must connect to a malicious device.

Michael Randrianantenaina (https://elkamika.blogspot.com/), on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an array index taken from AVRCP data was used without bounds checking, so an out-of-range value caused a write beyond the allocated buffer.

Impact

A network-adjacent attacker could execute arbitrary code as root, but only if the target connects to the attacker's malicious Bluetooth device.

What the attacker needed

Attacker within Bluetooth range; victim connects to malicious device

The fix

BlueZ issued an update that corrects the flaw.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

BlueZ is the software that handles Bluetooth on Linux. A part of it that processes a Bluetooth audio control protocol (AVRCP) trusted a number from the other device without checking it, so it wrote data past the end of a memory buffer. Because that memory corruption can be shaped by the attacker, it may let them run their own code with the highest privileges on the machine.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.