New issue
Advanced search Search tips

Issue 703757 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Security: cherry-pick PDFium tiff security fixes to the Chrome OS tiff repo.

Project Member Reported by jorgelo@chromium.org, Mar 21 2017

Issue description

According to Lei, the fixes are:

"
The security bugs are 0006 for bug 618267 and   0017   for  bug 681300 .
"

those patches are from https://pdfium-review.googlesource.com/c/3117/


 
jorgelo@, could you add some appropriate labels to this issue? 

Thanks!

Missing Component, Security_Impact, Security_Severity labels.
Missing owner.
Labels: Security_Severity-Medium Security_Impact-Stable
Project Member

Comment 3 by sheriffbot@chromium.org, Mar 25 2017

Labels: M-58
Project Member

Comment 4 by sheriffbot@chromium.org, Mar 25 2017

Labels: -Pri-2 Pri-1
Components: Internals>Plugins>PDF

Comment 6 by ta...@google.com, Mar 29 2017

Owner: jorgelo@chromium.org
Status: Assigned (was: Available)
jorgelo@, sorry to bother you again. I wonder if you know who should own this.
Cc: npm@chromium.org
What is the main tiff repo? npm@ has been sending patches upstream to what he thought was the official repo. 
Sorry, by "main tiff repo" here I meant the main Chrome OS tiff package at https://cs.corp.google.com/chromeos_public/src/third_party/portage-stable/media-libs/tiff/tiff-4.0.7.ebuild.

Comment 9 by npm@chromium.org, Mar 29 2017

Components: OS>Packages
Summary: Security: cherry-pick PDFium tiff security fixes to the Chrome OS tiff repo. (was: Security: cherry-pick PDFium tiff security fixes to the main tiff repo.)
Unless you patch the package, you have to wait for it to be fixed upstream, no?

PDF plugin is not the main component here, adding the one I think matches the description.
This bug tracks applying the non-upstreamed tiff patches that PDFium developed, on the Chrome OS copy of tiff. Portage, the Chrome OS build system, has an easy way to apply patches to pacakges, even when those patches are not upstream.

If you want to file another bug to upstream those packages, that's fine, but that's not work tracked on this bug.

Comment 11 by npm@chromium.org, Mar 29 2017

Oh ok, didn't see any patches on the link in #8, so that's why I asked. The CLs for 0006, 0017 are:

https://codereview.chromium.org/2284063002
https://pdfium-review.googlesource.com/c/2355/
Status: Started (was: Assigned)
Cc: jorgelo@chromium.org
Owner: vapier@chromium.org
Status: Fixed (was: Started)
bugbot didn't update this, but it's been fixed here:
https://chromium-review.googlesource.com/475630
and i don't plan on backporting to M58 due to higher risk here ... these patches aren't in upstream, and they've only been tested in the pdfium build env (which means being built with clang and newer C++ standards).  Gentoo already saw some breakage that i had to fix up in the patches.
Project Member

Comment 15 by sheriffbot@chromium.org, Apr 15 2017

Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify

Comment 16 by npm@chromium.org, Apr 18 2017

Agree with not merging upstream. But could you explain what breakage you got in Gentoo? If it is just the .patch files not applying directly, that's probably because we have additional changes... Otherwise let us know if there is something we should fix in the code.
0006-HeapBufferOverflow-ChopUpSingleUncompressedStrip.patch is pretty bad: it declares an internal func in the public header (tiffio.h) instead of the private one (tiffiop.h), and it's implemented in C++ instead of C (which all of libtiff is written in), and it puts the func definition in a source file that isn't part of libtiff which means it'd never work on vanilla libtiff.

0013-validate-refblackwhite.patch requires newer C standard by placing "int i" into the for loop, and it doesn't include math.h for the isnan func.

really should have the patches sent to upstream libtiff.
Project Member

Comment 18 by sheriffbot@chromium.org, Jul 22 2017

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

Comment 19 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)
Status: Fixed (was: Archived)

Sign in to add a comment