CVE-2025-38616
tls: handle data disappearing from under the TLS ULP
Reported by linux · Published August 22, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 84c61fe1a75b4255df1e1e7c054c9e6d048da417, 84c61fe1a75b4255df1e1e7c054c9e6d048da417, 84c61fe1a75b4255df1e1e7c054c9e6d048da417 |
| Linux | Linux | 6.0, 0, 6.1.185 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| linux | linux_kernel | 6.0, 6.0, 6.0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.46-66.121 | 0 |
| Linux | Linux | 84c61fe1a75b4255df1e1e7c054c9e6d048da417, 6.1.185, 84c61fe1a75b4255df1e1e7c054c9e6d048da417 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
Timeline
- Aug 22, 2025 Coalition ESS Score (15 in total, the first dated here)
- Aug 22, 2025 CVE Published
- Aug 23, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (10 in total, the first dated here)
- Dec 15, 2025 Security Advisory (194 in total, the first dated here)
- Apr 20, 2026 Distribution Patch (144 in total, the first dated here)
- Aug 27, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38616
vulnetix vdb fixes CVE-2025-38616
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38616/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart