Skip to content
Race condition Advisory Advanced CVE-2025-13721

Race in v8 (CVE-2025-13721)

A debug check in V8's concurrent marking failed because a JSTypedArray object was assumed to have no embedder fields, but the check found otherwise. This indicates a race condition in the garbage collector's handling of typed arrays, potentially leading to memory corruption or crashes.

Chrome Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 16 months

Failing test: cctest/test-inobject-slack-tracking/SubclassTypedArrayBuiltinNoInlineNew Failure link: https://cr-buildbucket.appspot.com/build/8741558669677733889 Link to Flako run: http://ci.chromium.org/b/8741554664431477521/infra Suspected commit: https://chromium-review.googlesource.com/c/v8/v8/+/5696786

Crash type: DCHECK failure

Crash state: JSObject::MayHaveEmbedderFields(map) implies UncheckedCast<JSObject>(obj)->GetEm

Error summary:

Fatal error in ../../src/objects/objects-body-descriptors-inl.h, line 109

Debug check failed: JSObject::MayHaveEmbedderFields(map) implies UncheckedCast<JSObject>(obj)->GetEmbedderFieldCount() == 0.

#FailureMessage Object: 0x16b84a738 ==== C stack trace ===============================

0   libv8_libbase.dylib                 0x0000000105f01148 v8::base::debug::StackTrace::StackTrace() + 24
1   libv8_libplatform.dylib             0x0000000105f44f28 v8::platform::(anonymous namespace)::PrintStackTrace() + 116
2   libv8_libbase.dylib                 0x0000000105ee4930 V8_Fatal(char const*, int, char const*, ...) + 352
3   libv8_libbase.dylib                 0x0000000105ee4264 v8::base::SetFatalFunction(void (*)(char const*, int, char const*)) + 0
4   libv8_for_testing.dylib             0x000000010e324434 void v8::internal::BodyDescriptorBase::IterateJSObjectBodyWithoutEmbedderFieldsImpl<v8::internal::ConcurrentMarkingVisitor>(v8::internal::Tagged<v8::internal::Map>, v8::internal::Tagged<v8::internal::HeapObject>, int, int, v8::internal::ConcurrentMarkingVisitor*) + 304
5   libv8_for_testing.dylib             0x000000010e326194 int v8::internal::HeapVisitor<int, v8::internal::ConcurrentMarkingVisitor>::VisitJSObjectSubclass<v8::internal::JSTypedArray, v8::internal::JSTypedArray::BodyDescriptor>(v8::internal::Tagged<v8::internal::Map>, v8::internal::Tagged<v8::internal::JSTypedArray>) + 136
6   libv8_for_testing.dylib             0x000000010e306870 v8::internal::ConcurrentMarking::RunMajor(v8::JobDelegate*, v8::base::EnumSet<v8::internal::CodeFlushMode, int>, unsigned int, bool) + 988
7   libv8_for_testing.dylib             0x000000010e366940 v8::internal::ConcurrentMarking::JobTaskMajor::Run(v8::JobDelegate*) + 480
8   libv8_libplatform.dylib             0x0000000105f43bd8 v8::platform::DefaultJobWorker::Run() + 260

Crash analysis hash: 3bdc04fbe0e20d5d823e093abdd16035

The original report as published on the Chromium issue tracker, by Chrome. 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

Root cause

Likely a race condition where concurrent marking reads an object's map and embedder field count without proper synchronisation, leading to an inconsistent state.

What the attacker needed

Debug build of V8; specific test case

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 is a crash report from V8, the JavaScript engine used in Chrome. A background process that cleans up memory (garbage collection) made a wrong assumption about a type of object (a typed array), causing a safety check to fail. If this happened in a release build, it could corrupt memory or crash the browser.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by Chrome

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.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.