CVE-2026-64047

net: tls: fix off-by-one in sg_chain entry count for wrapped sk_msg ring

9.8 critical EPSS 0.76%

Published 19 Jul 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-64047

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-64047 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

net: tls: fix off-by-one in sg_chain entry count for wrapped sk_msg ring

When an sk_msg scatterlist ring wraps (sg.end < sg.start), tls_push_record() chains the tail portion of the ring to the head using sg_chain(). An extra entry in the sg array is reserved for this:

struct sk_msg_sg { [...] /* The extra two elements: * 1) used for chaining the front and sections when the list becomes * partitioned (e.g. end < start). The crypto APIs require the * chaining; * 2) to chain tailer SG entries after the message. */ struct scatterlist data[MAX_MSG_FRAGS + 2];

The current code uses MAX_SKB_FRAGS + 1 as the ring size:

sg_chain(&msg_pl->sg.data[msg_pl->sg.start], MAX_SKB_FRAGS - msg_pl->sg.start + 1, msg_pl->sg.data);

This places the chain pointer at

sg_chain(data[start], (MAX_SKB_FRAGS - msg_start + 1) .. = &data[start] + (MAX_SKB_FRAGS - msg_start + 1) - 1 = data[start + (MAX_SKB_FRAGS - start + 1) - 1] = data[MAX_SKB_FRAGS]

instead of the true last entry. This is likely due to a "race" of the commit under Fixes landing close to commit 031097d9e079 ("bpf: sk_msg, zap ingress queue on psock down")

Convert to ARRAY_SIZE and drop the data[start] / - start (as suggested by Sabrina).

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.76%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 51.4% of all scored CVEs. Scores of 30 Nov 2026.

The assessment of CISA (SSVC, 16 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-191 Integer Underflow (Wrap or Wraparound)

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 9aaaa56845a06aeabdd597cbe19492dc01f281ec, before 73963a375885d5ccb7def39fd0b4f542e0f343dd
affected from 9aaaa56845a06aeabdd597cbe19492dc01f281ec, before 47110c3a9ac247b688657337f5981efcfcb240dc
affected from 9aaaa56845a06aeabdd597cbe19492dc01f281ec, before 84158c2997159df4a0d70cd9c46774512d32a522
affected from 9aaaa56845a06aeabdd597cbe19492dc01f281ec, before 131ef12057d92b77b636321b7849c69222405a97
affected from 9aaaa56845a06aeabdd597cbe19492dc01f281ec, before 66339b71f105e6f83e0da3b9583d95077534fe1d
affected from 9aaaa56845a06aeabdd597cbe19492dc01f281ec, before eca989eab4b2599dcb02f72140a7c08f08838520
affected from 9aaaa56845a06aeabdd597cbe19492dc01f281ec, before 2fb0dc7e0099686c4e9d2732745d8a31b18c3628
affected from 9aaaa56845a06aeabdd597cbe19492dc01f281ec, before 285943c6e7ca309bbea84b253745154241d9788a
affected d529d6c9f7e3aaeac13c4948f79799ccb825f29d
affected from 5.4.14, before 5.5
Other versions: unaffected
Linux
affected 5.5
unaffected before 5.5
unaffected from 5.10.258 up to and including 5.10.*
unaffected from 5.15.209 up to and including 5.15.*
unaffected from 6.1.175 up to and including 6.1.*
unaffected from 6.6.142 up to and including 6.6.*
unaffected from 6.12.92 up to and including 6.12.*
unaffected from 6.18.34 up to and including 6.18.*
unaffected from 7.0.11 up to and including 7.0.*
unaffected 7.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-64047 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-64047

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-64047
trivy image --scanners vuln IMAGE | grep CVE-2026-64047

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-64047 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.