Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1396980 - (CVE-2016-9398) CVE-2016-9398 jasper: reachable assertion in jpc_floorlog2()
CVE-2016-9398 jasper: reachable assertion in jpc_floorlog2()
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20161116,reported=2...
: Security
Depends On: 1434464 1396987 1396988 1396989
Blocks: 1449402
  Show dependency treegraph
 
Reported: 2016-11-21 05:21 EST by Adam Mariš
Modified: 2018-07-18 11:06 EDT (History)
25 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2016-11-21 05:21:40 EST
An assertion failure was possible to trigger in jpc_floorlog2.

CVE assignment:

http://seclists.org/oss-sec/2016/q4/441
Comment 1 Adam Mariš 2016-11-21 05:37:31 EST
Created mingw-jasper tracking bugs for this issue:

Affects: fedora-all [bug 1396987]
Affects: epel-7 [bug 1396989]
Comment 2 Adam Mariš 2016-11-21 05:37:52 EST
Created jasper tracking bugs for this issue:

Affects: fedora-all [bug 1396986]
Affects: epel-5 [bug 1396988]
Comment 3 Tomas Hoger 2016-11-29 16:13:25 EST
Original reporter's advisory:

https://blogs.gentoo.org/ago/2016/11/16/jasper-multiple-assertion-failure/

Upstream bug report:

https://github.com/mdadams/jasper/issues/71

Test case:

https://github.com/asarubbo/poc/blob/master/00023-jasper-assert-jpc_floorlog2

This issue has not been fixed upstream yet - the issue is reproducible with the current git master, hence still affecting upstream version 2.0.1.
Comment 5 Tomas Hoger 2016-11-30 03:50:55 EST
Quoting relevant part of the original reporter's advisory for posterity:

Affected version:
1.900.17

Output/failure:
imginfo: /tmp/portage/media-libs/jasper-1.900.17/work/jasper-1.900.17/src/libjasper/jpc/jpc_math.c:94: int jpc_floorlog2(int): Assertion `x > 0′ failed.

Commit fix:
N/A

Fixed version:
N/A

Testcase:
https://github.com/asarubbo/poc/blob/master/00023-jasper-assert-jpc_floorlog2

CVE:
CVE-2016-9398
Comment 6 Tomas Hoger 2017-03-01 09:21:50 EST
Remains unfixed in 2.0.11.

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