Skip to content
DoS Advisory Advanced CVE-2024-3156

Inappropriate implementation in V8 (CVE-2024-3156)

A bug in V8's WebAssembly JIT fuzzing caused a crash when running a specially crafted JavaScript file with specific flags. An attacker could potentially cause a denial of service or other undefined behaviour by triggering this crash.

Zhenghang Xiao Follow

Originally disclosed on Chrome VRP

Bounty$7,000 High View original
  • Fix shipped in 22 days

VULNERABILITY DETAILS

INTRODUCE

After bisect, it was determined that following commit caused this problem.

commit 6d26d2b5f88fbb3e3ea7020c2ec16e47ed1aceb6
Author: Andreas Haas <[email protected]>
Date:   Mon Feb 19 13:52:47 2024 +0100

    [wasm][fuzzing] Add jit_fuzzing implication for wasm
    
    [email protected]
    
    Change-Id: Icf7507797e62cd9956098394a070bdee2328b914
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5300094
    Commit-Queue: Andreas Haas <[email protected]>
    Reviewed-by: Matthias Liedtke <[email protected]>
    Reviewed-by: Samuel Groß <[email protected]>
    Cr-Commit-Position: refs/heads/main@{#92403}

CRASH LOG

  • Debug output
Bash
# CMD: /tmp/d8-linux-debug-v8-component-92762/d8 --expose-gc --jit-fuzzing --wasm-staging poc.js
# OUTPUT ==============================================================
Received signal 11 <unknown> 000000000000

==== C stack trace ===============================

 [0x7f048d36b963]
 [0x7f048d36b8b2]
 [0x7f0487642520]
 [0x1d295d3e5915]
[end of stack trace]

Other

Please note to include the flags --expose-gc --jit-fuzzing --wasm-staging for clusterfuzz classification.

VERSION Tested on v8 version: 12.4.0 - 12.4.0

REPRODUCTION CASE

  1. Download debug v8 from: gs://v8-asan/linux-debug/d8-linux-debug-v8-component-92762.zip
  2. Run: d8 --expose-gc --jit-fuzzing --wasm-staging poc.js

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: tab

CREDIT INFORMATION Reporter credit: Zhenghang Xiao (@Kipreyyy)

The original report as published on the Chromium issue tracker, by Zhenghang Xiao (@Kipreyyy). 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 crash could lead to a denial of service or potentially other undefined behaviour, but the report does not specify further impact.

What the attacker needed

Debug build of V8; specific flags: --expose-gc --jit-fuzzing --wasm-staging; crafted poc.js file

How it was found

  1. Download the debug build of V8 from the provided URL.
  2. Run the d8 shell with the flags --expose-gc --jit-fuzzing --wasm-staging and the poc.js file.

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 report describes a crash in V8, the JavaScript engine used in Chrome. The crash happens when running a test file with certain flags that enable experimental WebAssembly features. A crash like this could be used to disrupt a service or possibly lead to more serious issues if exploited.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Zhenghang Xiao

View all

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

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.