1. Archivio CVE
  2. 2024
  3. CVE-2024-25742

CVE-2024-25742

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

Descrizione

In the Linux kernel before 6.9, an untrusted hypervisor can inject virtual interrupt 29 (#VC) at any point in time and can trigger its handler. This affects AMD SEV-SNP and AMD SEV-ES.

Tipo di vulnerabilità

CWE-828 Signal Handler with Functionality that is not Asynchronous-Safe

The product defines a signal handler that contains code sequences that are not asynchronous-safe, i.e., the functionality is not reentrant, or it can be interrupted.

Impatto sui sistemi

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

Come si previene

Sviluppo · Architettura e progettazione Eliminate the usage of non-reentrant functionality inside of signal handlers. This includes replacing all non-reentrant library calls with reentrant calls. Note: This will not always be possible and may require large portions of the product to be rewritten or even redesigned. Sometimes reentrant-safe library alternatives will not be available. Sometimes non-reentrant interaction between the state of the system and the signal handler will be required by design.
Sviluppo Where non-reentrant functionality must be leveraged within a signal handler, be sure to block or mask signals appropriately. This includes blocking other signals within the signal handler itself that may also leverage the functionality. It also includes blocking all signals reliant upon the functionality when it is being accessed or modified by the normal behaviors of the product.

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

Tutte le 2 CVE di tipo CWE-828, con andamento e prevenzione

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