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

CVE-2025-38608
HIGH 8.6

At a glance

Source
NVD
EPSS
EPSS 0.41 % · percentile 35 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-908 — Use of Uninitialized Resource

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.6CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:LLinux
CVSS 3.1HIGH 8.6CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:LNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 < 6ba20ff3cdb96a908b9dc93cf247d0b087672e7c ; affected 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 < 849d24dc5aed45ebeb3490df429356739256ac40 ; affected 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 < 73fc5d04009d3969ff8e8574f0fd769f04124e59 ; affected 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 < 16aca8bb4ad0d8a13c8b6da4007f4e52d53035bb ; affected 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 < 0e853c1464bcf61207f8b5c32d2ac5ee495e859d ; affected 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 < ee03766d79de0f61ea29ffb6ab1c7b196ea1b02e
Linux · Linuxaffected 5.0 ; unaffected 0 < 5.0 ; unaffected 5.4.297 ≤ 5.4.* ; unaffected 5.10.241 ≤ 5.10.* ; unaffected 5.15.190 ≤ 5.15.* ; unaffected 6.1.148 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD