Skip to content
DoS Disclosed report Advanced CVE-2026-2802

Assertion failure: element, at ds/SinglyLinkedList.h:77

Gary Kwong Follow

Originally disclosed on Mozilla

  • Fixed in 5 days
  • Paid in 11 days
  • Disclosed after 5 days
Text
Created attachment 9538410
debug stack

'''js
function f() {}
[x] = (() => {
  y = (function () {})();
  z = class e {
    #m() {}                                                                                                                                                   };
  return [f];
})();
this.gczeal(10);
for (
  a = b = 10;
  this;
  (function () {
    this.setGrayBitsInvalid();
  })()
);
'''

'''
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000100395258 js-dbg-64-darwin-arm64-82262ffdd5c4-604188`MOZ_CrashSequence(aAddress=0x0000000000000000, aLine=77) at Assertions.h:242:3 [
opt] [inlined]
    frame #1: 0x0000000100395258 js-dbg-64-darwin-arm64-82262ffdd5c4-604188`js::SinglyLinkedList<js::gc::Arena>::getFirst(this=<unavailable>) const at Singl
yLinkedList.h:77:5 [opt] [inlined]
    frame #2: 0x0000000100395224 js-dbg-64-darwin-arm64-82262ffdd5c4-604188`js::SinglyLinkedList<js::gc::Arena>::Iterator::Iterator(this=<unavailable>, list
=<unavailable>) at SinglyLinkedList.h:209:18 [opt] [inlined]
    frame #3: 0x0000000100395224 js-dbg-64-darwin-arm64-82262ffdd5c4-604188`js::SinglyLinkedList<js::gc::Arena>::Iterator::Iterator(this=<unavailable>, list
=<unavailable>) at SinglyLinkedList.h:209:52 [opt] [inlined]
    frame #4: 0x0000000100395224 js-dbg-64-darwin-arm64-82262ffdd5c4-604188`js::ChainedIterator<js::SinglyLinkedList<js::gc::Arena>::Iterator, 3ul>::Chained
Iterator<js::gc::ArenaList&, js::gc::ArenaList&, js::gc::ArenaList&>(this=0x000000016fdfd5a0, args=0x00000001086105e8, args=0x0000000108610758, args=0x00000
0016fdfd598) at IteratorUtils.h:87:19 [opt
    frame #5: 0x00000001005c2fe8 js-dbg-64-darwin-arm64-82262ffdd5c4-604188`js::gc::ArenaIter::ArenaIter(this=0x000000016fdfd190, zone=0x0000000108610000, k
ind=SYMBOL) at GC-inl.h:53:9 [opt] [inlined]
/snip
'''

This seems to go back prior to gh rev https://github.com/mozilla-firefox/firefox/commit/73cbb9ff0fdbf8b13f38d078ce01ef6ec0794f9c and I am guessing it may be related to bug 1994023.

Run with `--fuzzing-safe --ion-offthread-compile=off --ion-eager`, compile with `AR=ar sh ~/trees/firefox/js/src/configure --enable-debug --enable-debug-symbols --with-ccache --enable-nspr-build --enable-ctypes --enable-gczeal --enable-rust-simd --disable-tests`, tested on gh rev 82262ffdd5c46f52c51add41f48eec143c2c83c7.

Jon, is bug 1994023 a likely regressor?

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 22 January 2026 as CVE-2026-2802.

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.