New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 605491 link

Starred by 0 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 1
Type: Bug-Security



Sign in to add a comment

Use-of-uninitialized-value in CPDF_TextPage::PreMarkedContent

Project Member Reported by ClusterFuzz, Apr 21 2016

Issue description

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

Fuzzer: ifratric_pdf_generic
Job Type: linux_msan_pdfium
Platform Id: linux

Crash Type: Use-of-uninitialized-value
Crash Address: 
Crash State:
  CPDF_TextPage::PreMarkedContent
  CPDF_TextPage::ProcessTextObject
  CPDF_TextPage::ProcessTextObject
  
Regressed: https://cluster-fuzz.appspot.com/revisions?job=linux_msan_pdfium&range=376900:376924

Minimized Testcase (7774.33 Kb): https://cluster-fuzz.appspot.com/download/AMIfv95n6FziRfnUqED5Mp5r4LosALM2xvuhiCt0RaAnPAaG68IW4wNs1wlRY82XK645zS7YABjcfN68N5zcWvr6AcaesVPfpTvtPiaVlopvne60edDQ7kcwdNu_T08qTpTGx3xw80___2kAQslQRAKbERDFrfP0jhj7SHay0xCqEtd3Ur1R818

Filer: mmoroz

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.
 

Comment 1 by mmoroz@chromium.org, Apr 21 2016

Cc: dsinclair@chromium.org
Components: Internals>Plugins>PDF
Labels: Pri-2
Owner: och...@chromium.org
Project Member

Comment 2 by ClusterFuzz, Apr 21 2016

Status: Assigned (was: Available)
Cc: mbarbe...@chromium.org
Why is this tagged low ? this looks like a stale object, that is used later. MSAN reports should be minimum medium severity, but this one might be high too.

Comment 4 by mmoroz@chromium.org, Apr 21 2016

By default we mark all use-of-uninitialized-value reports as Low severity. I think we do this because usually those values are simply some random bytes from memory and they don't lead to code execution or something dangerous. But if we consider that uninitialized value may be previously sprayed and deallocated + we have some object there (not an int), this is a good point to have Medium by default and High in some cases.

Comment 5 by och...@chromium.org, Apr 21 2016

Are you talking about a default "recommended" severity rating for msan reports? We don't actually handle that automatically at the moment.

Should have a CL up in a bit.

Comment 6 by mmoroz@chromium.org, Apr 21 2016

