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

CVE-2024-35835

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

In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: fix a double-free in arfs_create_groups When `in` allocated by kvzalloc fails, arfs_create_groups will free ft->g and return an error. However, arfs_create_table, the only caller of arfs_create_groups, will hold this error and call to mlx5e_destroy_flow_table, in which the ft->g will be freed again.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 10.0 –
linux linux kernel >= 4.7 < 4.19.307 –
linux linux kernel >= 4.20 < 5.4.269 –
linux linux kernel >= 5.5 < 5.10.210 –
linux linux kernel >= 5.11 < 5.15.149 –
linux linux kernel >= 5.16 < 6.1.76 –
linux linux kernel >= 6.2 < 6.6.15 –
linux linux kernel >= 6.7 < 6.7.3 –
linux linux kernel 6.8 rc1 –
Tutte le 24.085 vulnerabilità di Linux Kernel

Tipo di vulnerabilità

CWE-415 Doppia liberazione della memoria (double free)

Il prodotto chiama due volte free() sullo stesso indirizzo di memoria.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Disponibilità Modificare la memoria, Eseguire codice o comandi non autorizzati

Come si previene

Architettura e progettazione Choose a language that provides automatic memory management.
Sviluppo Ensure that each allocation is freed only once. After freeing a chunk, set the pointer to NULL to ensure the pointer cannot be freed again. In complicated error conditions, be sure that clean-up routines respect the state of allocation properly. If the language is object oriented, ensure that object destructors delete each chunk of memory only once.
Sviluppo Use a static analysis tool to find double free instances.

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

Tutte le 968 CVE di tipo CWE-415, con andamento e prevenzione

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