RHEL 8 : openjpeg2 (RHSA-2021:4251)

high Nessus Plugin ID 155190

Synopsis

The remote Red Hat host is missing one or more security updates.

Description

The remote Redhat Enterprise Linux 8 host has packages installed that are affected by multiple vulnerabilities as referenced in the RHSA-2021:4251 advisory.

- openjpeg: division-by-zero in functions pi_next_pcrl, pi_next_cprl, and pi_next_rpcl in openmj2/pi.c (CVE-2018-20845)

- openjpeg: integer overflow in function opj_get_encoding_parameters in openjp2/pi.c (CVE-2018-20847)

- openjpeg: integer overflow in opj_t1_encode_cblks in src/lib/openjp2/t1.c (CVE-2018-5727)

- openjpeg: integer overflow in opj_j2k_setup_encoder function in openjp2/j2k.c (CVE-2018-5785)

- openjpeg: denial of service in function opj_t1_encode_cblks in openjp2/t1.c (CVE-2019-12973)

- openjpeg: use-after-free and double-free via a mix of valid and invalid files in a directory operated on by the decompressor (CVE-2020-15389)

- openjpeg: heap-buffer-overflow in lib/openjp2/mqc.c could result in DoS (CVE-2020-27814)

- openjpeg: heap-buffer-overflow write in opj_tcd_dc_level_shift_encode() (CVE-2020-27823)

- openjpeg: global-buffer-overflow read in opj_dwt_calc_explicit_stepsizes() (CVE-2020-27824)

- openjpeg: null pointer dereference in opj_tgt_reset function in lib/openjp2/tgt.c (CVE-2020-27842)

- openjpeg: out-of-bounds read in opj_t2_encode_packet function in openjp2/t2.c (CVE-2020-27843)

- openjpeg: heap-based buffer overflow in functions opj_pi_next_rlcp, opj_pi_next_rpcl and opj_pi_next_lrcp in openjp2/pi.c (CVE-2020-27845)

- openjpeg: out-of-bounds write due to an integer overflow in opj_compress.c (CVE-2021-29338)

- openjpeg: heap-buffer-overflow in color.c may lead to DoS or arbitrary code execution (CVE-2021-3575)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://cwe.mitre.org/data/definitions/20.html

https://cwe.mitre.org/data/definitions/120.html

https://cwe.mitre.org/data/definitions/122.html

https://cwe.mitre.org/data/definitions/125.html

https://cwe.mitre.org/data/definitions/190.html

https://cwe.mitre.org/data/definitions/369.html

https://cwe.mitre.org/data/definitions/416.html

https://cwe.mitre.org/data/definitions/787.html

https://access.redhat.com/security/cve/CVE-2018-5727

https://access.redhat.com/security/cve/CVE-2018-5785

https://access.redhat.com/security/cve/CVE-2018-20845

https://access.redhat.com/security/cve/CVE-2018-20847

https://access.redhat.com/security/cve/CVE-2019-12973

https://access.redhat.com/security/cve/CVE-2020-15389

https://access.redhat.com/security/cve/CVE-2020-27814

https://access.redhat.com/security/cve/CVE-2020-27823

https://access.redhat.com/security/cve/CVE-2020-27824

https://access.redhat.com/security/cve/CVE-2020-27842

https://access.redhat.com/security/cve/CVE-2020-27843

https://access.redhat.com/security/cve/CVE-2020-27845

https://access.redhat.com/security/cve/CVE-2021-3575

https://access.redhat.com/security/cve/CVE-2021-29338

https://access.redhat.com/errata/RHSA-2021:4251

https://bugzilla.redhat.com/1536552

https://bugzilla.redhat.com/1537758

https://bugzilla.redhat.com/1728505

https://bugzilla.redhat.com/1728509

https://bugzilla.redhat.com/1732270

https://bugzilla.redhat.com/1852869

https://bugzilla.redhat.com/1901998

https://bugzilla.redhat.com/1905723

https://bugzilla.redhat.com/1905762

https://bugzilla.redhat.com/1907513

https://bugzilla.redhat.com/1907516

https://bugzilla.redhat.com/1907523

https://bugzilla.redhat.com/1950101

https://bugzilla.redhat.com/1957616

Plugin Details

Severity: High

ID: 155190

File Name: redhat-RHSA-2021-4251.nasl

Version: 1.3

Type: local

Agent: unix

Published: 11/11/2021

Updated: 5/6/2022

Supported Sensors: Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent

Risk Information

CVSS Score Source: CVE-2021-3575

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P

Temporal Vector: E:U/RL:OF/RC:C

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:redhat:enterprise_linux:8, p-cpe:/a:redhat:enterprise_linux:openjpeg2, p-cpe:/a:redhat:enterprise_linux:openjpeg2-devel, p-cpe:/a:redhat:enterprise_linux:openjpeg2-devel-docs, p-cpe:/a:redhat:enterprise_linux:openjpeg2-tools

Required KB Items: Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list, Host/cpu

Exploit Ease: No known exploits are available

Patch Publication Date: 11/9/2021

Vulnerability Publication Date: 1/16/2018

Reference Information

CVE: CVE-2018-5727, CVE-2018-5785, CVE-2018-20845, CVE-2018-20847, CVE-2019-12973, CVE-2020-15389, CVE-2020-27814, CVE-2020-27823, CVE-2020-27824, CVE-2020-27842, CVE-2020-27843, CVE-2020-27845, CVE-2021-3575, CVE-2021-29338

RHSA: 2021:4251

CWE: 20, 120, 122, 125, 190, 369, 416, 787