I meant manually assigned severity so far. For "recommended" severity let's have Medium by default. Then we can manually drop or raise it depending on a type of object used. What do you think?
Labels: -Security_Severity-Low Security_Severity-High
As far as general triage goes, we usually default them to medium unless we're sure that there's not an interesting way that the value can be read back (in which case they wouldn't be security bugs, or very rarely low in the case of limited info leaks). In cases like what Abhishek described, it is possible for these to be high.

Without taking the time to investigate, I'd rather lean towards the higher severity to be safe on this bug. In the case for MSan recommendations, I'm fine with medium being the default. It's pretty rare that they'd be high, though we should be careful when triaging these to make sure we're at least taking a quick look.

Comment 8 by och...@chromium.org, Apr 21 2016

It appears to be an uninitialised pointer, so High seems quite reasonable here.

Comment 9 by och...@chromium.org, Apr 21 2016

Status: Started (was: Assigned)

Comment 11 by aarya@google.com, Apr 21 2016

"By default we mark all use-of-uninitialized-value reports as Low severity." - in manual triage, we mark these as medium. Max, can you correct on severity of other bugs if you marked them low.

Oliver - thanks for adding the recommendation of medium for these.
Project Member

Comment 12 by bugdroid1@chromium.org, Apr 21 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/58b579ece9fcbc9d38ea9c186b4898685067d3ae

commit 58b579ece9fcbc9d38ea9c186b4898685067d3ae
Author: ochang <ochang@chromium.org>
Date: Thu Apr 21 21:05:56 2016

Roll PDFium e3bbfa2..0f6425f

https://pdfium.googlesource.com/pdfium.git/+log/e3bbfa2..0f6425f

BUG= 605491 ,590711
TBR=dsinclair@chromium.org

TEST=bots

Review URL: https://codereview.chromium.org/1912763002

Cr-Commit-Position: refs/heads/master@{#388898}

[modify] https://crrev.com/58b579ece9fcbc9d38ea9c186b4898685067d3ae/DEPS

Status: Fixed (was: Started)
> Oliver - thanks for adding the recommendation of medium for these.

I meant a CL for this PDFium bug :)

But it should be a simple change to mark these as medium by default -- will do very soon too.
Project Member

Comment 14 by ClusterFuzz, Apr 22 2016

Labels: -Restrict-View-SecurityTeam Merge-Triage M-51 Restrict-View-SecurityNotify
Adding Merge-Triage label for tracking purposes.

Once your fix had sufficient bake time (on canary, dev as appropriate), please nominate your fix for merge by adding the Merge-Requested label.

When your merge is approved by the release manager, please start merging with higher milestone label first. Make sure to re-request merge for every milestone in the label list. You can get branch information on omahaproxy.appspot.com.

- Your friendly ClusterFuzz
Project Member

Comment 15 by ClusterFuzz, Apr 25 2016

ClusterFuzz has detected this issue as fixed in range 388749:389333.

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

Fuzzer: ifratric_pdf_generic
Job Type: linux_msan_pdfium
Platform Id: linux

Crash Type: Use-of-uninitialized-value
Crash Address: 
Crash State:
  CPDF_TextPage::PreMarkedContent
  CPDF_TextPage::ProcessTextObject
  CPDF_TextPage::ProcessTextObject
  
Regressed: https://cluster-fuzz.appspot.com/revisions?job=linux_msan_pdfium&range=376900:376924
Fixed: https://cluster-fuzz.appspot.com/revisions?job=linux_msan_pdfium&range=388749:389333

Minimized Testcase (7774.33 Kb): https://cluster-fuzz.appspot.com/download/AMIfv95n6FziRfnUqED5Mp5r4LosALM2xvuhiCt0RaAnPAaG68IW4wNs1wlRY82XK645zS7YABjcfN68N5zcWvr6AcaesVPfpTvtPiaVlopvne60edDQ7kcwdNu_T08qTpTGx3xw80___2kAQslQRAKbERDFrfP0jhj7SHay0xCqEtd3Ur1R818

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.

If you suspect that the result above is incorrect, try re-doing that job on the test case report page.
Labels: -Security_Impact-Beta Security_Impact-Stable Merge-Request-51 Merge-Request-50 M-50
Requesting merges. 

Comment 17 by tin...@google.com, Apr 25 2016

Labels: -Merge-Request-50 Merge-Review-50 Hotlist-Merge-Review
[Automated comment] DEPS changes referenced in bugdroid comments, needs manual review.

Comment 18 by tin...@google.com, Apr 25 2016

Labels: -Merge-Request-51 Merge-Review-51
[Automated comment] DEPS changes referenced in bugdroid comments, needs manual review.
Labels: -Merge-Request-51 Merge-Approved-51
Merge approved for M51 (branch 2704)
Please merge your change before 5:00 PM PST tomorrow (Tuesday) to M51 branch 2704, so we can take it for this week beta. Thank you.
Before we approve merge to M50, Could you please confirm whether this bug is baked and verified in Canary and safe to merge? 
Project Member

Comment 22 by bugdroid1@chromium.org, Apr 26 2016

Labels: -merge-approved-51 merge-merged-2704
The following revision refers to this bug:
  http://goto.ext.google.com/viewvc/chrome-internal?view=rev&revision=87063

------------------------------------------------------------------
r87063 | ochang@google.com | 2016-04-26T18:07:44.705754Z

-----------------------------------------------------------------
govind, re #21. This is an extremely simple fix that is definitely safe to merge.
Cc: tinazh@chromium.org
Labels: -Merge-Review-50 Merge-Approved-50
Thank you for confirmation. 
Approving merge to M50 branch 2661 based on comment #23. Please merge ASAP. Thank you.
Project Member

Comment 25 by bugdroid1@chromium.org, Apr 26 2016

Labels: -merge-approved-50 merge-merged-2661
The following revision refers to this bug:
  http://goto.ext.google.com/viewvc/chrome-internal?view=rev&revision=87077

------------------------------------------------------------------
r87077 | ochang@google.com | 2016-04-26T22:42:00.407000Z

-----------------------------------------------------------------
Labels: Release-2-M50

Comment 27 by kcc@chromium.org, Apr 29 2016

ochang, did you check if this was reproducible with one of our libFuzzer pdfium fuzzers? Can we add this input to the corpora for libFuzzer fuzzer(s)?
Cc: kcc@chromium.org
Yes, I did check that it reproduces with the libFuzzer pdfium fuzzers, but the testcase here is unfortunately 7MB (minimized by CF) and probably not too useful to be added to our fuzzing corpus?

Comment 29 by kcc@chromium.org, Apr 29 2016

Yea, 7mb is not too useful (given that other fuzzers found this bug)
Labels: -Merge-Triage
Project Member

Comment 31 by sheriffbot@chromium.org, Jul 29 2016

Labels: -Restrict-View-SecurityNotify
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 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
Project Member

Comment 35 by sheriffbot@chromium.org, Jul 28

Labels: -Pri-2 Pri-1

Sign in to add a comment