CVE-2025-39946

tls: make sure to abort the stream if headers are bogus

9.8 critical EPSS 11.0%

Published 4 Oct 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2025-39946

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39946 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 11.0%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Jun 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 84c61fe1a75b4255df1e1e7c054c9e6d048da417, before b36462146d86b1f22e594fe4dae611dffacfb203
affected from 84c61fe1a75b4255df1e1e7c054c9e6d048da417, before 4cefe5be73886f383639fe0850bb72d5b568a7b9
affected from 84c61fe1a75b4255df1e1e7c054c9e6d048da417, before 208640e6225cc929a05adbf79d1df558add3e231
affected from 84c61fe1a75b4255df1e1e7c054c9e6d048da417, before 61ca2da5fb8f433ce8bbd1657c84a86272133e6b
affected from 84c61fe1a75b4255df1e1e7c054c9e6d048da417, before 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d
Other versions: unaffected
Linux
affected 6.0
unaffected before 6.0
unaffected from 6.1.154 up to and including 6.1.*
unaffected from 6.6.108 up to and including 6.6.*
unaffected from 6.12.49 up to and including 6.12.*
unaffected from 6.16.9 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39946 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39946

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-39946
trivy image --scanners vuln IMAGE | grep CVE-2025-39946

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-39946 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.