# CVE-2025-38608: bpf, ktls: Fix data corruption when using bpf_msg_pop_data() in ktls

- Severity: High 8.6 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-08-19T17:03:51.688Z
- Modified: 2026-10-15T22:18:47.043Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 6ba20ff3cdb96a908b9dc93cf247d0b087672e7c; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 849d24dc5aed45ebeb3490df429356739256ac40; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 73fc5d04009d3969ff8e8574f0fd769f04124e59; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 0e853c1464bcf61207f8b5c32d2ac5ee495e859d; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before ee03766d79de0f61ea29ffb6ab1c7b196ea1b02e; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 90d6ef67440cec2a0aad71a0108c8f216437345c; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 1e480387d4b42776f8957fb148af9d75ce93b96d; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 178f6a5c8cb3b6be1602de0964cd440243f493c9; 5.0 (not affected: before 5.0; from 5.4.297 up to 5.4.*; from 5.10.241 up to 5.10.*; from 5.15.190 up to 5.15.*; from 6.1.148 up to 6.1.*; from 6.6.102 up to 6.6.*; from 6.12.42 up to 6.12.*; from 6.15.10 up to 6.15.*; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 5.0 before 5.4.297; from 5.5 before 5.10.241; from 5.11 before 5.15.190; from 5.16 before 6.1.148; from 6.2 before 6.6.102; from 6.7 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38608](https://www.cve.org/CVERecord?id=CVE-2025-38608), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38608](https://nvd.nist.gov/vuln/detail/CVE-2025-38608), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38608 · Whole record: https://cve.day/CVE-2025-38608.json · Rebuilt by cve.day 2026-11-25T22:59:02.769Z
