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

CVE-2022-42432

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

Descrizione

This vulnerability allows local attackers to disclose sensitive information on affected installations of the Linux Kernel 6.0-rc2. An attacker must first obtain the ability to execute high-privileged code on the target system in order to exploit this vulnerability. The specific flaw exists within the nft_osf_eval function. The issue results from the lack of proper initialization of memory prior to accessing it. An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the kernel. Was ZDI-CAN-18540.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
linux linux kernel 6.0 rc2 –
Tutte le 23.632 vulnerabilità di Linux Kernel

Tipo di vulnerabilità

CWE-457 Use of Uninitialized Variable

The code uses a variable that has not been initialized, leading to unpredictable or unintended results.

Impatto sui sistemi

AmbitoImpatto
Riservatezza, Integrità, Disponibilità, Altro Dipende dal contesto, Leggere i dati dell’applicazione
Disponibilità Alterare la logica di esecuzione, Stato imprevisto
Autorizzazione, Altro Dipende dal contesto

Come si previene

Sviluppo · Riduzione della superficie di attacco Ensure that critical variables are initialized before first use.
Build e compilazione · Hardening della compilazione Most compilers will complain about the use of uninitialized variables if warnings are turned on.
Sviluppo · Esercizio When using a language that does not require explicit declaration of variables, run or compile the software in a mode that reports undeclared or unknown variables. This may indicate the presence of a typographic error in the variable's name.
Requisiti · Scelta del linguaggio Choose a language that is not susceptible to these issues.
Architettura e progettazione Mitigating technologies such as safe string libraries and container abstractions could be introduced.

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

Tutte le 222 CVE di tipo CWE-457, con andamento e prevenzione

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