Use after free in DevTools (CVE-2024-9959)
A use-after-free vulnerability exists in the DevTools component of Chrome, specifically in the function that evaluates scripts on new documents. An attacker could potentially exploit this to cause a crash or possibly execute arbitrary code.
- Fix shipped in 25 days
VULNERABILITY DETAILS UAF in blink::InspectorPageAgent::EvaluateScriptOnNewDocument
VERSION Chrome Version: 131.0.6724.0(Developer Build) Operating System: Ubuntu
Chrome Version: 130.0.6688.0(Developer Build) Operating System: Windows 11 23H2 (OS Build 22631.4037)
REPRODUCTION CASE
- put manifest.json/background.js into the extension_path
- run the command: ./chrome --user-data-dir=./noexist --no-sandbox --load-extension="extension_path"
FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: tab Crash State: see asan.log file
CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: Sakana.S
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
Impact
The vulnerability could cause a tab crash and may potentially lead to arbitrary code execution.
What the attacker needed
Chrome with DevTools; malicious extension
How it was found
- Place manifest.json and background.js into an extension directory.
- Run Chrome with the extension loaded using the provided command.
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 use-after-free is a type of memory bug where a program tries to use memory after it has been freed. This can lead to crashes or, in the worst case, allow an attacker to run their own code. Here, the bug is in Chrome's developer tools, which are used for debugging web pages.
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.