New issue
Advanced search Search tips

Issue 130595 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2012
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug-Security

Restricted
  • Only users with EditIssue permission may comment.



Sign in to add a comment

Heap-use-after-free in WebCore::RenderBlock::layoutBlockChildren

Reported by miau...@gmail.com, May 31 2012

Issue description


VULNERABILITY DETAILS
use-after-free in WebCore::RenderBlock::layoutBlockChildren

VERSION
Chrome Version: stable + dev

Chromium	21.0.1159.0 (Developer Build 139782)
OS	Linux
WebKit	537.1 (@119013)

Operating System: 64bit precise

REPRODUCTION CASE
<html>
  <head>
    <style>
      #el0 { 
        height: 1px; 
        -webkit-writing-mode: vertical-rl;
      }
      #el0:nth-child(3) { 
        height: auto; 
      }
    </style>
    <script>
      onload = function() {
        document.body.appendChild(document.createElement('select'))
        document.body.appendChild(document.createElement('form'))
        el0=document.createElement('input')
        el0.setAttribute('id','el0')
        el0.setAttribute('type', 'range')
        document.body.appendChild(el0)
        document.designMode='on'
        document.execCommand('selectall')
        document.execCommand('FormatBlock', false, '<'+'pre>')
      }
    </script>
  </head>
  <body>
  </body>
</html>

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION
Type of crash: renderer+asan
Crash State: 


==25800== ERROR: AddressSanitizer heap-use-after-free on address 0x7fffed5806b0 at pc 0x55555ae4a30b bp 0x7fffffff2330 sp 0x7fffffff2328
READ of size 4 at 0x7fffed5806b0 thread T0
    #0 0x55555ae4a30b in WebCore::RenderBlock::layoutBlockChildren(bool, WebCore::FractionalLayoutUnit&) ???:0
    #1 0x55555ae4174c in WebCore::RenderBlock::layoutBlock(bool, WebCore::FractionalLayoutUnit) ???:0
    #2 0x55555ae3e36d in WebCore::RenderBlock::layout() ???:0


0x7fffed5806b0 is located 48 bytes inside of 184-byte region [0x7fffed580680,0x7fffed580738)
freed by thread T0 here:
    #0 0x55555e658c72 in free ??:0
    #1 0x55555952eb1c in WebCore::Node::detach() ???:0
    #2 0x5555594f0f45 in WebCore::Element::detach() ???:0
    #3 0x555559459ab9 in WebCore::ContainerNode::detach() ???:0
    #4 0x5555595f77de in WebCore::ElementShadow::detach() ???:0

 
stable-48184.txt
12.6 KB View Download
48184.html
720 bytes View Download
48184.txt
12.6 KB View Download
Labels: -Pri-0 -Area-Undefined Pri-1 Area-WebKit SecImpacts-Stable SecImpacts-Beta Mstone-19 OS-All Stability-AddressSanitizer SecSeverity-High
Status: Available
upstreamed - https://bugs.webkit.org/show_bug.cgi?id=88017
Owner: infe...@chromium.org
Status: Started

Comment 3 Deleted

Comment 4 Deleted

Comment 5 Deleted

Status: Assigned

Comment 7 Deleted

Comment 8 Deleted

Comment 9 Deleted

Comment 10 Deleted

Comment 11 Deleted

Cc: -ClusterFuzz
Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify reward-topanel Merge-Approved
Status: FixUnreleased
http://trac.webkit.org/changeset/120862

Comment 13 Deleted

Summary: Heap-use-after-free in WebCore::RenderBlock::layoutBlockChildren
Detailed report: https://cluster-fuzz.appspot.com/testcase?key=65121273

Fuzzer: Inferno_layout_test_unmodified

Crash Type: Heap-use-after-free READ 4
Crash Address: 0x7ff4ce7be4b0
Crash State:
  - crash stack -
  WebCore::RenderBlock::layoutBlockChildren
  WebCore::RenderBlock::layoutBlock
  - free stack -
  WebCore::Node::detach
  WebCore::Element::detach
  

Minimized Testcase (0.51 Kb):
Download: https://cluster-fuzz.appspot.com/download/AMIfv978WpDXPVYfJeUzvWA8C3XEOMkUSTl-aIouSRFGusOSpz1QsbmOEk8jdqomunlWI1cdzJJr_Zkf-OEPxd1xwZlIChcHQdief4AOEzPnBGtPN-Kw_88RtanyZdKBoEYpj8QGFGHZKPMDHwyEKbdxxl4dYDAl8Mjw5AazzOh2rrJJude092Y
<style>
#test1 { 
    height: 1px; 
    -webkit-writing-mode: vertical-rl;
}
#test1:nth-child(3) { 
    height: auto; 
