CVE-2024-57932
JSON

9.8critical

gve: guard XDP xmit NDO on existence of xdp queues

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
0.45% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: gve: guard XDP xmit NDO on existence of xdp queues In GVE, dedicated XDP queues only exist when an XDP program is installed and the interface is up. As such, the NDO XDP XMIT callback should return early if either of these conditions are false. In the case of no loaded XDP program, priv->num_xdp_queues=0 which can cause a divide-by-zero error, and in the case of interface down, num_xdp_queues remains untouched to persist XDP queue count for the next interface up, but the TX pointer itself would be NULL. The XDP xmit callback also needs to synchronize with a device transitioning from open to close. This synchronization will happen via the GVE_PRIV_FLAGS_NAPI_ENABLED bit along with a synchronize_net() call, which waits for any RCU critical sections at call-time to complete.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 39a7f4aa3e4a7947614cf1d5c27abba3300adb1e before cbe9eb2c39d09f3c8574febcfa39d8c09d0c7cb5, from 39a7f4aa3e4a7947614cf1d5c27abba3300adb1e before 35f44eed5828cf1bc7e760d1993ed8549ba41c7b, from 39a7f4aa3e4a7947614cf1d5c27abba3300adb1e before ff7c2dea9dd1a436fc79d6273adffdcc4a7ffea3, 6.4
Not affected: before 6.4, from 6.6.70 up to 6.6.*, from 6.12.9 up to 6.12.*, from 6.13 up to *
CVE List
linux linux_kernelfrom 6.4 before 6.6.70, from 6.7 before 6.12.9, 6.13NVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-369

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: gve: guard XDP xmit NDO on existence of xdp queues In GVE, dedicated XDP queues only exist when an XDP program is installed and the interface is up. As such, the NDO XDP XMIT callback should return early if either of these conditions are false. In the case of no loaded XDP program, priv->num_xdp_queues=0 which can cause a divide-by-zero error, and in the case of interface down, num_xdp_queues remains untouched to persist XDP queue count for the next interface up, but the TX pointer itself would be NULL. The XDP xmit callback also needs to synchronize with a device transitioning from open to close. This synchronization will happen via the GVE_PRIV_FLAGS_NAPI_ENABLED bit along with a synchronize_net() call, which waits for any RCU critical sections at call-time to complete.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: gve: guard XDP xmit NDO on existing xdp queues En GVE, las colas XDP dedicadas solo existen cuando se instala un programa XDP y la interfaz está activa. Como tal, la devolución de llamada NDO XDP XMIT debe regresar temprano si alguna de estas condiciones es falsa. En el caso de que no haya un programa XDP cargado, priv->num_xdp_queues=0 que puede causar un error de división por cero, y en el caso de que la interfaz esté inactiva, num_xdp_queues permanece intacto para persistir el conteo de colas XDP para la siguiente interfaz activa, pero el puntero TX en sí sería NULL. La devolución de llamada XDP xmit también necesita sincronizarse con un dispositivo que esté pasando de abierto a cerrado. Esta sincronización ocurrirá a través del bit GVE_PRIV_FLAGS_NAPI_ENABLED junto con una llamadasynchronous_net(), que espera a que se completen las secciones críticas de RCU en el momento de la llamada.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-57932 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-57932 changed 2026-10-15Public domain