Amazon Linux 2 : gcc10, gcc (ALAS-2022-1784)

high Nessus Plugin ID 160265

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of gcc installed on the remote host is prior to 7.3.1-14. The version of gcc10 installed on the remote host is prior to 10.3.1-1. It is, therefore, affected by a vulnerability as referenced in the ALAS2-2022-1784 advisory.

- An issue was discovered in the Bidirectional Algorithm in the Unicode Specification through 14.0. It permits the visual reordering of characters via control sequences, which can be used to craft source code that renders different logic than the logical ordering of tokens ingested by compilers and interpreters.
Adversaries can leverage this to encode source code for compilers accepting Unicode such that targeted vulnerabilities are introduced invisibly to human reviewers. (CVE-2021-42574)

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

Solution

Run 'yum update gcc10' to update your system.
Run 'yum update gcc' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2022-1784.html

https://alas.aws.amazon.com/cve/html/CVE-2021-42574.html

Plugin Details

Severity: High

ID: 160265

File Name: al2_ALAS-2022-1784.nasl

Version: 1.3

Type: local

Agent: unix

Published: 4/27/2022

Updated: 10/31/2023

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.3

CVSS v2

Risk Factor: Medium

Base Score: 5.1

Temporal Score: 4

Vector: CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2021-42574

CVSS v3

Risk Factor: High

Base Score: 8.3

Temporal Score: 7.5

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:gcc10-debuginfo, p-cpe:/a:amazon:linux:gcc-gnat, p-cpe:/a:amazon:linux:cpp, p-cpe:/a:amazon:linux:gcc-c%2b%2b, p-cpe:/a:amazon:linux:libgccjit-devel, p-cpe:/a:amazon:linux:libitm, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:libgcc, p-cpe:/a:amazon:linux:libgo, p-cpe:/a:amazon:linux:libgfortran, p-cpe:/a:amazon:linux:libstdc%2b%2b10-docs, p-cpe:/a:amazon:linux:libstdc%2b%2b, p-cpe:/a:amazon:linux:gcc-objc%2b%2b, p-cpe:/a:amazon:linux:gcc-gdb-plugin, p-cpe:/a:amazon:linux:gcc10, p-cpe:/a:amazon:linux:libatomic, p-cpe:/a:amazon:linux:libmpx, p-cpe:/a:amazon:linux:cpp10, p-cpe:/a:amazon:linux:libsanitizer, p-cpe:/a:amazon:linux:gcc-gfortran, p-cpe:/a:amazon:linux:libobjc, p-cpe:/a:amazon:linux:libgccjit, p-cpe:/a:amazon:linux:gcc10-c%2b%2b, p-cpe:/a:amazon:linux:libasan10-devel, p-cpe:/a:amazon:linux:gcc, p-cpe:/a:amazon:linux:gcc-objc, p-cpe:/a:amazon:linux:gcc-plugin-devel, p-cpe:/a:amazon:linux:libstdc%2b%2b10-devel, p-cpe:/a:amazon:linux:libquadmath10-devel, p-cpe:/a:amazon:linux:libasan10, p-cpe:/a:amazon:linux:gcc10-gdb-plugin, p-cpe:/a:amazon:linux:gcc-debuginfo, p-cpe:/a:amazon:linux:libgomp, p-cpe:/a:amazon:linux:gcc-base-debuginfo, p-cpe:/a:amazon:linux:gcc-go, p-cpe:/a:amazon:linux:libgnat, p-cpe:/a:amazon:linux:libitm10-devel, p-cpe:/a:amazon:linux:libquadmath, p-cpe:/a:amazon:linux:libcilkrts, p-cpe:/a:amazon:linux:libatomic10-devel, p-cpe:/a:amazon:linux:libstdc%2b%2b-docs, p-cpe:/a:amazon:linux:gcc10-plugin-devel

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/25/2022

Vulnerability Publication Date: 11/1/2021

Reference Information

CVE: CVE-2021-42574

ALAS: 2022-1784

IAVA: 2021-A-0528