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

CVE-2022-0847

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

Descrizione

A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe and push_pipe functions in the Linux kernel and could thus contain stale values. An unprivileged local user could use this flaw to write to pages in the page cache backed by read only files and as such escalate their privileges on the system.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
fedoraproject fedora 35 –
linux linux kernel >= 5.8 < 5.10.102 –
linux linux kernel >= 5.15 < 5.15.25 –
linux linux kernel >= 5.16 < 5.16.11 –
netapp h300e firmware tutte –
netapp h300s firmware tutte –
netapp h410c firmware tutte –
netapp h410s firmware tutte –
netapp h500e firmware tutte –
netapp h500s firmware tutte –
netapp h700e firmware tutte –
netapp h700s firmware tutte –
ovirt ovirt-engine 4.4.10.2 –
redhat codeready linux builder tutte –
redhat enterprise linux 8.0 –
redhat enterprise linux eus 8.2 –
redhat enterprise linux eus 8.4 –
redhat enterprise linux for ibm z systems 8.0 –
redhat enterprise linux for ibm z systems eus 8.2 –
redhat enterprise linux for ibm z systems eus 8.4 –
redhat enterprise linux for power little endian 8.0 –
redhat enterprise linux for power little endian eus 8.2 –
redhat enterprise linux for power little endian eus 8.4 –
redhat enterprise linux for real time 8 –
redhat enterprise linux for real time for nfv 8 –
redhat enterprise linux for real time for nfv tus 8.2 –
redhat enterprise linux for real time for nfv tus 8.4 –
redhat enterprise linux for real time tus 8.2 –
redhat enterprise linux for real time tus 8.4 –
redhat enterprise linux server aus 8.2 –
redhat enterprise linux server aus 8.4 –
redhat enterprise linux server for power little endian update services for sap solutions 8.1 –
redhat enterprise linux server for power little endian update services for sap solutions 8.2 –
redhat enterprise linux server for power little endian update services for sap solutions 8.4 –
redhat enterprise linux server tus 8.2 –
redhat enterprise linux server tus 8.4 –
redhat enterprise linux server update services for sap solutions 8.1 –
redhat enterprise linux server update services for sap solutions 8.2 –
redhat enterprise linux server update services for sap solutions 8.4 –
redhat virtualization host 4.0 –
siemens scalance lpe9403 firmware < 2.0 –
sonicwall sma1000 firmware <= 12.4.2-02044 –
Tutte le 23.461 vulnerabilità di Linux Kernel

Tipo di vulnerabilità

CWE-665 Improper Initialization

The product does not initialize or incorrectly initializes a resource.

Impatto sui sistemi

AmbitoImpatto
Altro Dipende dal contesto
Riservatezza Leggere la memoria, Leggere i dati dell’applicazione
Controllo degli accessi Aggirare i meccanismi di protezione
Disponibilità Interruzione del servizio: arresto o riavvio

Come si previene

Requisiti · Scelta del linguaggio Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, in Java, if the programmer does not explicitly initialize a variable, then the code could produce a compile-time error (if the variable is local) or automatically initialize the variable to the default value for the variable's type. In Perl, if explicit initialization is not performed, then a default value of undef is assigned, which is interpreted as 0, false, or an equivalent value depending on the context in which the variable is accessed.
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 your variables and other data stores, either during declaration or just before the first usage.
Sviluppo Pay close attention to complex conditionals that affect initialization, since some conditions might not perform the initialization.
Sviluppo Avoid race conditions (CWE-362) during initialization routines.
Build e compilazione Run or compile your product with settings that generate warnings about uninitialized variables or data.

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

Tutte le 346 CVE di tipo CWE-665, con andamento e prevenzione

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