CVE-2025-38608

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

State
Published
Severity
8.6 High
Published
Aug 19, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.6 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:LLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to before 6ba20ff3cdb96a908b9dc93cf247d0b087672e7cAffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to before 849d24dc5aed45ebeb3490df429356739256ac40Affected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to before 73fc5d04009d3969ff8e8574f0fd769f04124e59Affected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to before 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bbAffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to before 0e853c1464bcf61207f8b5c32d2ac5ee495e859dAffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to before ee03766d79de0f61ea29ffb6ab1c7b196ea1b02eAffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to before 90d6ef67440cec2a0aad71a0108c8f216437345cAffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to before 1e480387d4b42776f8957fb148af9d75ce93b96dAffected
  • 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 to before 178f6a5c8cb3b6be1602de0964cd440243f493c9Affected
LinuxLinux
  • 5.0Affected
  • before 5.0Not affected
  • 5.4.297 through 5.4.*Not affected
  • 5.10.241 through 5.10.*Not affected
  • 5.15.190 through 5.15.*Not affected
  • 6.1.148 through 6.1.*Not affected
  • 6.6.102 through 6.6.*Not affected
  • 6.12.42 through 6.12.*Not affected
  • 6.15.10 through 6.15.*Not affected
  • 6.16.1 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.