BleedingTooth: Linux Bluetooth Zero-Click Remote Code Execution
Several flaws in the Linux Bluetooth subsystem let an unauthenticated attacker within short range trigger memory corruption and leak kernel stack memory. By chaining them, the researcher achieved arbitrary code execution with kernel privileges on a vulnerable x86-64 Ubuntu machine.
google.github.io
Published on google.github.io
I noticed that the network subsystem was already being fuzzed extensively by syzkaller, but that subsystems like Bluetooth were less well covered. In general, research on the Bluetooth host attack surface seemed to be quite limited – with most public vulnerabilities in Bluetooth only affecting the firmware or the…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a mix of a missing length check when copying extended advertising data into a fixed 31-byte buffer, an uninitialised response structure that leaks stack memory, and a type confusion where a Bluetooth channel's private data is passed to a socket filter expecting a different structure.
Impact
Combined, the flaws allow an unauthenticated attacker in short range to execute arbitrary code with kernel privileges, though BadVibes needs a Bluetooth 5 chip and active scanning, and BadChoice is blocked on kernels built with stack initialisation.
What the attacker needed
Attacker within Bluetooth range; Bluetooth 5 chip for BadVibes; victim actively scanning for devices; kernel built without stack init for BadChoice
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 write-up has not been written yet. The Original tab links to the source.
Bluetooth devices talk to the operating system through a driver in the kernel, the core part of the system. Mistakes in how that driver reads incoming Bluetooth data let someone nearby send crafted data that overwrites memory or reveals secret memory contents. Combining these mistakes allowed full control of the machine without the victim doing anything.
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.