CVE-2025-68232
veth: more robust handing of race to avoid txq getting stuck
Description
In the Linux kernel, the following vulnerability has been resolved: veth: more robust handing of race to avoid txq getting stuck Commit dc82a33297fc ("veth: apply qdisc backpressure on full ptr_ring to reduce TX drops") introduced a race condition that can lead to a permanently stalled TXQ. This was observed in production on ARM64 systems (Ampere Altra Max). The race occurs in veth_xmit(). The producer observes a full ptr_ring and stops the queue (netif_tx_stop_queue()). The subsequent conditional logic, intended to re-wake the queue if the consumer had just emptied it (if (__ptr_ring_empty(...)) netif_tx_wake_queue()), can fail. This leads to a "lost wakeup" where the TXQ remains stopped (QUEUE_STATE_DRV_XOFF) and traffic halts. This failure is caused by an incorrect use of the __ptr_ring_empty() API from the producer side. As noted in kernel comments, this check is not guaranteed to be correct if a consumer is operating on another CPU. The empty test is based on ptr_ring->consumer_head, making it reliable only for the consumer. Using this check from the producer side is fundamentally racy. This patch fixes the race by adopting the more robust logic from an earlier version V4 of the patchset, which always flushed the peer: (1) In veth_xmit(), the racy conditional wake-up logic and its memory barrier are removed. Instead, after stopping the queue, we unconditionally call __veth_xdp_flush(rq). This guarantees that the NAPI consumer is scheduled, making it solely responsible for re-waking the TXQ. This handles the race where veth_poll() consumes all packets and completes NAPI *before* veth_xmit() on the producer side has called netif_tx_stop_queue. The __veth_xdp_flush(rq) will observe rx_notify_masked is false and schedule NAPI. (2) On the consumer side, the logic for waking the peer TXQ is moved out of veth_xdp_rcv() and placed at the end of the veth_poll() function. This placement is part of fixing the race, as the netif_tx_queue_stopped() check must occur after rx_notify_masked is potentially set to false during NAPI completion. This handles the race where veth_poll() consumes all packets, but haven't finished (rx_notify_masked is still true). The producer veth_xmit() stops the TXQ and __veth_xdp_flush(rq) will observe rx_notify_masked is true, meaning not starting NAPI. Then veth_poll() change rx_notify_masked to false and stops NAPI. Before exiting veth_poll() will observe TXQ is stopped and wake it up.
INFO
Published Date :
Dec. 16, 2025, 2:15 p.m.
Last Modified :
Oct. 14, 2026, 1:10 p.m.
Remotely Exploit :
Yes !
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Update the Linux kernel to a patched version.
- Apply commit dc82a33297fc and subsequent fixes.
- Ensure kernel network stack is up-to-date.
- Test network transmission after updates.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-68232.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-68232 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-68232
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-68232 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-68232 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 14, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: veth: manejo más robusto de la condición de carrera para evitar que la txq se atasque El commit dc82a33297fc ('veth: apply qdisc backpressure on full ptr_ring to reduce TX drops') introdujo una condición de carrera que puede llevar a una TXQ permanentemente estancada. Esto se observó en producción en sistemas ARM64 (Ampere Altra Max). La condición de carrera ocurre en veth_xmit(). El productor observa un ptr_ring lleno y detiene la cola (netif_tx_stop_queue()). La lógica condicional subsiguiente, destinada a reactivar la cola si el consumidor la acababa de vaciar (if (__ptr_ring_empty(...)) netif_tx_wake_queue()), puede fallar. Esto lleva a un 'despertar perdido' (lost wakeup) donde la TXQ permanece detenida (QUEUE_STATE_DRV_XOFF) y el tráfico se detiene. Este fallo es causado por un uso incorrecto de la API __ptr_ring_empty() desde el lado del productor. Como se señala en los comentarios del kernel, no se garantiza que esta comprobación sea correcta si un consumidor está operando en otra CPU. La prueba de vacío se basa en ptr_ring -> consumer_head, lo que la hace fiable solo para el consumidor. Usar esta comprobación desde el lado del productor es fundamentalmente propenso a condiciones de carrera. Este parche corrige la condición de carrera adoptando la lógica más robusta de una versión anterior V4 del conjunto de parches, que siempre vaciaba el par: (1) En veth_xmit(), se eliminan la lógica de activación condicional propensa a condiciones de carrera y su barrera de memoria. En su lugar, después de detener la cola, llamamos incondicionalmente a __veth_xdp_flush(rq). Esto garantiza que el consumidor NAPI sea programado, haciéndolo el único responsable de reactivar la TXQ. Esto maneja la condición de carrera donde veth_poll() consume todos los paquetes y completa NAPI antes de que veth_xmit() en el lado del productor haya llamado a netif_tx_stop_queue. La llamada a __veth_xdp_flush(rq) observará que rx_notify_masked es falso y programará NAPI. (2) En el lado del consumidor, la lógica para activar la TXQ par se mueve de veth_xdp_rcv() y se coloca al final de la función veth_poll(). Esta ubicación es parte de la corrección de la condición de carrera, ya que la comprobación netif_tx_queue_stopped() debe ocurrir después de que rx_notify_masked se establezca potencialmente en falso durante la finalización de NAPI. Esto maneja la condición de carrera donde veth_poll() consume todos los paquetes, pero no ha terminado (rx_notify_masked sigue siendo verdadero). El productor veth_xmit() detiene la TXQ y __veth_xdp_flush(rq) observará que rx_notify_masked es verdadero, lo que significa no iniciar NAPI. Luego veth_poll() cambia rx_notify_masked a falso y detiene NAPI. Antes de salir, veth_poll() observará que la TXQ está detenida y la activará. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 30, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '9fe31b3f314534e238aa6d0b6fb492134cbcf8be', 'lessThan': 'dd419a3f2ebc18cc00bc32c57fd052d7a188b78b', 'versionType': 'git'}, {'status': 'affected', 'version': 'dc82a33297fc2c58cb0b2b008d728668d45c0f6a', 'lessThan': '6c8a8b9257a660e622689e23c8fbad4ba2b561b9', 'versionType': 'git'}, {'status': 'affected', 'version': 'dc82a33297fc2c58cb0b2b008d728668d45c0f6a', 'lessThan': '5442a9da69789741bfda39f34ee7f69552bf0c56', 'versionType': 'git'}], 'programFiles': ['drivers/net/veth.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.16'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.16', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.17.10', 'versionType': 'semver', 'lessThanOrEqual': '6.17.*'}, {'status': 'unaffected', 'version': '6.18', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/net/veth.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 16, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: veth: more robust handing of race to avoid txq getting stuck Commit dc82a33297fc ("veth: apply qdisc backpressure on full ptr_ring to reduce TX drops") introduced a race condition that can lead to a permanently stalled TXQ. This was observed in production on ARM64 systems (Ampere Altra Max). The race occurs in veth_xmit(). The producer observes a full ptr_ring and stops the queue (netif_tx_stop_queue()). The subsequent conditional logic, intended to re-wake the queue if the consumer had just emptied it (if (__ptr_ring_empty(...)) netif_tx_wake_queue()), can fail. This leads to a "lost wakeup" where the TXQ remains stopped (QUEUE_STATE_DRV_XOFF) and traffic halts. This failure is caused by an incorrect use of the __ptr_ring_empty() API from the producer side. As noted in kernel comments, this check is not guaranteed to be correct if a consumer is operating on another CPU. The empty test is based on ptr_ring->consumer_head, making it reliable only for the consumer. Using this check from the producer side is fundamentally racy. This patch fixes the race by adopting the more robust logic from an earlier version V4 of the patchset, which always flushed the peer: (1) In veth_xmit(), the racy conditional wake-up logic and its memory barrier are removed. Instead, after stopping the queue, we unconditionally call __veth_xdp_flush(rq). This guarantees that the NAPI consumer is scheduled, making it solely responsible for re-waking the TXQ. This handles the race where veth_poll() consumes all packets and completes NAPI *before* veth_xmit() on the producer side has called netif_tx_stop_queue. The __veth_xdp_flush(rq) will observe rx_notify_masked is false and schedule NAPI. (2) On the consumer side, the logic for waking the peer TXQ is moved out of veth_xdp_rcv() and placed at the end of the veth_poll() function. This placement is part of fixing the race, as the netif_tx_queue_stopped() check must occur after rx_notify_masked is potentially set to false during NAPI completion. This handles the race where veth_poll() consumes all packets, but haven't finished (rx_notify_masked is still true). The producer veth_xmit() stops the TXQ and __veth_xdp_flush(rq) will observe rx_notify_masked is true, meaning not starting NAPI. Then veth_poll() change rx_notify_masked to false and stops NAPI. Before exiting veth_poll() will observe TXQ is stopped and wake it up. Added Reference https://git.kernel.org/stable/c/5442a9da69789741bfda39f34ee7f69552bf0c56 Added Reference https://git.kernel.org/stable/c/6c8a8b9257a660e622689e23c8fbad4ba2b561b9 Added Reference https://git.kernel.org/stable/c/dd419a3f2ebc18cc00bc32c57fd052d7a188b78b