Skip to content
DoS Disclosed report Advanced CVE-2017-5413

SEGV in ClearBidiControls

Atte Kettunen Follow

Originally disclosed on Mozilla

  • Fixed in 15 days
  • Paid in 15 days
  • Disclosed after 15 days
Text
Created attachment 8834588
firefox-SEGV-ClearBidiControls.html

Tested on:

OS: Ubuntu 16.04
Firefox: ASAN build sourcestamp: 6d27535f4fe912068e0a0ac5854f7f39e94964a5

ASAN-trace:

ASAN:DEADLYSIGNAL
=================================================================
==15061==ERROR: AddressSanitizer: SEGV on unknown address 0x7fff31db57ac (pc 0x7f6b5302adfa bp 0x7ffd31db56d0 sp 0x7ffd31db5320 T0)
    #0 0x7f6b5302adf9 in ClearBidiControls /home/worker/workspace/build/src/layout/base/nsBidiPresUtils.cpp:313:21
    #1 0x7f6b5302adf9 in ResolveParagraphWithinBlock /home/worker/workspace/build/src/layout/base/nsBidiPresUtils.cpp:1226
    #2 0x7f6b5302adf9 in nsBidiPresUtils::TraverseFrames(nsBlockFrame*, nsBlockInFlowLineIterator*, nsIFrame*, BidiParagraphData*) /home/worker/workspace/build/src/layout/base/nsBidiPresUtils.cpp:1192
    #3 0x7f6b530295e6 in nsBidiPresUtils::Resolve(nsBlockFrame*) /home/worker/workspace/build/src/layout/base/nsBidiPresUtils.cpp:697:5
    #4 0x7f6b531e02b9 in ResolveBidi /home/worker/workspace/build/src/layout/generic/nsBlockFrame.cpp:7458:10
    #5 0x7f6b531e02b9 in nsBlockFrame::Reflow(nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, unsigned int&) /home/worker/workspace/build/src/layout/generic/nsBlockFrame.cpp:1176
    #6 0x7f6b532438d0 in nsContainerFrame::ReflowChild(nsIFrame*, nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, mozilla::WritingMode const&, mozilla::LogicalPoint const&, nsSize const&, unsigned int, unsigned int&, nsOverflowContinuationTracker*) /home/worker/workspace/build/src/layout/generic/nsContainerFrame.cpp:1028:3
    #7 0x7f6b53247f0e in nsColumnSetFrame::ReflowChildren(mozilla::ReflowOutput&, mozilla::ReflowInput const&, unsigned int&, nsColumnSetFrame::ReflowConfig const&, bool, nsCollapsingMargin*, nsColumnSetFrame::ColumnBalanceData&) /home/worker/workspace/build/src/layout/generic/nsColumnSetFrame.cpp:648:7
    #8 0x7f6b5324c896 in ReflowColumns /home/worker/workspace/build/src/layout/generic/nsColumnSetFrame.cpp:354:19
    #9 0x7f6b5324c896 in nsColumnSetFrame::FindBestBalanceBSize(mozilla::ReflowInput const&, nsPresContext*, nsColumnSetFrame::ReflowConfig&, nsColumnSetFrame::ColumnBalanceData&, mozilla::ReflowOutput&, nsCollapsingMargin&, bool&, bool&, unsigned int&) /home/worker/workspace/build/src/layout/generic/nsColumnSetFrame.cpp:984
    #10 0x7f6b5324d9dd in nsColumnSetFrame::Reflow(nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, unsigned int&) /home/worker/workspace/build/src/layout/generic/nsColumnSetFrame.cpp:1093:5
    #11 0x7f6b5320082d in nsBlockReflowContext::ReflowBlock(mozilla::LogicalRect const&, bool, nsCollapsingMargin&, int, bool, nsLineBox*, mozilla::ReflowInput&, unsigned int&, mozilla::BlockReflowInput&) /home/worker/workspace/build/src/layout/generic/nsBlockReflowContext.cpp:306:3
    #12 0x7f6b531f6158 in nsBlockFrame::ReflowBlockFrame(mozilla::BlockReflowInput&, nsLineList_iterator, bool*) /home/worker/workspace/build/src/layout/generic/nsBlockFrame.cpp:3466:7
    #13 0x7f6b531e9c26 in ReflowLine /home/worker/workspace/build/src/layout/generic/nsBlockFrame.cpp:2835:5
    #14 0x7f6b531e9c26 in nsBlockFrame::ReflowDirtyLines(mozilla::BlockReflowInput&) /home/worker/workspace/build/src/layout/generic/nsBlockFrame.cpp:2374
    #15 0x7f6b531e0654 in nsBlockFrame::Reflow(nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, unsigned int&) /home/worker/workspace/build/src/layout/generic/nsBlockFrame.cpp:1237:3
    #16 0x7f6b5320082d in nsBlockReflowContext::ReflowBlock(mozilla::LogicalRect const&, bool, nsCollapsingMargin&, int, bool, nsLineBox*, mozilla::ReflowInput&, unsigned int&, mozilla::BlockReflowInput&) /home/worker/workspace/build/src/layout/generic/nsBlockReflowContext.cpp:306:3
.
.
.

The original report as published on Mozilla's Bugzilla, by Atte Kettunen. 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 Layout: Text and Fonts. Mozilla made it public on 22 February 2017 as CVE-2017-5413.

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 Atte Kettunen

View all

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