VDB

CVE-2026-64047

CVE-2026-64047 PUBLISHED CVSS 9.8 CRITICAL

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

Reported by linux · Published July 19, 2026

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).

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-perfAmazon Linux1:6.1.175-219.357.amzn2023
perf6.18Amazon Linux1:6.18.35-68.127.amzn2023
kernel6.18Amazon Linux1:6.18.35-68.127.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.92-122.166.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.92-122.166.amzn2023
kernel6.12-develAmazon Linux1:6.12.92-122.166.amzn2023
perfAmazon Linux1:6.1.175-219.357.amzn2023
kernel-livepatch-6.1.175-219.357Amazon Linux1:1.0-0.amzn2023
bpftool6.18Amazon Linux1:6.18.35-68.127.amzn2023
kernel-livepatch-6.18.35-68.127Amazon Linux1:1.0-0.amzn2023
kernel-headersAmazon Linux1:6.1.175-219.357.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.92-122.166.amzn2023

4 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux9aaaa56845a06aeabdd597cbe19492dc01f281ec, 9aaaa56845a06aeabdd597cbe19492dc01f281ec, 9aaaa56845a06aeabdd597cbe19492dc01f281ec
LinuxLinux5.5, 0, 5.10.258
amazon:2023python3-perf0
amazon:2023perf6.180
amazon:2023kernel6.180
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-devel0
amazon:2023perf0
amazon:2023kernel-livepatch-6.1.175-219.3570
amazon:2023bpftool6.180
amazon:2023kernel-livepatch-6.18.35-68.1270
amazon:2023kernel-headers0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-devel0
amazon:2023microvm-kernel6.180
linuxlinux_kernel5.5, 5.4.14, 5.5
amazon:2023kernel-modules-extra0
LinuxLinux7.1, 9aaaa56845a06aeabdd597cbe19492dc01f281ec, 9aaaa56845a06aeabdd597cbe19492dc01f281ec

…and 18 more

Timeline

  • Jul 19, 2026 CVE Published
  • Jul 20, 2026 Coalition ESS Score
  • Jul 20, 2026 Security Advisory (31 in total, the first dated here)
  • Jul 30, 2026 CVE Updated
  • Aug 7, 2026 EPSS Score (30 in total, the first dated here)
  • Aug 12, 2026 Distribution Patch (30 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-64047
vulnetix vdb fixes CVE-2026-64047

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64047/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›