Skip to content
Memory corruption Advisory Advanced CVE-2022-42431

Tesla bcmdhd Buffer Overflow Privilege Escalation Vulnerability

The bcmdhd driver in Tesla vehicles fails to validate the length of user-supplied data before copying it to a buffer, leading to a buffer overflow. An attacker who can already execute privileged code can exploit this to escalate privileges and run arbitrary code as root.

Théo Gordyjan from Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows local attackers to escalate privileges on affected Tesla vehicles. An attacker must first obtain the ability to execute privileged code on the target system in order to exploit this vulnerability.

Vincent DEHORS of @Synacktiv, 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 bcmdhd driver does not validate the length of user-supplied data before copying it into a buffer, resulting in a buffer overflow.

Impact

An attacker with existing privileged code execution could escalate to root and run arbitrary code, but the text does not specify whether any defence limited the exploit.

What the attacker needed

Ability to execute privileged code on the target

The fix

The vulnerability was fixed in Tesla's 2022.28 release.

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 potentially overwrite other important memory. Here, the driver that handles Wi-Fi (bcmdhd) does not check how much data it is given, so an attacker who already has some control over the car's system can use this flaw to gain the highest level of access, called root.

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 by Théo Gordyjan from

View all

1 more disclosed report, best first.

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.