CVE-2026-43226
JSON

7.5high

net/rds: No shortcut out of RDS_CONN_ERROR

Severity
7.5high CVSS:3.1 by Linux
Exploit likelihood
0.52% (higher than 45% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net/rds: No shortcut out of RDS_CONN_ERROR RDS connections carry a state "rds_conn_path::cp_state" and transitions from one state to another and are conditional upon an expected state: "rds_conn_path_transition." There is one exception to this conditionality, which is "RDS_CONN_ERROR" that can be enforced by "rds_conn_path_drop" regardless of what state the condition is currently in. But as soon as a connection enters state "RDS_CONN_ERROR", the connection handling code expects it to go through the shutdown-path. The RDS/TCP multipath changes added a shortcut out of "RDS_CONN_ERROR" straight back to "RDS_CONN_CONNECTING" via "rds_tcp_accept_one_path" (e.g. after "rds_tcp_state_change"). A subsequent "rds_tcp_reset_callbacks" can then transition the state to "RDS_CONN_RESETTING" with a shutdown-worker queued. That'll trip up "rds_conn_init_shutdown", which was never adjusted to handle "RDS_CONN_RESETTING" and subsequently drops the connection with the dreaded "DR_INV_CONN_STATE", which leaves "RDS_SHUTDOWN_WORK_QUEUED" on forever. So we do two things here: a) Don't shortcut "RDS_CONN_ERROR", but take the longer path through the shutdown code. b) Add "RDS_CONN_RESETTING" to the expected states in "rds_conn_init_shutdown" so that we won't error out and get stuck, if we ever hit weird state transitions like this again."

Affected

Product or packageVersionsReported by
Linux Linuxfrom 5916e2c1554f3e36f770401c989c3c7fadf619ca before 9bcd7c00691a2db9745817d5ea79262a503b135c, from 5916e2c1554f3e36f770401c989c3c7fadf619ca before a179ac7be8f5a650d0068040705f4cddd6ca369c, from 5916e2c1554f3e36f770401c989c3c7fadf619ca before 19e384a7d00d888303a8285977cdf1970c6cccd6, from 5916e2c1554f3e36f770401c989c3c7fadf619ca before f0f729bdffb08af32e0f54521b81b8a9e0321f16, from 5916e2c1554f3e36f770401c989c3c7fadf619ca before 81248b1eb3c5954cc1fc7b33b7c03e34d20cb8c8, from 5916e2c1554f3e36f770401c989c3c7fadf619ca before 899ef00963ce76f9fc421a7d02335fe4ead6389b, from 5916e2c1554f3e36f770401c989c3c7fadf619ca before 9ff599a9be784a808c36765086e3db2144aa3b66, from 5916e2c1554f3e36f770401c989c3c7fadf619ca before ad22d24be635c6beab6a1fdd3f8b1f3c478d15da and 1 more
Not affected: before 4.8, from 5.10.252 up to 5.10.*, from 5.15.202 up to 5.15.*, from 6.1.165 up to 6.1.*, from 6.6.128 up to 6.6.*, from 6.12.75 up to 6.12.*
CVE List
linux linux_kernelfrom 4.8 before 5.10.252, from 5.11 before 5.15.202, from 5.16 before 6.1.165, from 6.2 before 6.6.128, from 6.7 before 6.12.75, from 6.13 before 6.18.16, from 6.19 before 6.19.6NVD

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net/rds: No shortcut out of RDS_CONN_ERROR RDS connections carry a state "rds_conn_path::cp_state" and transitions from one state to another and are conditional upon an expected state: "rds_conn_path_transition." There is one exception to this conditionality, which is "RDS_CONN_ERROR" that can be enforced by "rds_conn_path_drop" regardless of what state the condition is currently in. But as soon as a connection enters state "RDS_CONN_ERROR", the connection handling code expects it to go through the shutdown-path. The RDS/TCP multipath changes added a shortcut out of "RDS_CONN_ERROR" straight back to "RDS_CONN_CONNECTING" via "rds_tcp_accept_one_path" (e.g. after "rds_tcp_state_change"). A subsequent "rds_tcp_reset_callbacks" can then transition the state to "RDS_CONN_RESETTING" with a shutdown-worker queued. That'll trip up "rds_conn_init_shutdown", which was never adjusted to handle "RDS_CONN_RESETTING" and subsequently drops the connection with the dreaded "DR_INV_CONN_STATE", which leaves "RDS_SHUTDOWN_WORK_QUEUED" on forever. So we do two things here: a) Don't shortcut "RDS_CONN_ERROR", but take the longer path through the shutdown code. b) Add "RDS_CONN_RESETTING" to the expected states in "rds_conn_init_shutdown" so that we won't error out and get stuck, if we ever hit weird state transitions like this again."

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net/rds: Sin atajo para salir de RDS_CONN_ERROR Las conexiones RDS llevan un estado ’rds_conn_path::cp_state’ y las transiciones de un estado a otro son condicionales a un estado esperado: ’rds_conn_path_transition’. Hay una excepción a esta condicionalidad, que es ’RDS_CONN_ERROR’ que puede ser forzado por ’rds_conn_path_drop’ independientemente del estado en el que se encuentre actualmente la conexión. Pero tan pronto como una conexión entra en el estado ’RDS_CONN_ERROR’, el código de manejo de la conexión espera que pase por la ruta de apagado. Los cambios de multipath de RDS/TCP añadieron un atajo para salir de ’RDS_CONN_ERROR’ directamente de vuelta a ’RDS_CONN_CONNECTING’ a través de ’rds_tcp_accept_one_path’ (p. ej., después de ’rds_tcp_state_change’). Una ’rds_tcp_reset_callbacks’ subsiguiente puede entonces hacer la transición del estado a ’RDS_CONN_RESETTING’ con un trabajador de apagado en cola. Eso hará tropezar a ’rds_conn_init_shutdown’, que nunca fue ajustado para manejar ’RDS_CONN_RESETTING’ y posteriormente descarta la conexión con el temido ’DR_INV_CONN_STATE’, lo que deja ’RDS_SHUTDOWN_WORK_QUEUED’ activado para siempre. Así que hacemos dos cosas aquí: a) No atajar ’RDS_CONN_ERROR’, sino tomar la ruta más larga a través del código de apagado. b) Añadir ’RDS_CONN_RESETTING’ a los estados esperados en ’rds_conn_init_shutdown’ para que no fallemos y nos quedemos atascados, si alguna vez nos encontramos con transiciones de estado extrañas como esta de nuevo.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43226 changed 2026-08-05CVE Terms of Use
NVDCVE-2026-43226 changed 2026-11-11Public domain