Katalog CVE

CVE-2024-57843

KrytyczneCVSS 9.8
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.20%

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

Streszczenie

W jądrze Linux w sterowniku virtio-net występuje błąd przepełnienia w funkcji virtnet_rq_alloc. Gdy fragment (frag) ma rozmiar jednej strony, a całkowity rozmiar bufora wraz z strukturą virtnet_rq_dma przekracza rozmiar strony, może dojść do przepełnienia, co prowadzi do awarii systemu lub błędów SCP.

Ocena ryzyka

Ryzyko obejmuje awarie systemu (crash) i problemy z transmisją danych (np. błędy SCP), szczególnie gdy sysctl net.core.high_order_alloc_disable jest ustawione na 1, co może wpływać na stabilność maszyn wirtualnych.

Rekomendacja

Zaleca się aktualizację jądra Linux do wersji zawierającej poprawkę, która zmniejsza długość bufora, gdy rozmiar fragmentu jest niewystarczający, aby zapobiec przepełnieniu.

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

In the Linux kernel, the following vulnerability has been resolved: virtio-net: fix overflow inside virtnet_rq_alloc When the frag just got a page, then may lead to regression on VM. Specially if the sysctl net.core.high_order_alloc_disable value is 1, then the frag always get a page when do refill. Which could see reliable crashes or scp failure (scp a file 100M in size to VM). The issue is that the virtnet_rq_dma takes up 16 bytes at the beginning of a new frag. When the frag size is larger than PAGE_SIZE, everything is fine. However, if the frag is only one page and the total size of the buffer and virtnet_rq_dma is larger than one page, an overflow may occur. The commit f9dac92ba908 ("virtio_ring: enable premapped mode whatever use_dma_api") introduced this problem. And we reverted some commits to fix this in last linux version. Now we try to enable it and fix this bug directly. Here, when the frag size is not enough, we reduce the buffer len to fix this problem.

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