Skip to content
DoS Disclosed report

JM crash in JSString::length

Jan de Mooij Follow

Originally disclosed on Mozilla

  • Fixed in 14 days
  • Paid in 2.7 years
  • Disclosed after 14 days
Text
Created attachment 488996
Test case

The attached shell test case crashes JM debug and release shells. It's also reproducible in a tinderbox browser build.

Stack looks like this:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xb0e23d03
0x00017e59 in JSString::length (this=0xb0e23d03) at jsstr.h:259
259	        return mLengthAndFlags >> FLAGS_LENGTH_SHIFT;
(gdb) bt
#0  0x00017e59 in JSString::length (this=0xb0e23d03) at jsstr.h:259
#1  0x00182aa0 in js_ConcatStrings (cx=0x60b2b0, left=0x1504be0, right=0xb0e23d03) at ../jsstr.cpp:284
#2  0x0024e5c9 in js::mjit::stubs::Add (f=@0xbffff4e0) at ../methodjit/StubCalls.cpp:1173
#3  0x005ec063 in ?? ()
#4  0x002439f8 in js::mjit::EnterMethodJIT (cx=0x60b2b0, fp=0x1000030, code=0x5eb044, stackLimit=0x108ca60) at ../methodjit/MethodJIT.cpp:745
#5  0x00243b0f in CheckStackAndEnterMethodJIT (cx=0x60b2b0, fp=0x1000030, code=0x5eb044) at ../methodjit/MethodJIT.cpp:770
#6  0x00243c31 in js::mjit::JaegerShot (cx=0x60b2b0) at ../methodjit/MethodJIT.cpp:787
#7  0x000e2cb1 in js::RunScript (cx=0x60b2b0, script=0x613040, fp=0x1000030) at jsinterp.cpp:662
#8  0x000e3282 in js::Execute (cx=0x60b2b0, chain=0x1502028, script=0x613040, prev=0x0, flags=0, result=0x0) at jsinterp.cpp:1028
#9  0x000222fc in JS_ExecuteScript (cx=0x60b2b0, obj=0x1502028, script=0x613040, rval=0x0) at ../jsapi.cpp:4825

The original report as published on Mozilla's Bugzilla, by Jan de Mooij. 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 doS bug in JavaScript Engine. Mozilla made it public on 22 November 2010.

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 Jan de Mooij

View all

4 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.