CVE-2025-39946 Details
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.
A vulnerability in the Linux kernel's TLS stream handling can lead to a buffer overflow. This issue arises when the socket's buffer is too small to hold the entire record, causing the kernel to read data prematurely and potentially miss parsing the length correctly. As a result, invalid records can be processed, overwriting the allocated space in the socket's buffer. The vulnerability was introduced in a commit that changed how TLS records are parsed, and it can be exploited by sending headers in small, out-of-band transmissions, followed by a larger normal send that fills the receive buffer.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d | kernel.org | Patch |
| https://git.kernel.org/stable/c/208640e6225cc929a05adbf79d1df558add3e231 | kernel.org | Patch |
| https://git.kernel.org/stable/c/4cefe5be73886f383639fe0850bb72d5b568a7b9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/61ca2da5fb8f433ce8bbd1657c84a86272133e6b | kernel.org | Patch |
| https://git.kernel.org/stable/c/b36462146d86b1f22e594fe4dae611dffacfb203 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.0, < 6.1.154 >= 6.2, < 6.6.108 >= 6.7, < 6.12.49 >= 6.13, < 6.16.9 6.17 rc1 6.17 rc2 6.17 rc3 6.17 rc4 6.17 rc5 6.17 rc6 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 6, 2026 | Modified Analysis | [email protected] |
| Apr 2, 2026 | CVE Modified | kernel.org |
| Jan 27, 2026 | Initial Analysis | [email protected] |
| Oct 4, 2025 | New CVE Received | kernel.org |