# CVE-2026-64009: xfrm: Check for underflow in xfrm\_state\_mtu

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-787, CWE-191
- **Published:** 2026-07-19T14:56:24.448Z
- **Modified:** 2026-10-19T21:17:18.950Z

## Who should check

- Anyone running Linux \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 8014f70c4e6e5ab101ae3860a614e65e988372e3; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 1021d2877b689a648b27815c854557a917122e93; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 2a41b1b31c61c52b972278ce1732a1443f5e89ed; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< fccd685b32df5aaf6bad4381eeda216468e283f0; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 820e501be8aee4b365d218d83227b314309c5fda; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 82ac903e0b519849647657b8c48d21237ada06a2; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 3db50ceeacb52806d8fe86fb1dfe944df0b9f789; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 742b04d0550b0ec89dcbc99537ec88653bd1ad90
- Anyone running Linux 2.6.22

## Description

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

xfrm: Check for underflow in xfrm\_state\_mtu

Leo Lin reported OOB write issue in esp component:

  xfrm\_state\_mtu() returns u32 but performs its arithmetic in unsigned
  modulo-2^32 space using an attacker-influenced "header\_len + authsize +
  net\_adj" subtracted from a small "mtu" argument. A nobody user can
  install an IPv4 ESP tunnel SA with a large authentication key
  (XFRMA\_ALG\_AUTH\_TRUNC, e.g. hmac(sha512), 64-byte key, 64-byte trunc),
  configure a small interface MTU (68 bytes), and set XFRMA\_TFCPAD to a
  large value. When a single UDP datagram is then sent through the
  tunnel, xfrm\_state\_mtu() underflows to a near-2^32 value, and
  esp\_output() consumes it as a signed int via:

        padto      = min(x-\>tfcpad, xfrm\_state\_mtu(x, mtu\_cached))
        esp.tfclen = padto - skb-\>len   (assigned to int)

  esp.tfclen ends up negative (e.g. -207). It is sign-extended to size\_t
  when passed to memset() inside esp\_output\_fill\_trailer(), producing a
  ~16 EB write of zeroes at skb\_tail\_pointer(skb). KASAN logs it as
  "Write of size 18446744073709551537 at addr ffff888...".

Check for underflow and return 1. This causes the sendmsg attempt to
fail with ENETUNREACH.

## Affected and fixed versions

- Linux: \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 8014f70c4e6e5ab101ae3860a614e65e988372e3; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 1021d2877b689a648b27815c854557a917122e93; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 2a41b1b31c61c52b972278ce1732a1443f5e89ed; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< fccd685b32df5aaf6bad4381eeda216468e283f0; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 820e501be8aee4b365d218d83227b314309c5fda; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 82ac903e0b519849647657b8c48d21237ada06a2; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 3db50ceeacb52806d8fe86fb1dfe944df0b9f789; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 742b04d0550b0ec89dcbc99537ec88653bd1ad90 (cvelist)
- Linux: 2.6.22 (cvelist)

## Mitigation

- Upgrade Linux to 742b04d0550b0ec89dcbc99537ec88653bd1ad90 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-64009. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64009.md
Affected: Linux >= c5c2523893747f88a83376abad310c8ad13f7197, < 8014f70c4e6e5ab101ae3860a614e65e988372e3; >= c5c2523893747f88a83376abad310c8ad13f7197, < 1021d2877b689a648b27815c854557a917122e93; >= c5c2523893747f88a83376abad310c8ad13f7197, < 2a41b1b31c61c52b972278ce1732a1443f5e89ed; >= c5c2523893747f88a83376a…
Fixed in: Linux 8014f70c4e6e5ab101ae3860a614e65e988372e3, Linux 1021d2877b689a648b27815c854557a917122e93, Linux 2a41b1b31c61c52b972278ce1732a1443f5e89ed, Linux 820e501be8aee4b365d218d83227b314309c5fda, Linux 82ac903e0b519849647657b8c48d21237ada06a2, Linux 3db50ceeacb52806d8fe86fb1dfe944df0b9f789, Linux 742b0…

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-64009 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 8014f70c4e6e5ab101ae3860a614e65e988372e3; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 1021d2877b689a648b27815c854557a917122e93; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 2a41b1b31c61c52b972278ce1732a1443f5e89ed; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< fccd685b32df5aaf6bad4381eeda216468e283f0; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 820e501be8aee4b365d218d83227b314309c5fda; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 82ac903e0b519849647657b8c48d21237ada06a2; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 3db50ceeacb52806d8fe86fb1dfe944df0b9f789; \>= c5c2523893747f88a83376abad310c8ad13f7197, \< 742b04d0550b0ec89dcbc99537ec88653bd1ad90; Linux 2.6.22.

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

Yes. Fixed in Linux 8014f70c4e6e5ab101ae3860a614e65e988372e3, Linux 1021d2877b689a648b27815c854557a917122e93, Linux 2a41b1b31c61c52b972278ce1732a1443f5e89ed, Linux 820e501be8aee4b365d218d83227b314309c5fda, Linux 82ac903e0b519849647657b8c48d21237ada06a2, Linux 3db50ceeacb52806d8fe86fb1dfe944df0b9f789, Linux 742b04d0550b0ec89dcbc99537ec88653bd1ad90. Upgrade Linux to 742b04d0550b0ec89dcbc99537ec88653bd1ad90 or later.

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

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/8014f70c4e6e5ab101ae3860a614e65e988372e3>
- patch: <https://git.kernel.org/stable/c/1021d2877b689a648b27815c854557a917122e93>
- patch: <https://git.kernel.org/stable/c/2a41b1b31c61c52b972278ce1732a1443f5e89ed>
- patch: <https://git.kernel.org/stable/c/fccd685b32df5aaf6bad4381eeda216468e283f0>
- patch: <https://git.kernel.org/stable/c/820e501be8aee4b365d218d83227b314309c5fda>
- patch: <https://git.kernel.org/stable/c/82ac903e0b519849647657b8c48d21237ada06a2>
- patch: <https://git.kernel.org/stable/c/3db50ceeacb52806d8fe86fb1dfe944df0b9f789>
- patch: <https://git.kernel.org/stable/c/742b04d0550b0ec89dcbc99537ec88653bd1ad90>

## 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-64009>

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