# CVE-2026-64047: net: tls: fix off-by-one in sg\_chain entry count for wrapped sk\_msg ring

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **CWE:** CWE-193, CWE-191
- **Published:** 2026-07-19T15:39:31.960Z
- **Modified:** 2026-10-19T21:17:21.780Z

## Who should check

- Anyone running Linux \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 73963a375885d5ccb7def39fd0b4f542e0f343dd; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 47110c3a9ac247b688657337f5981efcfcb240dc; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 84158c2997159df4a0d70cd9c46774512d32a522; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 131ef12057d92b77b636321b7849c69222405a97; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 66339b71f105e6f83e0da3b9583d95077534fe1d; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< eca989eab4b2599dcb02f72140a7c08f08838520; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 2fb0dc7e0099686c4e9d2732745d8a31b18c3628; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 285943c6e7ca309bbea84b253745154241d9788a; d529d6c9f7e3aaeac13c4948f79799ccb825f29d; \>= 5.4.14, \< 5.5
- Anyone running Linux 5.5

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

## Affected and fixed versions

- Linux: \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 73963a375885d5ccb7def39fd0b4f542e0f343dd; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 47110c3a9ac247b688657337f5981efcfcb240dc; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 84158c2997159df4a0d70cd9c46774512d32a522; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 131ef12057d92b77b636321b7849c69222405a97; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 66339b71f105e6f83e0da3b9583d95077534fe1d; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< eca989eab4b2599dcb02f72140a7c08f08838520; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 2fb0dc7e0099686c4e9d2732745d8a31b18c3628; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 285943c6e7ca309bbea84b253745154241d9788a; d529d6c9f7e3aaeac13c4948f79799ccb825f29d; \>= 5.4.14, \< 5.5 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 5.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64047. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64047.md
Affected: Linux >= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, < 73963a375885d5ccb7def39fd0b4f542e0f343dd; >= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, < 47110c3a9ac247b688657337f5981efcfcb240dc; >= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, < 84158c2997159df4a0d70cd9c46774512d32a522; >= 9aaaa56845a06aeabdd597c…
Fixed in: Linux 73963a375885d5ccb7def39fd0b4f542e0f343dd, Linux 47110c3a9ac247b688657337f5981efcfcb240dc, Linux 84158c2997159df4a0d70cd9c46774512d32a522, Linux 131ef12057d92b77b636321b7849c69222405a97, Linux 66339b71f105e6f83e0da3b9583d95077534fe1d, Linux 2fb0dc7e0099686c4e9d2732745d8a31b18c3628, Linux 28594…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64047 being exploited?

There is no confirmed exploitation: CVE-2026-64047 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.76% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64047?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-64047?

Linux \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 73963a375885d5ccb7def39fd0b4f542e0f343dd; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 47110c3a9ac247b688657337f5981efcfcb240dc; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 84158c2997159df4a0d70cd9c46774512d32a522; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 131ef12057d92b77b636321b7849c69222405a97; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 66339b71f105e6f83e0da3b9583d95077534fe1d; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< eca989eab4b2599dcb02f72140a7c08f08838520; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 2fb0dc7e0099686c4e9d2732745d8a31b18c3628; \>= 9aaaa56845a06aeabdd597cbe19492dc01f281ec, \< 285943c6e7ca309bbea84b253745154241d9788a; d529d6c9f7e3aaeac13c4948f79799ccb825f29d; \>= 5.4.14, \< 5.5; Linux 5.5.

### Is there a fix for CVE-2026-64047?

Yes. Fixed in Linux 73963a375885d5ccb7def39fd0b4f542e0f343dd, Linux 47110c3a9ac247b688657337f5981efcfcb240dc, Linux 84158c2997159df4a0d70cd9c46774512d32a522, Linux 131ef12057d92b77b636321b7849c69222405a97, Linux 66339b71f105e6f83e0da3b9583d95077534fe1d, Linux 2fb0dc7e0099686c4e9d2732745d8a31b18c3628, Linux 285943c6e7ca309bbea84b253745154241d9788a, Linux 5.5. Upgrade Linux to 5.5 or later.

### How do I check if I'm affected by CVE-2026-64047?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/73963a375885d5ccb7def39fd0b4f542e0f343dd>
- patch: <https://git.kernel.org/stable/c/47110c3a9ac247b688657337f5981efcfcb240dc>
- patch: <https://git.kernel.org/stable/c/84158c2997159df4a0d70cd9c46774512d32a522>
- patch: <https://git.kernel.org/stable/c/131ef12057d92b77b636321b7849c69222405a97>
- patch: <https://git.kernel.org/stable/c/66339b71f105e6f83e0da3b9583d95077534fe1d>
- patch: <https://git.kernel.org/stable/c/eca989eab4b2599dcb02f72140a7c08f08838520>
- patch: <https://git.kernel.org/stable/c/2fb0dc7e0099686c4e9d2732745d8a31b18c3628>
- patch: <https://git.kernel.org/stable/c/285943c6e7ca309bbea84b253745154241d9788a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64047>

HTML: <https://flawdb.com/CVE-2026-64047> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64047>
