Skip to content
DoS Disclosed report Advanced CVE-2025-10532

Assertion failure: !empty(), at dist/include/mozilla/Vector.h:597

Gary Kwong Follow

Originally disclosed on Mozilla

  • Fixed in 17 days
  • Paid in 18 days
  • Disclosed after 17 days
Text
Created attachment 9503110
debug stack

'''js
for (let i = 0; i < 200; i++) {
  var x = /x/;
  oomTest(function () {
    gcslice(99999);
    enableGeckoProfiling();
    disableGeckoProfiling();
  });
}
'''

'''
(gdb) bt
#0  0x0000555557deec44 in MOZ_CrashSequence (aAddress=0x0, aLine=597) at /home/msf1/shell-cache/js-dbg-64-linux-x86_64-37783a3d0d3f/objdir-js/dist/include/mozilla/Assertions.h:248
#1  mozilla::Vector<js::gcstats::Statistics::SliceData, 8ul, js::SystemAllocPolicy>::back (this=0x7ffff5e329c0)
    at /home/msf1/shell-cache/js-dbg-64-linux-x86_64-37783a3d0d3f/objdir-js/dist/include/mozilla/Vector.h:597
#2  js::gcstats::Statistics::recordParallelPhase (this=0x7ffff5e32960, phaseKind=js::gcstats::PhaseKind::SWEEP, duration=...)
    at /home/msf1/trees/mozilla-central/js/src/gc/Statistics.cpp:1569
#3  0x0000555557d2ed27 in js::GCParallelTask::join (this=0x7ffff5e349b0, deadline=...) at /home/msf1/trees/mozilla-central/js/src/gc/GCParallelTask.cpp:95
#4  0x0000555557df1820 in js::gc::GCRuntime::waitBackgroundSweepEnd (this=0x7ffff5e32888) at /home/msf1/trees/mozilla-central/js/src/gc/Sweeping.cpp:547
#5  0x000055555740ed49 in js::gc::ZoneAllCellIter<js::gc::TenuredCell>::initForTenuredIteration (this=0x7fffffffb210, zone=0x7ffff4cc9000, kind=<optimized out>)
    at /home/msf1/trees/mozilla-central/js/src/gc/GC-inl.h:159
/snip
'''

This seems to have occurred since prior to m-c rev 1db2ef126a6a, gh rev 48de8371eacd8be6e794cba9b8849d085edaecf1 (late-Apr 2024, Firefox 127-approx).

Run with `--fuzzing-safe --ion-offthread-compile=off --ion-eager`, compile with `AR=ar sh ../configure --enable-debug --enable-debug-symbols --with-ccache --enable-nspr-build --enable-ctypes --enable-gczeal --enable-rust-simd --disable-tests`, tested on m-c rev 37783a3d0d3f.

This seems to be really reproducible on a machine for me, yet unreliable/non-reproducible on another, I'm not sure why.

Jon/Steve, any ideas?

The original report as published on Mozilla's Bugzilla, by Gary Kwong. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A medium-severity doS bug in JavaScript: GC. Mozilla made it public on 12 August 2025 as CVE-2025-10532.

About DoS

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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 Gary Kwong

View all

42 more disclosed reports, best first.

More from Mozilla

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.