AddressSanitizer: heap-use-after-free involving js::jit::ICScript::active or Assertion failure: findInlinedChild(fallback->pcOffset())->active(), at jit/JitScript.cpp:521
A heap-use-after-free was found in the JavaScript engine's inline cache code, likely involving ICScript::active, and an assertion failure in JitScript.cpp. An attacker could potentially trigger memory corruption by running crafted JavaScript, though the issue is hard to reproduce.
Originally disclosed on Mozilla
- Fixed in 13 days
- Paid in 46 days
- Disclosed after 13 days
Created attachment 9370083
stack
I have a hard-to-reproduce issue here, debug ASan build stack is attached.
Run with `--fast-warmup --ion-gvn=off --gc-zeal=10,233 --blinterp-warmup-threshold=1 --baseline-warmup-threshold=0 --ion-licm=off --ion-warmup-threshold=100 --fuzzing-safe --ion-optimize-shapeguards=off --no-incremental-gc --disable-parser-deferred-alloc --differential-testing --ion-edgecase-analysis=off`, compile with `AR=ar sh ../configure --enable-debug --enable-address-sanitizer --enable-fuzzing --disable-jemalloc --disable-stdcxx-compat --without-sysroot --with-ccache --enable-nspr-build --enable-ctypes --enable-debug-symbols --enable-gczeal --enable-rust-simd --disable-tests`, tested on m-c rev e22abf3976f2.
Setting s-s because it's an ASan UAF as a start, albeit with a debug build. I'll keep trying to reproduce with other flags and builds.
cc'ing :iain, :jandem, :jonco, :sfink, anybody who might be around prior to the holidays.
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
Could lead to memory corruption or a crash, but the issue is hard to reproduce and only observed in a debug build with specific flags.
What the attacker needed
Debug build with ASan; specific fuzzing flags; crafted JavaScript input
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 memory safety bug in a JavaScript engine where a piece of memory is used after it has been freed. Such bugs can sometimes let an attacker run malicious code or crash the browser. The reporter found it using a special debugging build and fuzzing flags, but it is not easily reproducible.
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.