Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496770 (CVE-2013-7296) - <app-text/poppler-0.24.5 : "JBIG2Stream::readSegments()" Denial of Service Vulnerability (CVE-2013-7296)
Summary: <app-text/poppler-0.24.5 : "JBIG2Stream::readSegments()" Denial of Service Vu...
Status: RESOLVED FIXED
Alias: CVE-2013-7296
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: http://secunia.com/advisories/56268/
Whiteboard: A3 [glsa]
Keywords:
Depends on: 490362
Blocks:
  Show dependency tree
 
Reported: 2014-01-02 14:43 UTC by Agostino Sarubbo
Modified: 2014-01-21 19:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2014-01-02 14:43:15 UTC
From ${URL} :

Description

A vulnerability has been reported in Poppler, which can be exploited by malicious people to cause a DoS 
(Denial of Service) in an application using the library.

The vulnerability is caused due to a format string error when handling extraneous bytes within a segment 
in the "JBIG2Stream::readSegments()" method (JBIG2Stream.cc), which can be exploited to cause a crash.


Solution:
Fixed in the source code repository.

Provided and/or discovered by:
Originally reported by xiao in okular within a KDE bug report.

Original Advisory:
Poppler:
http://cgit.freedesktop.org/poppler/poppler/commit/?id=58e04a08afee39370283c494ee2e4e392fd3b684

xiao:
https://bugs.kde.org/show_bug.cgi?id=328511


@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2014-01-02 19:49:30 UTC
According to upstream, we'll get most likely a release today or tomorrow (which contains the fix). I think that's speedy enough to avoid backporting.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2014-01-03 15:53:30 UTC
This is fixed in app-text/poppler-0.24.5

Since the SONAME of libpoppler.so changed, I need to start a libreoffice-bin rebuild. Arches can start testing and subsequently stabilizing 0.24.5, but we will have to add the new lo-bin to this fast-stabilization once it's ready.
Comment 3 Yury German Gentoo Infrastructure gentoo-dev 2014-01-04 05:59:00 UTC
Arches, please test and mark stable:

=app-text/poppler-0.24.5

