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

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.

Sakana.S Follow

Originally disclosed on Chrome VRP

Bounty$4,000 Medium View original
  • 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

  1. put manifest.json/background.js into the extension_path
  2. 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

The original report as published on the Chromium issue tracker, by Sakana.S. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. Place manifest.json and background.js into an extension directory.
  2. 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.

More by Sakana.S

View all

2 more disclosed reports, best first.

More from Google Chrome

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.