# CVE-2025-39946: tls: make sure to abort the stream if headers are bogus

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 11.0%, higher than 96% of CVEs (2026-12-01)
- Published: 2025-10-04T07:31:07.871Z
- Modified: 2026-10-19T21:10:00.160Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b36462146d86b1f22e594fe4dae611dffacfb203> (patch)
- <https://git.kernel.org/stable/c/4cefe5be73886f383639fe0850bb72d5b568a7b9> (patch)
- <https://git.kernel.org/stable/c/208640e6225cc929a05adbf79d1df558add3e231> (patch)
- <https://git.kernel.org/stable/c/61ca2da5fb8f433ce8bbd1657c84a86272133e6b> (patch)
- <https://git.kernel.org/stable/c/0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d> (patch)

## Sources

- CVE List: [CVE-2025-39946](https://www.cve.org/CVERecord?id=CVE-2025-39946), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-39946](https://nvd.nist.gov/vuln/detail/CVE-2025-39946), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39946 · Whole record: https://cve.day/CVE-2025-39946.json · Rebuilt by cve.day 2026-11-25T22:59:05.524Z
