net: tls: prevent chain-after-chain in plain text SG (Linux Linux)

CVE-2026-64046
CRITICAL 9.8

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: net: tls: prevent chain-after-chain in plain text SG Sashiko points out that if end = 0 (start != 0) the current code will create a chain link to content type right after the wrap link: This would create a chain where the wrap link points directly to another chain link. The scatterlist API sg_next iterator does not recursively resolve consecutive chain links. meaning this is illegal input to crypto. The wrapping link is unnecessary if end = 0. end is the entry after the last one used so end = 0 means there's nothing pushed after the wrap: end start i v v v [ ]...[ ][ d ][ d ][ d ][ d ][rsv for wrap] Skip the wrapping in this case. TLS 1.3 can use the "wrapping slot" for it's chaining if end = 0. This avoids the chain-after-chain. Move the wrap chaining before marking END and chaining off content type, that feels like more logical ordering to me, but should not matter from functional perspective.

Weaknesses (CWE)

  • CWE-20 — Improper Input Validation

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 9aaaa56845a06aeabdd597cbe19492dc01f281ec < 49a5faaa471ddcd37b6893970c9916eb836e7c31 ; affected 9aaaa56845a06aeabdd597cbe19492dc01f281ec < 91359966e247c0244c66d50bbb8e74aefa4321c3 ; affected 9aaaa56845a06aeabdd597cbe19492dc01f281ec < 410351158dfef2d67fea6603680b3a6013c6ed9d ; affected 9aaaa56845a06aeabdd597cbe19492dc01f281ec < acdc12b71c9aa4be5dcd2c8062753c6d2033e235 ; affected 9aaaa56845a06aeabdd597cbe19492dc01f281ec < 929b1548e63ac72e104c07d8ee8cbbeeba2fa89a ; affected 9aaaa56845a06aeabdd597cbe19492dc01f281ec < af855f4c966afafef74faf8390c7b86568c0d46d
Linux · Linuxaffected 5.5 ; unaffected 0 < 5.5 ; unaffected 5.10.258 ≤ 5.10.* ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.142 ≤ 6.6.*

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