Katalog CVE

CVE-2025-38000

WysokieCVSS 7.8
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.18%

Percentyl 8 - wyżej niż 8% wszystkich znanych CVE

Streszczenie

W jądrze Linux w dyscyplinie kolejkowania HFSC (sch_hfsc) występuje błąd w księgowaniu długości kolejki (qlen) podczas enqueowania pierwszego pakietu do klasy. Funkcja hfsc_enqueue() wywołuje operację peek() dziecka przed zwiększeniem qlen i backlog, co przy użyciu qdisc_peek_dequeued() może prowadzić do natychmiastowego dequeu i dropu, powodując niespójność i potencjalne użycie po zwolnieniu.

Ocena ryzyka

Podatność może prowadzić do niespójności w zarządzaniu kolejkami HFSC, co może skutkować awarią systemu lub błędami w działaniu sieci.

Rekomendacja

Zaleca się aktualizację jądra Linux do wersji zawierającej poprawkę przenoszącą inkrementację qlen i backlog przed wywołanie peek().

Inne podatności w Linux kernel

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

In the Linux kernel, the following vulnerability has been resolved: sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue() When enqueuing the first packet to an HFSC class, hfsc_enqueue() calls the child qdisc's peek() operation before incrementing sch->q.qlen and sch->qstats.backlog. If the child qdisc uses qdisc_peek_dequeued(), this may trigger an immediate dequeue and potential packet drop. In such cases, qdisc_tree_reduce_backlog() is called, but the HFSC qdisc's qlen and backlog have not yet been updated, leading to inconsistent queue accounting. This can leave an empty HFSC class in the active list, causing further consequences like use-after-free. This patch fixes the bug by moving the increment of sch->q.qlen and sch->qstats.backlog before the call to the child qdisc's peek() operation. This ensures that queue length and backlog are always accurate when packet drops or dequeues are triggered during the peek.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS