NewStart CGSL MAIN 7.02 : gcc Multiple Vulnerabilities (NS-SA-2025-0254)

medium Nessus Plugin ID 280103

Synopsis

The remote NewStart CGSL host is affected by multiple vulnerabilities.

Description

The remote NewStart CGSL host, running version MAIN 7.02, has gcc packages installed that are affected by multiple vulnerabilities:

- A vulnerability, which was classified as problematic, was found in GNU Binutils up to 2.43. This affects the function disassemble_bytes of the file binutils/objdump.c. The manipulation of the argument buf leads to stack-based buffer overflow. It is possible to initiate the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 2.44 is able to address this issue. The identifier of the patch is baac6c221e9d69335bf41366a1c7d87d8ab2f893. It is recommended to upgrade the affected component.
(CVE-2025-0840)

- When the assert() function in the GNU C Library versions 2.13 to 2.40 fails, it does not allocate enough space for the assertion failure message string and size information, which may lead to a buffer overflow if the message string size aligns to page size. (CVE-2025-0395)

- Untrusted LD_LIBRARY_PATH environment variable vulnerability in the GNU C Library version 2.27 to 2.38 allows attacker controlled loading of dynamically shared library in statically compiled setuid binaries that call dlopen (including internal dlopen calls after setlocale or calls to NSS functions such as getaddrinfo). (CVE-2025-4802)

- The regcomp function in the GNU C library version from 2.4 to 2.41 is subject to a double free if some previous allocation fails. It can be accomplished either by a malloc failure or by using an interposed malloc that injects random malloc failures. The double free can allow buffer manipulation depending of how the regex is constructed. This issue affects all architectures and ABIs supported by the GNU C library.
(CVE-2025-8058)

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

Solution

Upgrade the vulnerable CGSL gcc packages. Note that updated packages may not be available yet. Please contact ZTE for more information.

See Also

https://security.gd-linux.com/notice/NS-SA-2025-0254

https://security.gd-linux.com/info/CVE-2025-0395

https://security.gd-linux.com/info/CVE-2025-0840

https://security.gd-linux.com/info/CVE-2025-4802

https://security.gd-linux.com/info/CVE-2025-8058

Plugin Details

Severity: Medium

ID: 280103

File Name: newstart_cgsl_NS-SA-2025-0254_gcc.nasl

Version: 1.1

Type: local

Published: 12/27/2025

Updated: 12/27/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

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-2025-0840

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

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

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

CVSS v4

Risk Factor: Medium

Base Score: 5.9

Threat Score: 4.3

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:H/SC:L/SI:L/SA:H

CVSS Score Source: CVE-2025-8058

Vulnerability Information

CPE: p-cpe:/a:zte:cgsl_main:liblsan, p-cpe:/a:zte:cgsl_main:libgccjit-devel, p-cpe:/a:zte:cgsl_main:libquadmath-static, p-cpe:/a:zte:cgsl_main:gcc-c%2b%2b, p-cpe:/a:zte:cgsl_main:libitm-devel, p-cpe:/a:zte:cgsl_main:cpp, p-cpe:/a:zte:cgsl_main:libasan-static, p-cpe:/a:zte:cgsl_main:gcc-plugin-devel, p-cpe:/a:zte:cgsl_main:libgccjit, p-cpe:/a:zte:cgsl_main:libasan, p-cpe:/a:zte:cgsl_main:libtsan, p-cpe:/a:zte:cgsl_main:libtsan-static, p-cpe:/a:zte:cgsl_main:liblsan-static, p-cpe:/a:zte:cgsl_main:gcc-offload-nvptx, p-cpe:/a:zte:cgsl_main:libgomp-offload-nvptx, p-cpe:/a:zte:cgsl_main:libquadmath-devel, p-cpe:/a:zte:cgsl_main:gcc, cpe:/o:zte:cgsl_main:7, p-cpe:/a:zte:cgsl_main:libubsan, p-cpe:/a:zte:cgsl_main:libstdc%2b%2b-devel, p-cpe:/a:zte:cgsl_main:libstdc%2b%2b, p-cpe:/a:zte:cgsl_main:libquadmath, p-cpe:/a:zte:cgsl_main:libgomp, p-cpe:/a:zte:cgsl_main:libstdc%2b%2b-static, p-cpe:/a:zte:cgsl_main:gcc-gdb-plugin, p-cpe:/a:zte:cgsl_main:libgcc-core, p-cpe:/a:zte:cgsl_main:libgfortran, p-cpe:/a:zte:cgsl_main:libitm-static, p-cpe:/a:zte:cgsl_main:libgcc, p-cpe:/a:zte:cgsl_main:gcc-doc, p-cpe:/a:zte:cgsl_main:gcc-plugin-annobin, p-cpe:/a:zte:cgsl_main:libatomic, p-cpe:/a:zte:cgsl_main:libitm, p-cpe:/a:zte:cgsl_main:libgfortran-static, p-cpe:/a:zte:cgsl_main:libstdc%2b%2b-docs, p-cpe:/a:zte:cgsl_main:libatomic-static, p-cpe:/a:zte:cgsl_main:gcc-gfortran, p-cpe:/a:zte:cgsl_main:libubsan-static, p-cpe:/a:zte:cgsl_main:libstdc%2b%2b-core

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/27/2025

Vulnerability Publication Date: 12/12/2023

Reference Information

CVE: CVE-2025-0395, CVE-2025-0840, CVE-2025-4802, CVE-2025-8058