9.8critical
tls: rx: restore msg_iter before TLS 1.3 optimistic retry
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.49% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: tls: rx: restore msg_iter before TLS 1.3 optimistic retry tls_decrypt_sg() advances msg->msg_iter when it maps user pages for the optimistic TLS 1.3 zero-copy path. If the decrypted record turns out not to be unpadded application data, tls_decrypt_sw() retries into a kernel skb, but leaves the iterator advanced. The subsequent copy from the skb then writes decrypted bytes again at a later point in the caller iovecs while recvmsg() reports only the post-retry length. A TLS peer can trigger this after the receiver enables TLS_RX_EXPECT_NO_PAD. Revert the iterator by the number of bytes consumed by the optimistic mapping before retrying without zero-copy. Add a selftest which sends a TLS 1.3 control record with TLS_RX_EXPECT_NO_PAD enabled and verifies that recvmsg() does not overwrite later iovecs beyond the returned length.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from ce61327ce989b63c0bd1cc7afee00e218ee696ac before 97004f3c17371ee1b259887298711e0604666688, from ce61327ce989b63c0bd1cc7afee00e218ee696ac before c71bacacd59166adbea423a04e7474b0e8245b84, from ce61327ce989b63c0bd1cc7afee00e218ee696ac before 3c4e21b1bf8e666a1c141e0f5813ece929570deb, from ce61327ce989b63c0bd1cc7afee00e218ee696ac before 68787940274ec89f41dc91b1a68ee1a16a90735f, from ce61327ce989b63c0bd1cc7afee00e218ee696ac before 3c837266a734e2a22b24d2d567404a501d405835, from ce61327ce989b63c0bd1cc7afee00e218ee696ac before 1c8629651cb54f7b51db8fc0b1a9944e4a4b0f5e, 6.0 Not affected: before 6.0, from 6.1.191 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.12.114 up to 6.12.*, from 6.18.45 up to 6.18.*, from 7.1.9 up to 7.1.* | CVE List |
Classification
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: tls: rx: restore msg_iter before TLS 1.3 optimistic retry tls_decrypt_sg() advances msg->msg_iter when it maps user pages for the optimistic TLS 1.3 zero-copy path. If the decrypted record turns out not to be unpadded application data, tls_decrypt_sw() retries into a kernel skb, but leaves the iterator advanced. The subsequent copy from the skb then writes decrypted bytes again at a later point in the caller iovecs while recvmsg() reports only the post-retry length. A TLS peer can trigger this after the receiver enables TLS_RX_EXPECT_NO_PAD. Revert the iterator by the number of bytes consumed by the optimistic mapping before retrying without zero-copy. Add a selftest which sends a TLS 1.3 control record with TLS_RX_EXPECT_NO_PAD enabled and verifies that recvmsg() does not overwrite later iovecs beyond the returned length.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: tls: rx: restaurar msg_iter antes del reintento optimista de TLS 1.3 tls_decrypt_sg() avanza msg -> msg_iter cuando mapea páginas de usuario para la ruta optimista de copia cero de TLS 1.3. Si el registro descifrado resulta no ser datos de aplicación sin relleno, tls_decrypt_sw() reintenta en un skb del kernel, pero deja el iterador avanzado. La copia subsiguiente del skb luego escribe bytes descifrados de nuevo en un punto posterior en los iovecs del llamador mientras que recvmsg() informa solo la longitud posterior al reintento. Un par TLS puede activar esto después de que el receptor habilite TLS_RX_EXPECT_NO_PAD. Revertir el iterador por el número de bytes consumidos por el mapeo optimista antes de reintentar sin copia cero. Añadir una autoprueba que envía un registro de control TLS 1.3 con TLS_RX_EXPECT_NO_PAD habilitado y verifica que recvmsg() no sobrescribe iovecs posteriores más allá de la longitud devuelta.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74611 changed 2026-10-30 | CVE Terms of Use |
| NVD | CVE-2026-74611 changed 2026-10-30 | Public domain |