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

CVE-2025-37797

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_sched: hfsc: Fix a UAF vulnerability in class handling This patch fixes a Use-After-Free vulnerability in the HFSC qdisc class handling. The issue occurs due to a time-of-check/time-of-use condition in hfsc_change_class() when working with certain child qdiscs like netem or codel. The vulnerability works as follows: 1. hfsc_change_class() checks if a class has packets (q.qlen != 0) 2. It then calls qdisc_peek_len(), which for certain qdiscs (e.g., codel, netem) might drop packets and empty the queue 3. The code continues assuming the queue is still non-empty, adding the class to vttree 4. This breaks HFSC scheduler assumptions that only non-empty classes are in vttree 5. Later, when the class is destroyed, this can lead to a Use-After-Free The fix adds a second queue length check after qdisc_peek_len() to verify the queue wasn't emptied.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 11.0 –
linux linux kernel >= 4.14.1 < 5.4.293 –
linux linux kernel >= 5.5 < 5.10.237 –
linux linux kernel >= 5.11 < 5.15.181 –
linux linux kernel >= 5.16 < 6.1.136 –
linux linux kernel >= 6.2 < 6.6.89 –
linux linux kernel >= 6.7 < 6.12.26 –
linux linux kernel >= 6.13 < 6.14.5 –
linux linux kernel 4.14 –
linux linux kernel 4.14 rc2 –
linux linux kernel 4.14 rc3 –
linux linux kernel 4.14 rc4 –
linux linux kernel 4.14 rc5 –
linux linux kernel 4.14 rc6 –
linux linux kernel 4.14 rc7 –
linux linux kernel 4.14 rc8 –
linux linux kernel 6.15 rc1 –
linux linux kernel 6.15 rc2 –
linux linux kernel 6.15 rc3 –
Tutte le 24.085 vulnerabilità di Linux Kernel

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.637 CVE di tipo CWE-416, con andamento e prevenzione

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