NewStart CGSL MAIN 6.02 : dhcp Multiple Vulnerabilities (NS-SA-2024-0061)

medium Nessus Plugin ID 206857

Synopsis

The remote NewStart CGSL host is affected by multiple vulnerabilities.

Description

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

- An integer overflow vulnerability was found in the DHCP server. When the option_code_hash_lookup() function is called from add_option(), it increases the option's refcount field. However, there is not a corresponding call to option_dereference() to decrement the refcount field. The add_option() function is only used in server responses to lease query packets. Each lease query response calls this function for several options. Hence, a DHCP server configured with allow lease query, a remote machine with access to the server, can send lease queries for the same lease multiple times, leading to the add_option() function being called repeatedly. This issue could cause the reference counters to overflow and the server to abort or crash. (CVE-2022-2928)

- A vulnerability was found in the DHCP server where the fqdn_universe_decode() function allocates buffer space for the contents of option 81 (fqdn) data received in a DHCP packet. The maximum length of a DNS label is 63 bytes. The function tests the length byte of each label contained in the fqdn; if it finds a label whose length byte value is larger than 63, it returns without dereferencing the buffer space. This issue causes a memory leak. On a system with access to a DHCP server, an attacker from any adjacent network could send DHCP packets crafted to include fqdn labels longer than 63 bytes to the DHCP server, eventually causing the server to run out of memory and crash. (CVE-2022-2929)

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 dhcp 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-2024-0061

https://security.gd-linux.com/info/CVE-2022-2928

https://security.gd-linux.com/info/CVE-2022-2929

Plugin Details

Severity: Medium

ID: 206857

File Name: newstart_cgsl_NS-SA-2024-0061_dhcp.nasl

Version: 1.1

Type: local

Published: 9/10/2024

Updated: 9/10/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 4.5

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

CVSS Score Source: CVE-2022-2929

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

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

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

Vulnerability Information

CPE: cpe:/o:zte:cgsl_main:6, p-cpe:/a:zte:cgsl_main:dhcp-libs, p-cpe:/a:zte:cgsl_main:dhcp-server, p-cpe:/a:zte:cgsl_main:dhcp-devel, p-cpe:/a:zte:cgsl_main:dhcp-common, p-cpe:/a:zte:cgsl_main:dhcp-client

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

Exploit Ease: No known exploits are available

Patch Publication Date: 9/3/2024

Vulnerability Publication Date: 10/6/2022

Reference Information

CVE: CVE-2022-2928, CVE-2022-2929