1. Archivio CVE
  2. 2025
  3. CVE-2025-0622

CVE-2025-0622

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

Descrizione

A flaw was found in command/gpg. In some scenarios, hooks created by loaded modules are not removed when the related module is unloaded. This flaw allows an attacker to force grub2 to call the hooks once the module that registered it was unloaded, leading to a use-after-free vulnerability. If correctly exploited, this vulnerability may result in arbitrary code execution, eventually allowing the attacker to bypass secure boot protections.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
– grub2 <= 2.12 –
redhat enterprise linux 10.0 –
redhat enterprise linux 9 –
redhat enterprise linux 8 –
redhat openshift 4 –
redhat rhel els 7 –
Tutte le 11 vulnerabilità di Grub2

Tipo di vulnerabilità

CWE-416 Uso di memoria dopo la liberazione (use after free)

Il prodotto usa o fa riferimento a un’area di memoria dopo averla liberata. Nel frattempo quell’area può essere stata assegnata ad altro: ogni operazione fatta con il vecchio puntatore agisce su dati che non le appartengono più.

Impatto sui sistemi

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

Come si previene

Architettura e progettazione · Scelta del linguaggio Choose a language that provides automatic memory management.
Sviluppo · Riduzione della superficie di attacco When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

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

Tutte le 9.636 CVE di tipo CWE-416, con andamento e prevenzione

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