Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-64047

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

CVE-2026-64047

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

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

net: tls: fix off-by-one in sgchain entry count for wrapped skmsg ring

When an sk_msg scatterlist ring wraps (sg.end < sg.start),

tlspushrecord() 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 skmsgsg {

        [...]

        /* 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[MAXMSGFRAGS + 2];

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

    sgchain(&msgpl->sg.data[msg_pl->sg.start],

             MAXSKBFRAGS - msg_pl->sg.start + 1,

             msg_pl->sg.data);

This places the chain pointer at

  sgchain(data[start], (MAXSKBFRAGS - msgstart + 1) .. =

  &data[start] + (MAXSKBFRAGS - msg_start + 1) - 1 =

  data[start + (MAXSKBFRAGS - start + 1) - 1] =

  data[MAXSKBFRAGS]

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

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://git.kernel.org/stable/c/131ef12057d92b77b636321b7849c69222405a97, https://git.kernel.org/stable/c/285943c6e7ca309bbea84b253745154241d9788a, https://git.kernel.org/stable/c/2fb0dc7e0099686c4e9d2732745d8a31b18c3628, https://git.kernel.org/stable/c/47110c3a9ac247b688657337f5981efcfcb240dc, https://git.kernel.org/stable/c/66339b71f105e6f83e0da3b9583d95077534fe1d, https://git.kernel.org/stable/c/73963a375885d5ccb7def39fd0b4f542e0f343dd, https://git.kernel.org/stable/c/84158c2997159df4a0d70cd9c46774512d32a522, https://git.kernel.org/stable/c/eca989eab4b2599dcb02f72140a7c08f08838520, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64047.json, https://nvd.nist.gov/vuln/detail/CVE-2026-64047, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.00514%
EPSS Percentile
0.41791%
Introduced Version
9aaaa56845a06aeabdd597cbe19492dc01f281ec,0,5.4.14,5.5.0,5.11.0,5.16.0,6.2.0,6.7.0,6.13.0,6.19.0
Fix Available
285943c6e7ca309bbea84b253745154241d9788a,5.5,5.10.258,5.15.209,6.1.175,6.6.142,6.12.92,6.18.34,7.0.11,6.1.176-1,6.12.94-1,5.15.0-1112.119~20.04.1,5.15.0-1117.126~20.04.1,5.15.0-1117.126~20.04.2,5.15.0-1112.122~20.04.1,5.15.0-186.196~20.04.1,5.15.0-1106.110~20.04.1,5.15.0-1107.113~20.04.1,5.15.0-184.194~20.04.1,5.15.0-1064.66~20.04.1,5.15.0-1109.115~20.04.1,7.0.0-28.28~24.04.1,7.0.0-1016.16~24.04.1,7.0.0-28.28.1~24.04.3,5.15.0-186.196,5.15.0-1112.119,5.15.0-1117.126,5.15.0-1112.122,5.15.0-1108.114,5.15.0-1095.103,5.15.0-1106.110,5.15.0-1107.113,5.15.0-1104.109,5.15.0-184.194,5.15.0-1107.108,5.15.0-1064.66,5.15.0-1053.53,5.15.0-1109.115,5.15.0-1075.79,0:5.15.0-323.211.3.3.el8uek,0:5.15.0-323.211.3.3.el9uek,0:5.10.258-257.1041.amzn2,0:1.0-0.amzn2,0:5.15.209-147.245.amzn2,1:6.18.35-68.127.amzn2023,1:1.0-0.amzn2023,1:6.1.175-219.357.amzn2023,1:6.12.92-122.166.amzn2023

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading