Skip to main content
← All vulnerabilities
CVE-2025-38608

bpf, ktls: Fix data corruption when using bpf_msg_pop_data() in ktls

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.297, 5.10.241, 5.15.190, 6.1.148, 6.6.102, and 3 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 · fixed in 6ba20ff3cdb96a908b9dc93cf247d0b087672e7c; From 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 · fixed in 849d24dc5aed45ebeb3490df429356739256ac40; From 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 · fixed in 73fc5d04009d3969ff8e8574f0fd769f04124e59; From 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 · fixed in 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb; From 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 · fixed in 0e853c1464bcf61207f8b5c32d2ac5ee495e859d; From 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 · fixed in ee03766d79de0f61ea29ffb6ab1c7b196ea1b02e; From 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 · fixed in 90d6ef67440cec2a0aad71a0108c8f216437345c; From 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 · fixed in 1e480387d4b42776f8957fb148af9d75ce93b96d; From 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 · fixed in 178f6a5c8cb3b6be1602de0964cd440243f493c9

  • Linux Linux

    5.0

  • KernelLinux

    From 5.0.0 · fixed in 5.4.297; From 5.5.0 · fixed in 5.10.241; From 5.11.0 · fixed in 5.15.190; From 5.16.0 · fixed in 6.1.148; From 6.2.0 · fixed in 6.6.102; From 6.7.0 · fixed in 6.12.42; From 6.13.0 · fixed in 6.15.10; From 6.16.0 · fixed in 6.16.1

References 9

git.kernel.org