
Proof-of-Concept for CVE-2025-2082, demonstrating function pointer overwrite via signed-to-unsigned integer conversion bug in Tesla VCSEC, leading to arbitrary code execution through BLE message manipulation.
This repository demonstrates a Proof of Vulnerability (PoV) simulating a critical memory corruption flaw inspired by CVE-2025-2082, discovered in Tesla's VCSEC (Vehicle Controller Security) component.
The vulnerability allows an attacker to overwrite a function pointer by exploiting a signed-to-unsigned integer conversion bug and improper memory bounds validation during a memcpy() operation.
startIndex in a BLE message can cause memory to be written before the start of a bufferstruct VCSEC {
void (*func_ptr)(); // Function pointer to be hijacked
uint8_t g_cert_buffer[1024]; // Target buffer for certificate data
};