Skip to content
CVE PROGRAM SOURCE RECORD8.6 High

CVE-2025-38608

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

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to < 6ba20ff3cdb96a908b9dc93cf247d0b087672e7caffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to < 849d24dc5aed45ebeb3490df429356739256ac40affected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to < 73fc5d04009d3969ff8e8574f0fd769f04124e59affected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to < 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bbaffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to < 0e853c1464bcf61207f8b5c32d2ac5ee495e859daffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to < ee03766d79de0f61ea29ffb6ab1c7b196ea1b02eaffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to < 90d6ef67440cec2a0aad71a0108c8f216437345caffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to < 1e480387d4b42776f8957fb148af9d75ce93b96daffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to < 178f6a5c8cb3b6be1602de0964cd440243f493c9affected

Linux Linux

Default version status: affected

  • 5.0affected
  • 0 to < 5.0unaffected
  • 5.4.297 to ≤ 5.4.*unaffected
  • 5.10.241 to ≤ 5.10.*unaffected
  • 5.15.190 to ≤ 5.15.*unaffected
  • 6.1.148 to ≤ 6.1.*unaffected
  • 6.6.102 to ≤ 6.6.*unaffected
  • 6.12.42 to ≤ 6.12.*unaffected
  • 6.15.10 to ≤ 6.15.*unaffected
  • 6.16.1 to ≤ 6.16.*unaffected
  • 6.17 to ≤ *unaffected

References