CVE-2026-74686
rqspinlock: Reset tail when preserving queue on deadlock
Description
In the Linux kernel, the following vulnerability has been resolved: rqspinlock: Reset tail when preserving queue on deadlock Currently, the destruction of the waiter queue is suppressed for rqspinlock in cases where a deadlock is detected. Deadlock checks happen relatively frequently (on entry for AA, within 1ms for ABBA), and waiter threads may not be involved in locking scenarios involving deadlocks. Thus, it is useful to not flush the queue and let other waiters take a stab at acquiring the lock after we detect a deadlock and exit. However, we need to follow the same logic as what we did previously for the waitq_timeout label: reset the tail, and if we cannot, signal the next waiter appropriately. In case of deadlocks, this signal would just mark the MCS node as unlocked, and in case of timeouts, it would signal RES_TIMEOUT_VAL. The difference thus is in the value propagated, which decides whether the queue remains active or gets flushed. Not doing the tail reset, and waiting for the next waiter can lead to cases where we are the final waiter, and thus no next waiter arrives, leading to intermittent stalls in this path. Once the next waiter does join, we will be unblocked. In the theoretical case when the next waiter never joins, we risk stalling indefinitely. This can only happen for ABBA deadlocks, since entry into the wait queue is guarded with AA checks. A precise sequence of executions leading up to this scenario can be: CPU 0 holds lock A. CPU 1 holds lock B. CPU 2 attempts lock B, becomes the pending waiter for B. CPU 0 attempts lock B. B has locked+pending bits set, thus CPU 0 queues. CPU 1 attempts lock A. CPU 0 detects an ABBA deadlock. Once deadlock detection happens for CPU 0, it will sit waiting for the next waiter in the queue to populate node->next, which will experience delays until such a waiter arrives. Fix this by adjusting the logic for the check for deadlocks preceding the waitq_timeout label. It would make sense to consolidate code for both cases and use 'ret' to distinguish the value being propagated, but that is left as an exercise for a future refactoring task to avoid diff noise in this patch.
INFO
Published Date :
Aug. 22, 2026, 4:16 p.m.
Last Modified :
Oct. 14, 2026, 1:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Apply the kernel patch for rqspinlock deadlock fix.
- Ensure the next waiter is signaled correctly.
- Monitor system stability after applying the patch.
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-2026-74686.
| URL | Resource |
|---|---|
| https://git.kernel.org/stable/c/7a3c0289c3c8eb4607dff448ae9ff9f902c813af | |
| https://git.kernel.org/stable/c/f54667b0c16213285c9d9b8e3929f738b8f71826 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-74686 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-2026-74686
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-2026-74686 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-74686 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, la siguiente vulnerabilidad ha sido resuelta: rqspinlock: Reiniciar el final al preservar la cola en caso de interbloqueo Actualmente, la destrucción de la cola de espera se suprime para rqspinlock en los casos en que se detecta un interbloqueo. Las comprobaciones de interbloqueo ocurren con relativa frecuencia (al entrar para AA, dentro de 1ms para ABBA), y los hilos de espera pueden no estar involucrados en escenarios de bloqueo que implican interbloqueos. Por lo tanto, es útil no vaciar la cola y permitir que otros hilos de espera intenten adquirir el bloqueo después de que detectemos un interbloqueo y salgamos. Sin embargo, necesitamos seguir la misma lógica que la que hicimos previamente para la etiqueta waitq_timeout: reiniciar el final, y si no podemos, señalar al siguiente hilo de espera apropiadamente. En caso de interbloqueos, esta señal simplemente marcaría el nodo MCS como desbloqueado, y en caso de tiempos de espera, señalaría RES_TIMEOUT_VAL. La diferencia, por lo tanto, radica en el valor propagado, que decide si la cola permanece activa o se vacía. No realizar el reinicio del final, y esperar al siguiente hilo de espera puede llevar a casos en los que somos el último hilo de espera, y, por lo tanto, no llega ningún siguiente hilo de espera, lo que provoca bloqueos intermitentes en esta ruta. Una vez que el siguiente hilo de espera se une, seremos desbloqueados. En el caso teórico cuando el siguiente hilo de espera nunca se une, corremos el riesgo de un bloqueo indefinido. Esto solo puede ocurrir para interbloqueos ABBA, ya que la entrada a la cola de espera está protegida con comprobaciones AA. Una secuencia precisa de ejecuciones que conduce a este escenario puede ser: La CPU 0 mantiene el bloqueo A. La CPU 1 mantiene el bloqueo B. La CPU 2 intenta el bloqueo B, se convierte en el hilo de espera pendiente para B. La CPU 0 intenta el bloqueo B. B tiene los bits de bloqueado+pendiente establecidos, por lo tanto, la CPU 0 se encola. La CPU 1 intenta el bloqueo A. La CPU 0 detecta un interbloqueo ABBA. Una vez que la detección de interbloqueo ocurre para la CPU 0, se quedará esperando al siguiente hilo de espera en la cola para poblar node -> next, lo que experimentará retrasos hasta que llegue dicho hilo de espera. Solucione esto ajustando la lógica para la comprobación de interbloqueos que precede a la etiqueta waitq_timeout. Tendría sentido consolidar el código para ambos casos y usar 'ret' para distinguir el valor que se propaga, pero eso se deja como un ejercicio para una futura tarea de refactorización para evitar ruido en el diff de este parche. -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 22, 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': '7bd6e5ce5be666fb3fb873bf20f77e62555b7835', 'lessThan': 'f54667b0c16213285c9d9b8e3929f738b8f71826', 'versionType': 'git'}, {'status': 'affected', 'version': '7bd6e5ce5be666fb3fb873bf20f77e62555b7835', 'lessThan': '7a3c0289c3c8eb4607dff448ae9ff9f902c813af', 'versionType': 'git'}], 'programFiles': ['kernel/bpf/rqspinlock.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.19'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.19', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '7.1.9', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['kernel/bpf/rqspinlock.c'], 'defaultStatus': 'affected'}] Added Description In the Linux kernel, the following vulnerability has been resolved: rqspinlock: Reset tail when preserving queue on deadlock Currently, the destruction of the waiter queue is suppressed for rqspinlock in cases where a deadlock is detected. Deadlock checks happen relatively frequently (on entry for AA, within 1ms for ABBA), and waiter threads may not be involved in locking scenarios involving deadlocks. Thus, it is useful to not flush the queue and let other waiters take a stab at acquiring the lock after we detect a deadlock and exit. However, we need to follow the same logic as what we did previously for the waitq_timeout label: reset the tail, and if we cannot, signal the next waiter appropriately. In case of deadlocks, this signal would just mark the MCS node as unlocked, and in case of timeouts, it would signal RES_TIMEOUT_VAL. The difference thus is in the value propagated, which decides whether the queue remains active or gets flushed. Not doing the tail reset, and waiting for the next waiter can lead to cases where we are the final waiter, and thus no next waiter arrives, leading to intermittent stalls in this path. Once the next waiter does join, we will be unblocked. In the theoretical case when the next waiter never joins, we risk stalling indefinitely. This can only happen for ABBA deadlocks, since entry into the wait queue is guarded with AA checks. A precise sequence of executions leading up to this scenario can be: CPU 0 holds lock A. CPU 1 holds lock B. CPU 2 attempts lock B, becomes the pending waiter for B. CPU 0 attempts lock B. B has locked+pending bits set, thus CPU 0 queues. CPU 1 attempts lock A. CPU 0 detects an ABBA deadlock. Once deadlock detection happens for CPU 0, it will sit waiting for the next waiter in the queue to populate node->next, which will experience delays until such a waiter arrives. Fix this by adjusting the logic for the check for deadlocks preceding the waitq_timeout label. It would make sense to consolidate code for both cases and use 'ret' to distinguish the value being propagated, but that is left as an exercise for a future refactoring task to avoid diff noise in this patch. Added Reference https://git.kernel.org/stable/c/7a3c0289c3c8eb4607dff448ae9ff9f902c813af Added Reference https://git.kernel.org/stable/c/f54667b0c16213285c9d9b8e3929f738b8f71826