CVE-2026-64009
xfrm: Check for underflow in xfrm_state_mtu
Reported by linux · Published July 19, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra | Amazon Linux | 1:6.1.176-220.358.amzn2023 |
| kernel | Amazon Linux | 1:6.1.176-220.358.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.94-123.174.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel-tools-devel | Amazon Linux | 1:6.1.176-220.358.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.176-220.358.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.94-123.174.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.94-123.174.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.94-123.174.amzn2023 |
3 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c5c2523893747f88a83376abad310c8ad13f7197, c5c2523893747f88a83376abad310c8ad13f7197, c5c2523893747f88a83376abad310c8ad13f7197 |
| Linux | Linux | 2.6.22, 0, 5.10.259 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel-devel | 0 |
| linux | linux_kernel | 2.6.22, 2.6.22, 2.6.22 |
| amazon:2023 | kernel-livepatch-6.12.94-123.174 | 0 |
| amazon:2023 | kernel-headers | 0 |
…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)
- Aug 7, 2026 EPSS Score (10 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (30 in total, the first dated here)
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64009
vulnetix vdb fixes CVE-2026-64009
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-64009/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart