Bug 1128100 (CVE-2019-9543) - VUL-1: CVE-2019-9543: poppler: denial of service via recursive function call in JBIG2Stream:readGenericBitmap() located in JBIG2Stream.cc
Summary: VUL-1: CVE-2019-9543: poppler: denial of service via recursive function call ...
Status: NEW
Alias: CVE-2019-9543
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P4 - Low : Minor
Target Milestone: ---
Assignee: Petr Gajdos
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/225600/
Whiteboard: CVSSv3:SUSE:CVE-2019-9543:3.3:(AV:L/A...
Keywords: BugPool
Depends on:
Blocks:
 
Reported: 2019-03-06 09:07 UTC by Robert Frohl
Modified: 2024-02-28 12:44 UTC (History)
5 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
QA Reproducer (3.51 KB, application/pdf)
2019-03-06 09:09 UTC, Robert Frohl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Frohl 2019-03-06 09:07:48 UTC
CVE-2019-9543

An issue was discovered in Poppler 0.74.0. A recursive function call, in
JBIG2Stream::readGenericBitmap() located in JBIG2Stream.cc, can be triggered by
sending a crafted pdf file to (for example) the pdfseparate binary. It allows an
attacker to cause Denial of Service (Segmentation fault) or possibly have
unspecified other impact. This is related to JArithmeticDecoder::decodeBit.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-9543
http://people.canonical.com/~ubuntu-security/cve/2019/CVE-2019-9543.html
https://gitlab.freedesktop.org/poppler/poppler/issues/730
https://research.loginsoft.com/bugs/recursive-function-call-in-function-jbig2streamreadgenericbitmap-poppler-0-74-0/
Comment 1 Robert Frohl 2019-03-06 09:09:22 UTC
Created attachment 799076 [details]
QA Reproducer

$ pdfseparate -f 1 -l 2 URL7_POC res.pdf
[..]
Syntax Error (2348): Missing 'endstream' or incorrect stream length
[command hangs]
Comment 2 Robert Frohl 2019-03-06 10:31:14 UTC
judging by the reproducer these codestreams are affected:
- SUSE:SLE-12:Update
- SUSE:SLE-12-SP2:Update
- SUSE:SLE-15:Update
Comment 4 Petr Gajdos 2023-06-19 12:48:37 UTC
Upstream have not fixed the issue sofar:

"
Albert Astals Cid
@aacid ยท 3 years ago
Owner

Well the JBIG2Stream code is not really easy to understand (i don't think i actually do), but on the other hand it's quite self contained so it should be possible for an "outside developer" to get a fix for this, "all" that is needed is find out the "this is wrong, bail out" condition instead of processing a veeeeeeeeeeeeery long loop
"

The issue is still present in TW/poppler.
Comment 5 Petr Gajdos 2023-09-22 10:57:05 UTC
There's possibly another testcase in bsc#1214622 working on 12sp2/poppler.
Comment 6 Petr Gajdos 2023-10-27 16:01:43 UTC
Reassigning to current poppler maintainer.