1. Archivio CVE
  2. 2022
  3. CVE-2022-2928

CVE-2022-2928

6.5 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 6.5 – Media

Descrizione

In ISC DHCP 4.4.0 -> 4.4.3, ISC DHCP 4.1-ESV-R1 -> 4.1-ESV-R16-P1, when the function option_code_hash_lookup() 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 function add_option() is only used in server responses to lease query packets. Each lease query response calls this function for several options, so eventually, the reference counters could overflow and cause the server to abort.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 10.0 –
fedoraproject fedora 35 –
fedoraproject fedora 36 –
fedoraproject fedora 37 –
isc dhcp >= 4.4.0 <= 4.4.3 –
isc dhcp 4.1-esv r1 –
isc dhcp 4.1-esv r10 –
isc dhcp 4.1-esv r10_b1 –
isc dhcp 4.1-esv r10_rc1 –
isc dhcp 4.1-esv r10b1 –
isc dhcp 4.1-esv r10rc1 –
isc dhcp 4.1-esv r11 –
isc dhcp 4.1-esv r11_b1 –
isc dhcp 4.1-esv r11_rc1 –
isc dhcp 4.1-esv r11_rc2 –
isc dhcp 4.1-esv r11b1 –
isc dhcp 4.1-esv r11rc1 –
isc dhcp 4.1-esv r11rc2 –
isc dhcp 4.1-esv r12 –
isc dhcp 4.1-esv r12-p1 –
isc dhcp 4.1-esv r12_b1 –
isc dhcp 4.1-esv r12_p1 –
isc dhcp 4.1-esv r12b1 –
isc dhcp 4.1-esv r13 –
isc dhcp 4.1-esv r13_b1 –
isc dhcp 4.1-esv r13b1 –
isc dhcp 4.1-esv r14 –
isc dhcp 4.1-esv r14_b1 –
isc dhcp 4.1-esv r14b1 –
isc dhcp 4.1-esv r15 –
isc dhcp 4.1-esv r15-p1 –
isc dhcp 4.1-esv r15_b1 –
isc dhcp 4.1-esv r16 –
isc dhcp 4.1-esv r16-p1 –
Tutte le 25 vulnerabilità di Isc Dhcp

Tipo di vulnerabilità

CWE-476 Dereferenziazione di un puntatore NULL

Il prodotto usa un puntatore che si aspetta valido ma che in realtà è NULL, di solito causando un arresto anomalo.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: arresto o riavvio
Integrità, Riservatezza Eseguire codice o comandi non autorizzati, Leggere la memoria, Modificare la memoria

Come si previene

Sviluppo For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished.
Requisiti Select a programming language that is not susceptible to these issues.
Sviluppo Check the results of all functions that return a value and verify that the value is non-null before acting upon it.
Architettura e progettazione Identify all variables and data stores that receive information from external sources, and apply input validation to make sure that they are only initialized to expected values.
Sviluppo Explicitly initialize all variables and other data stores, either during declaration or just before the first usage.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 5.802 CVE di tipo CWE-476, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org