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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.57% (percentile 41, 2026-11-26)
- **Published:** 2025-10-04T07:31:07.871Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< b36462146d86b1f22e594fe4dae611dffacfb203; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 4cefe5be73886f383639fe0850bb72d5b568a7b9; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 208640e6225cc929a05adbf79d1df558add3e231; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 61ca2da5fb8f433ce8bbd1657c84a86272133e6b; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d
- Anyone running Linux 6.0

## 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 and fixed versions

- Linux: \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< b36462146d86b1f22e594fe4dae611dffacfb203; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 4cefe5be73886f383639fe0850bb72d5b568a7b9; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 208640e6225cc929a05adbf79d1df558add3e231; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 61ca2da5fb8f433ce8bbd1657c84a86272133e6b; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39946. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39946.md
Affected: Linux >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < b36462146d86b1f22e594fe4dae611dffacfb203; >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < 4cefe5be73886f383639fe0850bb72d5b568a7b9; >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < 208640e6225cc929a05adbf79d1df558add3e231; >= 84c61fe1a75b4255df1e1e7…
Fixed in: Linux 4cefe5be73886f383639fe0850bb72d5b568a7b9, Linux 208640e6225cc929a05adbf79d1df558add3e231, Linux 61ca2da5fb8f433ce8bbd1657c84a86272133e6b, Linux 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-39946 being exploited?

There is no confirmed exploitation: CVE-2025-39946 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-39946?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-39946?

Linux \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< b36462146d86b1f22e594fe4dae611dffacfb203; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 4cefe5be73886f383639fe0850bb72d5b568a7b9; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 208640e6225cc929a05adbf79d1df558add3e231; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 61ca2da5fb8f433ce8bbd1657c84a86272133e6b; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d; Linux 6.0.

### Is there a fix for CVE-2025-39946?

Yes. Fixed in Linux 4cefe5be73886f383639fe0850bb72d5b568a7b9, Linux 208640e6225cc929a05adbf79d1df558add3e231, Linux 61ca2da5fb8f433ce8bbd1657c84a86272133e6b, Linux 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d. Upgrade Linux to 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d or later.

### How do I check if I'm affected by CVE-2025-39946?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39946>

HTML: <https://flawdb.com/CVE-2025-39946> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39946>
