RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1651586 - netpbm should use system jasper and jbigkit
Summary: netpbm should use system jasper and jbigkit
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: netpbm
Version: 8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.0
Assignee: Josef Ridky
QA Contact: David Jež
URL:
Whiteboard:
: 1651851 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-20 11:54 UTC by Miroslav Hradílek
Modified: 2022-05-06 04:20 UTC (History)
3 users (show)

Fixed In Version: netpbm-10.82.00-5.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1651965 (view as bug list)
Environment:
Last Closed: 2019-05-23 11:55:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-20197 0 None None None 2022-05-06 04:20:49 UTC

Description Miroslav Hradílek 2018-11-20 11:54:02 UTC
Description of problem:
Previously netpbm-progs used linked jasper library from the system which is watched for security. Current rhel-8 version uses built in implementation containing security flaws.

This was fortunately revealed by failing
/CoreOS/netpbm/Security/CVE-2011-4516-CVE-2011-4517-jasper-heap-buffer-overflow-flaws

Version-Release number of selected component (if applicable):
netpbm-10.82.00-4.el8.x86_64
netpbm-progs-10.82.00-4.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. ldd /usr/bin/jpeg2ktopam
^ This might affect other inaries from the package.

Actual results:
	linux-vdso.so.1 (0x00007fff669cc000)
	libnetpbm.so.11 => /lib64/libnetpbm.so.11 (0x00007f9bf18d3000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f9bf1551000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f9bf118d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9bf1d52000)


Expected results:
use shared libjasper.so

Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=747726#c33

Comment 3 Tomas Hoger 2018-11-20 12:38:29 UTC
AFAICS, we regressed from using system to bundled jasper via the following change in Fedora:

https://src.fedoraproject.org/cgit/rpms/netpbm.git/commit/?id=9ec28379f3b97ef8b8c3922919dcd29d70c93e7a

That's a rebase of netpbm to version 10.75.99.  There's no mention in the commit to explain why we stopped using system jasper.

However, I see that we rebased netpbm to version 10.79.00 (i.e. newer than the one in the above Fedora commit) in Red Hat Enterprise Linux 7.5, while still keeping the use of system jasper.  That makes me assume there's either no hard requirement to use bundled jasper 10.75.99 and later, or that if there was a reason, it disappeared until 10.79.00.  Fedora has also been using jasper 1.900.1 until late 2016, so newer system jasper can not be a reason for the above change done in mid-2016.

Comment 5 Tomas Hoger 2018-11-20 12:50:56 UTC
There's another bundled library - jbigkit - as hinted by this bug report and declared in the bundled provides:

https://bugzilla.redhat.com/show_bug.cgi?id=1395716
https://src.fedoraproject.org/cgit/rpms/netpbm.git/commit/?id=c6abdb6bcd1709b0e5b26bf99af8d4977604bf40

The bug 1395716 comment 1 indicates we asked upstream about those bundled libs, but there's no further information if we got any response or what that response was.

AFAICS, netpbm bundles current jbigkit 2.1 (JBG_VERSION in the bundled jbig.h says so), which matches the system jbigkit version.  We should look into unbundling this library as well.

Comment 6 Huzaifa S. Sidhpurwala 2018-11-21 03:56:40 UTC
*** Bug 1651851 has been marked as a duplicate of this bug. ***

Comment 7 Josef Ridky 2018-11-26 08:58:00 UTC
Solution prepared. Need release + flag. Who can provide it?


Note You need to log in before you can comment on or make changes to this bug.