9.8critical
tls: make sure to abort the stream if headers are bogus
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 11.0% (higher than 96% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: tls: make sure to abort the stream if headers are bogus Normally we wait for the socket to buffer up the whole record before we service it. If the socket has a tiny buffer, however, we read out the data sooner, to prevent connection stalls. Make sure that we abort the connection when we find out late that the record is actually invalid. Retrying the parsing is fine in itself but since we copy some more data each time before we parse we can overflow the allocated skb space. Constructing a scenario in which we're under pressure without enough data in the socket to parse the length upfront is quite hard. syzbot figured out a way to do this by serving us the header in small OOB sends, and then filling in the recvbuf with a large normal send. Make sure that tls_rx_msg_size() aborts strp, if we reach an invalid record there's really no way to recover.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 84c61fe1a75b4255df1e1e7c054c9e6d048da417 before b36462146d86b1f22e594fe4dae611dffacfb203, from 84c61fe1a75b4255df1e1e7c054c9e6d048da417 before 4cefe5be73886f383639fe0850bb72d5b568a7b9, from 84c61fe1a75b4255df1e1e7c054c9e6d048da417 before 208640e6225cc929a05adbf79d1df558add3e231, from 84c61fe1a75b4255df1e1e7c054c9e6d048da417 before 61ca2da5fb8f433ce8bbd1657c84a86272133e6b, from 84c61fe1a75b4255df1e1e7c054c9e6d048da417 before 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d, 6.0 Not affected: before 6.0, from 6.1.154 up to 6.1.*, from 6.6.108 up to 6.6.*, from 6.12.49 up to 6.12.*, from 6.16.9 up to 6.16.*, from 6.17 up to * | CVE List |
| linux linux_kernel | from 6.0 before 6.1.154, from 6.2 before 6.6.108, from 6.7 before 6.12.49, from 6.13 before 6.16.9, 6.17 | NVD |
All scores
| Linux | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
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: make sure to abort the stream if headers are bogus Normally we wait for the socket to buffer up the whole record before we service it. If the socket has a tiny buffer, however, we read out the data sooner, to prevent connection stalls. Make sure that we abort the connection when we find out late that the record is actually invalid. Retrying the parsing is fine in itself but since we copy some more data each time before we parse we can overflow the allocated skb space. Constructing a scenario in which we're under pressure without enough data in the socket to parse the length upfront is quite hard. syzbot figured out a way to do this by serving us the header in small OOB sends, and then filling in the recvbuf with a large normal send. Make sure that tls_rx_msg_size() aborts strp, if we reach an invalid record there's really no way to recover.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: tls: asegurarse de abortar el flujo si los encabezados son inválidos Normalmente esperamos a que el socket almacene en búfer todo el registro antes de procesarlo. Sin embargo, si el socket tiene un búfer diminuto, leemos los datos antes para evitar bloqueos de conexión. Asegurarse de que abortamos la conexión cuando descubrimos tarde que el registro es realmente inválido. Reintentar el análisis está bien en sí mismo, pero dado que copiamos más datos cada vez antes de analizar, podemos desbordar el espacio skb asignado. Construir un escenario en el que estamos bajo presión sin suficientes datos en el socket para analizar la longitud de antemano es bastante difícil. syzbot encontró una manera de hacer esto sirviéndonos el encabezado en pequeños envíos OOB, y luego llenando el recvbuf con un envío normal grande. Asegurarse de que tls_rx_msg_size() aborta strp; si llegamos a un registro inválido, realmente no hay forma de recuperarse.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-39946 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-39946 changed 2026-10-19 | Public domain |