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

Tesla wowlan_config Use-After-Free Privilege Escalation Vulnerability

A use-after-free flaw in the handling of the wowlan_config data structure allows a local attacker who can already execute privileged code to escalate to root and run arbitrary code. The vendor fixed it in the 2022.28 release.

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 code did not check that an object still existed before using it, leading to a use-after-free.

Impact

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

What the attacker needed

Ability to execute privileged code on the target

The fix

It 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.

This is a use-after-free bug: a program frees a piece of memory but keeps using it, so an attacker can arrange for that memory to hold something else. Here, someone who already has high-level access on the car's system can exploit this to become the root user, who can do anything. The car maker fixed it in a software update.

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.