# CVE-2025-38616: tls: handle data disappearing from under the TLS ULP

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-08-22T13:01:23.217Z
- **Modified:** 2026-08-27T13:16:37.357Z

## Who should check

- Anyone running Linux \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< ef50eaab631f9bf519ddbdfa42ccb0528adc1fc8; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< f1fe99919f629f980d0b8a7ff16950bffe06a859; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< eb0336f213fe88bbdb7d2b19c9c9ec19245a3155; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< db3658a12d5ec4db7185ae7476151a50521b7207; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 2fb97ed9e2672b4f6e24ce206ac1a875ce4bcb38; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 6db015fc4b5d5f63a64a193f65d98da3a7fc811d
- Anyone running Linux 6.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

tls: handle data disappearing from under the TLS ULP

TLS expects that it owns the receive queue of the TCP socket.
This cannot be guaranteed in case the reader of the TCP socket
entered before the TLS ULP was installed, or uses some non-standard
read API (eg. zerocopy ones). Replace the WARN\_ON() and a buggy
early exit (which leaves anchor pointing to a freed skb) with real
error handling. Wipe the parsing state and tell the reader to retry.

We already reload the anchor every time we (re)acquire the socket lock,
so the only condition we need to avoid is an out of bounds read
(not having enough bytes in the socket for previously parsed record len).

If some data was read from under TLS but there's enough in the queue
we'll reload and decrypt what is most likely not a valid TLS record.
Leading to some undefined behavior from TLS perspective (corrupting
a stream? missing an alert? missing an attack?) but no kernel crash
should take place.

## Affected and fixed versions

- Linux: \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< ef50eaab631f9bf519ddbdfa42ccb0528adc1fc8; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< f1fe99919f629f980d0b8a7ff16950bffe06a859; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< eb0336f213fe88bbdb7d2b19c9c9ec19245a3155; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< db3658a12d5ec4db7185ae7476151a50521b7207; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 2fb97ed9e2672b4f6e24ce206ac1a875ce4bcb38; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 6db015fc4b5d5f63a64a193f65d98da3a7fc811d (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 6db015fc4b5d5f63a64a193f65d98da3a7fc811d 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-38616. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38616.md
Affected: Linux >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < ef50eaab631f9bf519ddbdfa42ccb0528adc1fc8; >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < f1fe99919f629f980d0b8a7ff16950bffe06a859; >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < eb0336f213fe88bbdb7d2b19c9c9ec19245a3155; >= 84c61fe1a75b4255df1e1e7…
Fixed in: Linux 2fb97ed9e2672b4f6e24ce206ac1a875ce4bcb38, Linux 6db015fc4b5d5f63a64a193f65d98da3a7fc811d

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-38616 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< ef50eaab631f9bf519ddbdfa42ccb0528adc1fc8; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< f1fe99919f629f980d0b8a7ff16950bffe06a859; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< eb0336f213fe88bbdb7d2b19c9c9ec19245a3155; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< db3658a12d5ec4db7185ae7476151a50521b7207; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 2fb97ed9e2672b4f6e24ce206ac1a875ce4bcb38; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 6db015fc4b5d5f63a64a193f65d98da3a7fc811d; Linux 6.0.

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

Yes. Fixed in Linux 2fb97ed9e2672b4f6e24ce206ac1a875ce4bcb38, Linux 6db015fc4b5d5f63a64a193f65d98da3a7fc811d. Upgrade Linux to 6db015fc4b5d5f63a64a193f65d98da3a7fc811d or later.

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

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/f1fe99919f629f980d0b8a7ff16950bffe06a859>
- patch: <https://git.kernel.org/stable/c/eb0336f213fe88bbdb7d2b19c9c9ec19245a3155>
- patch: <https://git.kernel.org/stable/c/db3658a12d5ec4db7185ae7476151a50521b7207>
- patch: <https://git.kernel.org/stable/c/2fb97ed9e2672b4f6e24ce206ac1a875ce4bcb38>
- patch: <https://git.kernel.org/stable/c/6db015fc4b5d5f63a64a193f65d98da3a7fc811d>
- other: <https://git.kernel.org/stable/c/ef50eaab631f9bf519ddbdfa42ccb0528adc1fc8>

## 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-38616>

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