Closed
Bug 691299
(CVE-2011-3661)
Opened 13 years ago
Closed 13 years ago
Crash at js::RegExp::executeInternal
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
FIXED
mozilla11
People
(Reporter: aki.helin, Assigned: cdleary)
References
()
Details
(5 keywords, Whiteboard: [sg:critical?][qa!])
Attachments
(2 files, 1 obsolete file)
157 bytes,
text/html
|
Details | |
8.06 KB,
patch
|
dmandelin
:
review+
akeybl
:
approval-mozilla-aurora+
akeybl
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0
Build ID: 20110928060149
Steps to reproduce:
I stumbled into another regexp issue similar to https://bugzilla.mozilla.org/show_bug.cgi?id=653672. That one was fixed in Firefox 7.0, but this one remains in it and 8.0 beta. Filing as a security bug based on the high crash address and probability of there being a similar integer error.
Actual results:
Firefox 7.0 / Linux (64-bit Debian 6.0.2) -> https://crash-stats.mozilla.com/report/index/2b6d78d1-df97-4497-bbcc-b3fae2111003
Firefox 8.0 beta / ditto-> https://crash-stats.mozilla.com/report/index/bp-82827ac7-07c6-4f97-a697-5f1202111003
Expected results:
Firefox shouldn't have crashed and I should have caught this earlier.
Open the attached file to reproduce. Firefox usually appears to get stuck for a few seconds and then crashes. Some pages exhibiting this crash instantly. I tried to make a small repro that crashes most of the time on different versions.
Firefox 8.0 on 32-bit Debian crashed with a slightly different signature [@ JSC::Yarr::execute ] -> https://crash-stats.mozilla.com/report/index/bp-180837cb-6a6f-440f-a900-b859c2111003
Comment 2•13 years ago
|
||
Using Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:10.0a1) Gecko/20111003 Firefox/10.0a1 I don't crash, but Nightly stops responding and I have to force quit.
Firefox 7.0.1 / Windows 7 -> https://crash-stats.mozilla.com/report/index/bbba3892-7e36-40d5-963e-93b422111004
OS: Linux → All
Comment 5•13 years ago
|
||
Haven't tested nightly yet, but have we updated YARR since Fx8?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [sg:critical?]
Updated•13 years ago
|
status-firefox10:
--- → affected
status-firefox8:
--- → affected
status-firefox9:
--- → affected
tracking-firefox10:
--- → +
tracking-firefox8:
--- → +
tracking-firefox9:
--- → +
Assignee | ||
Comment 6•13 years ago
|
||
Updated•13 years ago
|
Assignee: cdleary → general
Component: General → JavaScript Engine
Product: Firefox → Core
QA Contact: general → general
Comment 7•13 years ago
|
||
Can you report this to WebKit and attach that patch to see if they want to upstream it?
Assignee | ||
Comment 8•13 years ago
|
||
(In reply to David Mandelin from comment #7)
> Can you report this to WebKit and attach that patch to see if they want to
> upstream it?
Will do. I actually missed one shell test failure as well. Will post the link when I fix that and submit to their tracker.
Updated•13 years ago
|
Assignee: general → cdleary
Comment 9•13 years ago
|
||
Can we get the webkit bug link added to this bug?
Updated•13 years ago
|
Comment 10•13 years ago
|
||
Comment on attachment 565697 [details] [diff] [review]
Error check regexp quantifier in parser and alternative offset in emitter.
Review of attachment 565697 [details] [diff] [review]:
-----------------------------------------------------------------
Chris says the patch has a problem and needs refreshing.
Attachment #565697 -
Flags: review?(dmandelin)
Assignee | ||
Comment 11•13 years ago
|
||
Fixes the problem. Will post to webkit bug tracker now.
Attachment #565697 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Comment 12•13 years ago
|
||
Too late for 8 given the complexity of this patch.
Comment 13•13 years ago
|
||
Do we want this for 9?
Comment 14•13 years ago
|
||
Yes please.
Comment 15•13 years ago
|
||
Chris, what's left here?
Assignee | ||
Comment 16•13 years ago
|
||
Comment on attachment 568767 [details] [diff] [review]
Error check regexp quantifier in parser and alternative offset in emitter.
No feedback from WebKit. Requesting approval for aurora / beta landing ASAP.
Attachment #568767 -
Flags: review?(dmandelin)
Attachment #568767 -
Flags: approval-mozilla-beta?
Attachment #568767 -
Flags: approval-mozilla-aurora?
Updated•13 years ago
|
Attachment #568767 -
Flags: review?(dmandelin) → review+
Comment 17•13 years ago
|
||
Comment on attachment 568767 [details] [diff] [review]
Error check regexp quantifier in parser and alternative offset in emitter.
[Triage Comment]
Please re-nominate for approval once this has landed on m-c.
Attachment #568767 -
Flags: approval-mozilla-beta?
Attachment #568767 -
Flags: approval-mozilla-beta-
Attachment #568767 -
Flags: approval-mozilla-aurora?
Attachment #568767 -
Flags: approval-mozilla-aurora-
Assignee | ||
Comment 18•13 years ago
|
||
Target Milestone: --- → mozilla11
Assignee | ||
Comment 19•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/bbda472dc34b
Re-nom coming per comment 17.
Assignee | ||
Updated•13 years ago
|
Attachment #568767 -
Flags: approval-mozilla-beta?
Attachment #568767 -
Flags: approval-mozilla-beta-
Attachment #568767 -
Flags: approval-mozilla-aurora?
Attachment #568767 -
Flags: approval-mozilla-aurora-
Comment 20•13 years ago
|
||
Marking FIXED since this landed on m-c.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 21•13 years ago
|
||
Comment on attachment 568767 [details] [diff] [review]
Error check regexp quantifier in parser and alternative offset in emitter.
[Triage Comment]
Let's take this on both aurora and beta - this is critical and we expect to find any regressions quickly (if there are any).
Attachment #568767 -
Flags: approval-mozilla-beta?
Attachment #568767 -
Flags: approval-mozilla-beta+
Attachment #568767 -
Flags: approval-mozilla-aurora?
Attachment #568767 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 22•13 years ago
|
||
Updated•13 years ago
|
Attachment #564162 -
Attachment mime type: text/plain → text/html
Updated•13 years ago
|
status1.9.2:
--- → unaffected
Updated•13 years ago
|
status-firefox11:
--- → fixed
tracking-firefox11:
--- → +
Updated•13 years ago
|
See Also: → https://bugs.webkit.org/show_bug.cgi?id=70648
Comment 23•13 years ago
|
||
Crash no longer reproducible with 2011-12-08 Nightly and Aurora, and Firefox 9.0b5.
Status: RESOLVED → VERIFIED
Keywords: verified-aurora,
verified-beta
Whiteboard: [sg:critical?][qa+] → [sg:critical?][qa!]
Updated•13 years ago
|
Alias: CVE-2011-3661
Updated•13 years ago
|
Group: core-security
Comment 24•12 years ago
|
||
A testcase for this bug was automatically identified at js/src/jit-test/tests/basic/bug691299-regexp.js.
Flags: in-testsuite+
Updated•9 months ago
|
Keywords: reporter-external
You need to log in
before you can comment on or make changes to this bug.
Description
•