Target Keywords : "alpha amd64 arm hppa ia64 ppc ppc64 spark x86"
Comment 4 Agostino Sarubbo gentoo-dev 2014-01-04 12:45:05 UTC
  (app-text/poppler-0.24.3::gentoo, installed) pulled in by
    >=app-text/poppler-0.12.3-r3:0/43= required by (app-text/texlive-core-2012-r1::gentoo, installed)
    app-text/poppler:0/43=[xpdf-headers(+)] required by (dev-tex/luatex-0.70.1-r2::gentoo, installed)
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2014-01-04 12:56:32 UTC
(In reply to Agostino Sarubbo from comment #4)
>   (app-text/poppler-0.24.3::gentoo, installed) pulled in by
>     >=app-text/poppler-0.12.3-r3:0/43= required by
> (app-text/texlive-core-2012-r1::gentoo, installed)
>     app-text/poppler:0/43=[xpdf-headers(+)] required by
> (dev-tex/luatex-0.70.1-r2::gentoo, installed)

Ah please. That's called a subslot dependency. :o)
Most likely we're hitting portage bug 490362 here.
Comment 6 Agostino Sarubbo gentoo-dev 2014-01-04 13:17:32 UTC
(In reply to Andreas K. Hüttel from comment #5)
> Ah please. That's called a subslot dependency. :o)
> Most likely we're hitting portage bug 490362 here.

I know.

I just guess this is not ready to go to stable.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2014-01-04 13:43:48 UTC
(In reply to Agostino Sarubbo from comment #6)
> (In reply to Andreas K. Hüttel from comment #5)
> > Ah please. That's called a subslot dependency. :o)
> > Most likely we're hitting portage bug 490362 here.
> 
> I know.
> 
> I just guess this is not ready to go to stable.

*shrug* Ago, what is exactly not ready to go stable?

The subslot is already in your installed stable packages (else you would not see the :43=), it's not added in the to-be-stabilized package. (Apart from version numbers and the subslot number, which I have to change because the soversion changes, the ebuilds are identical.)

The only real improvement that I can see would be to wait for a new stable portage where this is hopefully fixed, and continue with this bug afterwards.
Comment 8 Agostino Sarubbo gentoo-dev 2014-01-04 14:24:53 UTC
(In reply to Andreas K. Hüttel from comment #7)
> *shrug* Ago, what is exactly not ready to go stable?

Err. There was a local fault here. All is fine.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-04 16:14:22 UTC
Stable for HPPA.
Comment 10 Agostino Sarubbo gentoo-dev 2014-01-04 21:13:32 UTC
amd64 stable
Comment 11 Agostino Sarubbo gentoo-dev 2014-01-04 21:13:47 UTC
x86 stable
Comment 12 Agostino Sarubbo gentoo-dev 2014-01-05 08:59:17 UTC
ppc64 stable
Comment 13 Agostino Sarubbo gentoo-dev 2014-01-05 09:02:49 UTC
ppc stable
Comment 14 Agostino Sarubbo gentoo-dev 2014-01-05 09:04:29 UTC
sparc stable
Comment 15 Agostino Sarubbo gentoo-dev 2014-01-05 09:10:33 UTC
arm stable
Comment 16 Agostino Sarubbo gentoo-dev 2014-01-05 09:37:59 UTC
alpha stable
Comment 17 Andreas K. Hüttel archtester gentoo-dev 2014-01-05 23:03:12 UTC
Re-adding amd64 and x86: please additionally fast-stabilize

=app-office/libreoffice-bin-4.1.3.2-r3
=app-office/libreoffice-bin-debug-4.1.3.2-r3

(same source as -r2, but rebuilt for glibc-2.7, poppler-0.24.5, and libpng-1.6.8, all stabilized in the meantime)
Comment 18 Pacho Ramos gentoo-dev 2014-01-10 22:34:07 UTC
(In reply to Andreas K. Hüttel from comment #17)
> Re-adding amd64 and x86: please additionally fast-stabilize
> 
> =app-office/libreoffice-bin-4.1.3.2-r3
> =app-office/libreoffice-bin-debug-4.1.3.2-r3
> 
> (same source as -r2, but rebuilt for glibc-2.7, poppler-0.24.5, and
> libpng-1.6.8, all stabilized in the meantime)

I tried but checksum of -debug package always fails for me:
!!! Fetched file: amd64-debug-libreoffice-4.1.3.2-r3.tar.xz VERIFY FAILED!
!!! Reason: Failed on WHIRLPOOL verification
!!! Got:      8bc4e005c76ef33507b54802d46e96248ad137328c52c0411b65bf1f2895c7ff3c23cf71b16bff6483988734d6958b31fec018eff8e91685630c312020691502
!!! Expected: 57d5e3233c53517b862f987851ee503b61414774426566f9d945dd42792520a062855d0319bc10dfe2a24fd5583c455142c1be4fff7c8369969b0f2578d7a62d
Refetching... File renamed to '/usr/distfiles/amd64-debug-libreoffice-4.1.3.2-r3.tar.xz._checksum_failure_.jK3yCV'

Apart of that, libreoffice-bin works fine for me on amd64, feel free to mark it stable on amd64 if you can fix the -debug checksum problem
Comment 19 Andreas K. Hüttel archtester gentoo-dev 2014-01-11 00:30:21 UTC
(In reply to Pacho Ramos from comment #18)
> I tried but checksum of -debug package always fails for me:
> !!! Fetched file: amd64-debug-libreoffice-4.1.3.2-r3.tar.xz VERIFY FAILED!
> !!! Reason: Failed on WHIRLPOOL verification

The generation script was buggy and made bad whirlpool sums for large files. Seems noone noticed that in the past. Anyway, should be fixed now.

> Apart of that, libreoffice-bin works fine for me on amd64, feel free to mark
> it stable on amd64 if you can fix the -debug checksum problem

Done, thanks!
Comment 20 Agostino Sarubbo gentoo-dev 2014-01-12 13:18:30 UTC
ia64 stable
Comment 21 Agostino Sarubbo gentoo-dev 2014-01-16 20:23:10 UTC
x86 stable.

Maintainer(s), please cleanup.
Security, please add it to the existing request, or file a new one.
Comment 22 Andreas K. Hüttel archtester gentoo-dev 2014-01-16 20:59:30 UTC
Vulnerable version removed
Comment 23 Yury German Gentoo Infrastructure gentoo-dev 2014-01-17 00:44:50 UTC
Maintainer(s), Thank you for your work!

CVE Request for this Bug filed but not assigned at this time:
http://seclists.org/oss-sec/2014/q1/97 

Added to existing GLSA Draft.
Comment 24 GLSAMaker/CVETool Bot gentoo-dev 2014-01-21 19:31:41 UTC
This issue was resolved and addressed in
 GLSA 201401-21 at http://security.gentoo.org/glsa/glsa-201401-21.xml
by GLSA coordinator Sean Amoss (ackle).