Skip to content
Memory corruption Advisory Advanced CVE-2024-23935

(Pwn2Own) Alpine Halo9 DecodeUTF7 Stack-based Buffer Overflow Remote Code Execution Vulnerability

The DecodeUTF7 function in Alpine Halo9 devices fails to validate the length of user-supplied data before copying it to a stack-based buffer, leading to a stack-based buffer overflow. A network-adjacent attacker who can pair a malicious Bluetooth device with the target system could execute arbitrary code with root privileges.

vudq16 Follow

Originally disclosed on Zero Day Initiative

High 8.0 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Alpine Halo9 devices. An attacker must first obtain the ability to pair a malicious Bluetooth device with the target system in order to exploit this vulnerability.

@vudq16, @_q5ca, 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, the DecodeUTF7 function copies user-supplied data into a stack-based buffer without first checking that the data length does not exceed the buffer size.

Impact

An attacker could execute arbitrary code with root privileges on the affected device, but they must first be able to pair a malicious Bluetooth device with the target system.

What the attacker needed

Network-adjacent attacker; ability to pair a malicious Bluetooth device

The fix

The vendor has classified the vulnerability as 'Sharing the Risk' and will not release a patch, so the device remains vulnerable.

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.

A buffer overflow happens when a program copies more data into a fixed-size memory area than it can hold, causing the extra data to spill over and overwrite nearby memory. Here, the DecodeUTF7 function does this without checking the length of the input, so an attacker who can send data via Bluetooth can potentially take control of the device and run their own code as the root user.

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.