Linux Distros Unpatched Vulnerability : CVE-2021-46195

medium Nessus Plugin ID 229779

Synopsis

The Linux/Unix host has one or more packages installed with a vulnerability that the vendor indicates will not be patched.

Description

The Linux/Unix host has one or more packages installed that are impacted by a vulnerability without a vendor supplied patch available.

- GCC v12.0 was discovered to contain an uncontrolled recursion via the component libiberty/rust-demangle.c.
This vulnerability allows attackers to cause a Denial of Service (DoS) by consuming excessive CPU and memory resources. (CVE-2021-46195)

Note that Nessus relies on the presence of the package as reported by the vendor.

Solution

There is no known solution at this time.

See Also

https://access.redhat.com/security/cve/cve-2021-46195

https://security-tracker.debian.org/tracker/CVE-2021-46195

https://ubuntu.com/security/CVE-2021-46195

Plugin Details

Severity: Medium

ID: 229779

File Name: unpatched_CVE_2021_46195.nasl

Version: 1.5

Type: local

Agent: unix

Family: Misc.

Published: 3/5/2025

Updated: 9/14/2025

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.4

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

CVSS Score Source: CVE-2021-46195

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 5

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

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

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:binutils, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-gcc-gdb-plugin, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libasan-devel, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libatomic-devel, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libgccjit, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libgccjit-docs, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libquadmath-devel, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libubsan-devel, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libstdc%2b%2b-docs, p-cpe:/a:centos:centos:gcc-toolset-11-gcc-gdb-plugin, p-cpe:/a:centos:centos:gcc-toolset-11-libasan-devel, p-cpe:/a:centos:centos:gcc-toolset-11-libatomic-devel, p-cpe:/a:centos:centos:gcc-toolset-11-libgccjit, p-cpe:/a:centos:centos:gcc-toolset-11-libgccjit-docs, p-cpe:/a:centos:centos:gcc-toolset-11-libquadmath-devel, p-cpe:/a:centos:centos:gcc-toolset-11-libubsan-devel, p-cpe:/a:centos:centos:gcc-toolset-11-libstdc%2b%2b-docs, cpe:/o:canonical:ubuntu_linux:24.04:-:lts, cpe:/o:canonical:ubuntu_linux:25.04, cpe:/o:redhat:enterprise_linux:8, cpe:/o:centos:centos:8, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-gcc, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-gcc-gfortran, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-gcc-plugin-devel, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libgccjit-devel, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libitm-devel, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-liblsan-devel, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libtsan-devel, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-gcc-c%2b%2b, p-cpe:/a:redhat:enterprise_linux:gcc-toolset-11-libstdc%2b%2b-devel, p-cpe:/a:centos:centos:gcc-toolset-11-gcc, p-cpe:/a:centos:centos:gcc-toolset-11-gcc-gfortran, p-cpe:/a:centos:centos:gcc-toolset-11-gcc-plugin-devel, p-cpe:/a:centos:centos:gcc-toolset-11-libgccjit-devel, p-cpe:/a:centos:centos:gcc-toolset-11-libitm-devel, p-cpe:/a:centos:centos:gcc-toolset-11-liblsan-devel, p-cpe:/a:centos:centos:gcc-toolset-11-libtsan-devel, p-cpe:/a:centos:centos:gcc-toolset-11-gcc-c%2b%2b, p-cpe:/a:centos:centos:gcc-toolset-11-libstdc%2b%2b-devel, cpe:/o:canonical:ubuntu_linux:22.04:-:lts, p-cpe:/a:canonical:ubuntu_linux:gcc-11

Required KB Items: Host/local_checks_enabled, Host/cpu, global_settings/vendor_unpatched, Host/OS/identifier

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 1/14/2022

Reference Information

CVE: CVE-2021-46195