# CVE-2025-38608: bpf, ktls: Fix data corruption when using bpf\_msg\_pop\_data() in ktls

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

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.68% (percentile 48, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2025-08-19T17:03:51.688Z
- **Modified:** 2026-10-15T22:18:47.043Z

## Who should check

- Anyone running Linux \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 6ba20ff3cdb96a908b9dc93cf247d0b087672e7c; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 849d24dc5aed45ebeb3490df429356739256ac40; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 73fc5d04009d3969ff8e8574f0fd769f04124e59; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 0e853c1464bcf61207f8b5c32d2ac5ee495e859d; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< ee03766d79de0f61ea29ffb6ab1c7b196ea1b02e; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 90d6ef67440cec2a0aad71a0108c8f216437345c; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 1e480387d4b42776f8957fb148af9d75ce93b96d; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 178f6a5c8cb3b6be1602de0964cd440243f493c9
- Anyone running Linux 5.0

## Description

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

bpf, ktls: Fix data corruption when using bpf\_msg\_pop\_data() in ktls

When sending plaintext data, we initially calculated the corresponding
ciphertext length. However, if we later reduced the plaintext data length
via socket policy, we failed to recalculate the ciphertext length.

This results in transmitting buffers containing uninitialized data during
ciphertext transmission.

This causes uninitialized bytes to be appended after a complete
"Application Data" packet, leading to errors on the receiving end when
parsing TLS record.

## Affected and fixed versions

- Linux: \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 6ba20ff3cdb96a908b9dc93cf247d0b087672e7c; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 849d24dc5aed45ebeb3490df429356739256ac40; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 73fc5d04009d3969ff8e8574f0fd769f04124e59; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 0e853c1464bcf61207f8b5c32d2ac5ee495e859d; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< ee03766d79de0f61ea29ffb6ab1c7b196ea1b02e; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 90d6ef67440cec2a0aad71a0108c8f216437345c; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 1e480387d4b42776f8957fb148af9d75ce93b96d; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 178f6a5c8cb3b6be1602de0964cd440243f493c9 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-38608.md
Affected: Linux >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 6ba20ff3cdb96a908b9dc93cf247d0b087672e7c; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 849d24dc5aed45ebeb3490df429356739256ac40; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 73fc5d04009d3969ff8e8574f0fd769f04124e59; >= 7246d8ed4dcce23f7509949…
Fixed in: Linux 6ba20ff3cdb96a908b9dc93cf247d0b087672e7c, Linux 849d24dc5aed45ebeb3490df429356739256ac40, Linux 73fc5d04009d3969ff8e8574f0fd769f04124e59, Linux 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb, Linux 0e853c1464bcf61207f8b5c32d2ac5ee495e859d, Linux 90d6ef67440cec2a0aad71a0108c8f216437345c, Linux 1e480…

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

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

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

High: CVSS 8.6 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 6ba20ff3cdb96a908b9dc93cf247d0b087672e7c; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 849d24dc5aed45ebeb3490df429356739256ac40; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 73fc5d04009d3969ff8e8574f0fd769f04124e59; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 0e853c1464bcf61207f8b5c32d2ac5ee495e859d; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< ee03766d79de0f61ea29ffb6ab1c7b196ea1b02e; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 90d6ef67440cec2a0aad71a0108c8f216437345c; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 1e480387d4b42776f8957fb148af9d75ce93b96d; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 178f6a5c8cb3b6be1602de0964cd440243f493c9; Linux 5.0.

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

Yes. Fixed in Linux 6ba20ff3cdb96a908b9dc93cf247d0b087672e7c, Linux 849d24dc5aed45ebeb3490df429356739256ac40, Linux 73fc5d04009d3969ff8e8574f0fd769f04124e59, Linux 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb, Linux 0e853c1464bcf61207f8b5c32d2ac5ee495e859d, Linux 90d6ef67440cec2a0aad71a0108c8f216437345c, Linux 1e480387d4b42776f8957fb148af9d75ce93b96d, Linux 178f6a5c8cb3b6be1602de0964cd440243f493c9. Upgrade Linux to 178f6a5c8cb3b6be1602de0964cd440243f493c9 or later.

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

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/6ba20ff3cdb96a908b9dc93cf247d0b087672e7c>
- patch: <https://git.kernel.org/stable/c/849d24dc5aed45ebeb3490df429356739256ac40>
- patch: <https://git.kernel.org/stable/c/73fc5d04009d3969ff8e8574f0fd769f04124e59>
- patch: <https://git.kernel.org/stable/c/16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb>
- patch: <https://git.kernel.org/stable/c/0e853c1464bcf61207f8b5c32d2ac5ee495e859d>
- patch: <https://git.kernel.org/stable/c/ee03766d79de0f61ea29ffb6ab1c7b196ea1b02e>
- patch: <https://git.kernel.org/stable/c/90d6ef67440cec2a0aad71a0108c8f216437345c>
- patch: <https://git.kernel.org/stable/c/1e480387d4b42776f8957fb148af9d75ce93b96d>
- patch: <https://git.kernel.org/stable/c/178f6a5c8cb3b6be1602de0964cd440243f493c9>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

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

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