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

CVE-2022-48747

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

Descrizione

In the Linux kernel, the following vulnerability has been resolved: block: Fix wrong offset in bio_truncate() bio_truncate() clears the buffer outside of last block of bdev, however current bio_truncate() is using the wrong offset of page. So it can return the uninitialized data. This happened when both of truncated/corrupted FS and userspace (via bdev) are trying to read the last of bdev.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
linux linux kernel < 5.4.176 –
linux linux kernel >= 5.5 < 5.10.96 –
linux linux kernel >= 5.11 < 5.15.19 –
linux linux kernel >= 5.16 < 5.16.5 –
Tutte le 23.461 vulnerabilità di Linux Kernel

Tipo di vulnerabilità

CWE-908 Uso di una risorsa non inizializzata

Il prodotto usa o accede a una risorsa che non è stata inizializzata.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere la memoria, Leggere i dati dell’applicazione
Disponibilità Interruzione del servizio: arresto o riavvio, Interruzione del servizio: instabilità
Altro Stato imprevisto, Dipende dal contesto

Come si previene

Sviluppo Explicitly initialize the resource before use. If this is performed through an API function or standard procedure, follow all required steps.
Sviluppo Pay close attention to complex conditionals that affect initialization, since some branches might not perform the initialization.
Sviluppo Avoid race conditions (CWE-362) during initialization routines.
Build e compilazione Run or compile the 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 1.024 CVE di tipo CWE-908, con andamento e prevenzione

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