</style>
<script>
onload = function() {
    document.body.appendChild(document.createElement('form'));
    test1 = document.createElement('input');
    test1.setAttribute('id', 'test1');
    test1.setAttribute('type', 'range');
    document.body.appendChild(test1);
    document.designMode = 'on';
    document.execCommand('selectall');
    document.execCommand('FormatBlock', false, '<'+'pre>');
}
</script>
Project Member

Comment 15 by ClusterFuzz, Jun 22 2012

ClusterFuzz has detected this issue as fixed in range 143349:143352.

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=65121273

Fuzzer: Inferno_layout_test_unmodified

Crash Type: Heap-use-after-free READ 4
Crash Address: 0x7ff4ce7be4b0
Crash State:
  - crash stack -
  WebCore::RenderBlock::layoutBlockChildren
  WebCore::RenderBlock::layoutBlock
  - free stack -
  WebCore::Node::detach
  WebCore::Element::detach
  
Fixed: https://cluster-fuzz.appspot.com/revisions?range=143349:143352

Minimized Testcase: https://cluster-fuzz.appspot.com/download/AMIfv978WpDXPVYfJeUzvWA8C3XEOMkUSTl-aIouSRFGusOSpz1QsbmOEk8jdqomunlWI1cdzJJr_Zkf-OEPxd1xwZlIChcHQdief4AOEzPnBGtPN-Kw_88RtanyZdKBoEYpj8QGFGHZKPMDHwyEKbdxxl4dYDAl8Mjw5AazzOh2rrJJude092Y

If you suspect that the result above is incorrect, try re-doing that job on the testcase report page.
Labels: -Mstone-19 -Merge-Approved Mstone-20 Merge-Merged
M20: http://trac.webkit.org/changeset/122128
M21: http://trac.webkit.org/changeset/122129
Labels: CVE-2012-2843
Labels: -reward-topanel reward-1000 reward-unpaid
Please accept another $1000 :)
Labels: -reward-unpaid
Project Member

Comment 20 by bugdroid1@chromium.org, Oct 14 2012

Labels: Restrict-AddIssueComment-Commit
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Status: Fixed
Project Member

Comment 22 by bugdroid1@chromium.org, Mar 10 2013

Labels: -Type-Security -Area-WebKit -SecImpacts-Stable -SecImpacts-Beta -Mstone-20 -Stability-AddressSanitizer -SecSeverity-High Cr-Content M-20 Security-Impact-Stable Security-Impact-Beta Performance-Memory-AddressSanitizer Type-Bug-Security Security-Severity-High
Project Member

Comment 23 by bugdroid1@chromium.org, Mar 13 2013

Labels: Restrict-View-EditIssue
Project Member

Comment 24 by bugdroid1@chromium.org, Mar 14 2013

Labels: -Restrict-AddIssueComment-Commit Restrict-AddIssueComment-EditIssue
Labels: -Restrict-View-SecurityNotify -Restrict-View-EditIssue
Project Member

Comment 26 by bugdroid1@chromium.org, Mar 21 2013

Labels: -Security-Severity-High Security_Severity-High
Project Member

Comment 27 by bugdroid1@chromium.org, Mar 21 2013

Labels: -Security-Impact-Stable Security_Impact-Stable
Project Member

Comment 28 by bugdroid1@chromium.org, Mar 21 2013

Labels: -Security-Impact-Beta Security_Impact-Beta
Project Member

Comment 29 by bugdroid1@chromium.org, Apr 1 2013

Labels: -Performance-Memory-AddressSanitizer Stability-Memory-AddressSanitizer
Project Member

Comment 30 by bugdroid1@chromium.org, Apr 6 2013

Labels: -Cr-Content Cr-Blink
Project Member

Comment 31 by sheriffbot@chromium.org, Jun 14 2016

Labels: -security_impact-beta
Project Member

Comment 32 by sheriffbot@chromium.org, Oct 1 2016

This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 33 by sheriffbot@chromium.org, Oct 2 2016

This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: allpublic
Labels: CVE_description-submitted

Sign in to add a comment