Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 88%

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… (CVE-2026-64009)

0
High
Published: 07/19/2026 (07/19/2026, 18:31:49 UTC)
Source: GCVE Database

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.

CVSS v3.1

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/19/2026, 20:00:01 UTC

Technical Analysis

The Linux kernel's xfrm_state_mtu function performs arithmetic on unsigned 32-bit integers involving header length, authentication size, and network adjustments subtracted from a small MTU value. An attacker can exploit this by installing an IPv4 ESP tunnel Security Association with a large authentication key and a small MTU, causing the arithmetic to underflow to a near-2^32 value. This underflow leads to a negative value assigned to esp.tfclen, which is then sign-extended and used as a size parameter in memset, resulting in a massive out-of-bounds write at the end of a socket buffer. The vulnerability is mitigated by adding an underflow check that causes the sendmsg operation to fail with ENETUNREACH, preventing the out-of-bounds write.

Potential Impact

An attacker with the ability to configure an IPv4 ESP tunnel can trigger a large out-of-bounds memory write in the kernel, potentially leading to memory corruption. This could cause system instability or crashes. However, the kernel now prevents this by checking for underflow and returning an error, thus blocking the exploit path.

Mitigation Recommendations

The Linux kernel has been updated to include an underflow check in xfrm_state_mtu that causes the sendmsg call to fail with ENETUNREACH, preventing the out-of-bounds write. Users should apply the official kernel updates that include this fix. Patch status is not yet confirmed in the provided data — check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-666q-fgc6-3x4w
Osv Schema Version
1.4.0
Aliases
["CVE-2026-64009"]
Ecosystems
[]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a5d27aa2a4a8d598912d8b8

Added to database: 07/19/2026, 19:38:18 UTC

Last enriched: 07/19/2026, 20:00:01 UTC

Last updated: 07/20/2026, 21:51:17 UTC

Views: 13

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses