Bug 26690 - jasper new security issue CVE-2018-9154
Summary: jasper new security issue CVE-2018-9154
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks: 23168
  Show dependency treegraph
 
Reported: 2020-05-27 00:06 CEST by David Walser
Modified: 2020-05-29 23:20 CEST (History)
5 users (show)

See Also:
Source RPM: jasper-2.0.16-3.mga8.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2020-05-27 00:06:10 CEST
SUSE has issued an advisory today (May 26):
http://lists.suse.com/pipermail/sle-security-updates/2020-May/006858.html

Mageia 7 is also affected.
David Walser 2020-05-27 00:06:26 CEST

Whiteboard: (none) => MGA7TOO
Blocks: (none) => 23168

Comment 1 David Walser 2020-05-27 14:05:17 CEST
Patched packages uploaded by David Geiger for Mageia 7 and Cauldron.

Advisory:
========================

Updated jasper packages fix security vulnerability:

There is a reachable abort in the function jpc_dec_process_sot in
libjasper/jpc/jpc_dec.c of JasPer 2.0.14 that will lead to a remote denial of
service attack (CVE-2018-9154).

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-9154
http://lists.suse.com/pipermail/sle-security-updates/2020-May/006858.html
========================

Updated packages in core/updates_testing:
========================
jasper-2.0.14-4.2.mga7
libjasper4-2.0.14-4.2.mga7
libjasper-devel-2.0.14-4.2.mga7

from jasper-2.0.14-4.2.mga7.src.rpm

Version: Cauldron => 7
Whiteboard: MGA7TOO => (none)
CC: (none) => geiger.david68210
Assignee: bugsquad => qa-bugs

Comment 2 Len Lawrence 2020-05-28 02:21:58 CEST
mga7, x86_64

Pre-update:
$ rpm -qa | grep jasper
lib64jasper-devel-2.0.14-4.1.mga7
jasper-2.0.14-4.1.mga7
lib64jasper4-2.0.14-4.1.mga7

CVE-2018-9154
https://bugzilla.suse.com/show_bug.cgi?id=1092115
$ jasper --input jasper_POC --output-format jp2
warning: trailing garbage in marker segment (1 bytes)
warning: trailing garbage in marker segment (23 bytes)
Aborted (core dumped)

Updated the jasper packages.
$ jasper --input jasper_POC --output-format jp2
warning: trailing garbage in marker segment (1 bytes)
warning: trailing garbage in marker segment (23 bytes)
error: cannot load image data

That looks satisfactory.
Continuing later.

CC: (none) => tarazed25

Comment 3 Len Lawrence 2020-05-28 12:36:47 CEST
A few utility tests on jpeg-2000 images.

$ jasper -t pnm -f glenshiel.pnm -T jp2 -F greyvale.jp2
$ ll glen* grey*
-rw-r--r-- 1 lcl lcl 3981359 Jun  9  2018 glenshiel.pnm
-rw-r--r-- 1 lcl lcl 1868125 May 28 11:12 greyvale.jp2
greyvale2.jp2 displays as a perfect greyscale version of the original image.
$ imginfo -f greyvale.jp2
jp2 1 2304 1728 8 3981312

The size differs from the file size, possibly because the header size is not included.
Compare:
$ identify greyvale.jp2
greyvale.jp2 JP2 2304x1728 2304x1728+0+0 8-bit Grayscale Gray 0.000u 0:00.000

$ jasper -f sail.j2k -F sail.bmp -T bmp
lcl@difda:jasper $ imginfo -f sail.bmp
THE BMP FORMAT IS NOT FULLY SUPPORTED!
THAT IS, THE JASPER SOFTWARE CANNOT DECODE ALL TYPES OF BMP DATA.
IF YOU HAVE ANY PROBLEMS, PLEASE TRY CONVERTING YOUR IMAGE DATA
TO THE PNM FORMAT, AND USING THIS FORMAT INSTEAD.
bmp 3 640 480 8 921600

Nothing new there.
Using jasper to try to convert to PNM format fails also, as in the past.

$ file ht2jk.jpg
ht2jk.jpg: JPEG image data, JFIF standard 1.01..........
$ jasper -f ht2jk.jpg -t jpg -T pnm > ht2jk.pnm
$ imginfo -f ht2jk.pnm
pnm 3 2816 558 8 4713984

Displays correctly.

No regressions, supported conversions work, so this is good.

Whiteboard: (none) => MGA7-64-OK

Comment 4 Thomas Andrews 2020-05-28 15:15:53 CEST
Validating Advisory in Comment 1.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Nicolas Lécureuil 2020-05-28 22:23:12 CEST

CC: (none) => mageia
Keywords: (none) => advisory

Comment 5 Mageia Robot 2020-05-29 23:20:09 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2020-0241.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


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