Bug 1076967 - (CVE-2018-5785) VUL-1: CVE-2018-5785: openjpeg2: In OpenJPEG 2.3.0, there is an integer overflow caused by an out-of-bounds leftshift in the opj_j2k_setup_encoder function (openjp2/j2k.c). Remote attackerscould leverage this vulnerability to cause a deni
(CVE-2018-5785)
VUL-1: CVE-2018-5785: openjpeg2: In OpenJPEG 2.3.0, there is an integer overf...
Status: RESOLVED FIXED
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P4 - Low : Normal
: ---
Assigned To: Security Team bot
Security Team bot
https://smash.suse.de/issue/198673/
CVSSv3:SUSE:CVE-2018-5785:4.0:(AV:L/...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-22 07:41 UTC by Marcus Meissner
Modified: 2022-09-16 09:29 UTC (History)
3 users (show)

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


Attachments
openjpeg_2-3_opj_compress_integer-overflow_opj_j2k_setup_encoder.bmp (56 bytes, image/bmp)
2018-01-22 07:48 UTC, Marcus Meissner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Meissner 2018-01-22 07:41:18 UTC
CVE-2018-5785

In OpenJPEG 2.3.0, there is an integer overflow caused by an out-of-bounds left
shift in the opj_j2k_setup_encoder function (openjp2/j2k.c). Remote attackers
could leverage this vulnerability to cause a denial of service via a crafted bmp
file.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-5785
http://people.canonical.com/~ubuntu-security/cve/2018/CVE-2018-5785.html
http://www.cvedetails.com/cve/CVE-2018-5785/
https://github.com/uclouvain/openjpeg/issues/1057
Comment 1 Marcus Meissner 2018-01-22 07:48:10 UTC
Created attachment 757019 [details]
openjpeg_2-3_opj_compress_integer-overflow_opj_j2k_setup_encoder.bmp

QA REPRODUCER:

opj_compress -n 1 -i openjpeg_2-3_opj_compress_integer-overflow_opj_j2k_setup_encoder.bmp -o OUTPUT.j2k

misbehaviour migth only be detectable using undefined sanitizer.
Comment 3 Swamp Workflow Management 2019-04-03 21:20:12 UTC
This is an autogenerated message for OBS integration:
This bug (1076967) was mentioned in
https://build.opensuse.org/request/show/691318 Factory / openjpeg2
Comment 5 Hans Petter Jansson 2022-04-01 21:33:20 UTC
Done, reassigning to security-team. SLE-12 unaffected.
Comment 6 Swamp Workflow Management 2022-04-19 10:24:05 UTC
SUSE-SU-2022:1252-1: An update that fixes 13 vulnerabilities is now available.

Category: security (important)
Bug References: 1076314,1076967,1079845,1102016,1106881,1106882,1140130,1160782,1162090,1173578,1180457,1184774,1197738
CVE References: CVE-2018-14423,CVE-2018-16375,CVE-2018-16376,CVE-2018-20845,CVE-2018-5727,CVE-2018-5785,CVE-2018-6616,CVE-2020-15389,CVE-2020-27823,CVE-2020-6851,CVE-2020-8112,CVE-2021-29338,CVE-2022-1122
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    openjpeg2-2.3.0-150000.3.5.1
openSUSE Leap 15.3 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Manager Server 4.1 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Manager Retail Branch Server 4.1 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Manager Proxy 4.1 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Server for SAP 15-SP2 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Server for SAP 15 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Server 15-SP2-LTSS (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Server 15-SP2-BCL (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Server 15-SP1-BCL (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Server 15-LTSS (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Realtime Extension 15-SP2 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP3 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise High Performance Computing 15-SP2-LTSS (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise High Performance Computing 15-SP2-ESPOS (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise High Performance Computing 15-LTSS (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Linux Enterprise High Performance Computing 15-ESPOS (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Enterprise Storage 7 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE Enterprise Storage 6 (src):    openjpeg2-2.3.0-150000.3.5.1
SUSE CaaS Platform 4.0 (src):    openjpeg2-2.3.0-150000.3.5.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 7 Gabriele Sonnu 2022-09-16 09:29:33 UTC
Done.