CVE-2025-38608
JSON

8.6high

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

Severity
8.6high CVSS:3.1 by Linux
Exploit likelihood
0.47% (higher than 42% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 2 more
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.*
CVE List
linux linux_kernelfrom 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.1NVD
debian debian_linux11.0NVD

All scores

Linux8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-908

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf, ktls: Se corrige la corrupción de datos al usar bpf_msg_pop_data() en ktls. Al enviar datos de texto plano, inicialmente se calculaba la longitud del texto cifrado correspondiente. Sin embargo, si posteriormente se reducía la longitud de los datos de texto plano mediante la política de socket, no se podía recalcular la longitud del texto cifrado. Esto provoca que se transmitan búferes con datos sin inicializar durante la transmisión del texto cifrado. Esto provoca que se añadan bytes sin inicializar después de un paquete completo de "Datos de Aplicación", lo que genera errores en el receptor al analizar el registro TLS.

References

https://git.kernel.org/stable/c/6ba20ff3cdb96a908b9dc93cf247d0b087672e7cpatch
https://git.kernel.org/stable/c/849d24dc5aed45ebeb3490df429356739256ac40patch
https://git.kernel.org/stable/c/73fc5d04009d3969ff8e8574f0fd769f04124e59patch
https://git.kernel.org/stable/c/16aca8bb4ad0d8a13c8b6da4007f4e52d53035bbpatch
https://git.kernel.org/stable/c/0e853c1464bcf61207f8b5c32d2ac5ee495e859dpatch
https://git.kernel.org/stable/c/ee03766d79de0f61ea29ffb6ab1c7b196ea1b02epatch
https://git.kernel.org/stable/c/90d6ef67440cec2a0aad71a0108c8f216437345cpatch
https://git.kernel.org/stable/c/1e480387d4b42776f8957fb148af9d75ce93b96dpatch
https://git.kernel.org/stable/c/178f6a5c8cb3b6be1602de0964cd440243f493c9patch
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlthird-party-advisory
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlthird-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2025-38608 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-38608 changed 2026-10-15Public domain