In the Linux kernel, the following vulnerability has been resolved: net: fix skb length accounting after generic XDP frag adjustment Generic XDP… (CVE-2026-74665)
A vulnerability in the Linux kernel's network stack involving incorrect skb length accounting after generic XDP fragment adjustments has been resolved. The flaw caused skb->len to remain outdated after fragment shrinking, leading to skb_headlen() reporting a larger linear area than actual. This resulted in copying excess bytes past the linear tail to userspace, including kernel pointers and internal skb metadata, potentially exposing sensitive kernel memory. The issue was reproducible with large UDP datagrams on veth pairs and caused payload corruption. The fix synchronizes skb->len and skb->data_len correctly after fragment adjustments.
AI Analysis
Technical Summary
The Linux kernel vulnerability CVE-2026-74665 involves improper length accounting in socket buffers (skb) after generic XDP fragment adjustments. When an XDP program modifies the fragment area, bpf_prog_run_generic_xdp() updates skb->data_len but leaves skb->len unchanged, causing skb_headlen() to overestimate the linear data length. This leads to __skb_datagram_iter() copying data beyond the actual linear tail into userspace, including kernel pointers and skb metadata such as nr_frags and xdp_frags_size. The flaw was demonstrated with a 60000-byte UDP datagram on a veth pair with MTU 64000, which was shortened by 1024 bytes in the fragment area, causing corrupted payloads. The patch corrects this by subtracting the old data_len before replacing it and adding the new data_len afterwards, keeping skb->len and skb->data_len synchronized.
Potential Impact
The vulnerability allows copying of kernel memory beyond the intended packet data to userspace, including kernel pointers and internal skb metadata. This could lead to information disclosure of kernel memory contents. Additionally, the actual packet payload is corrupted and truncated, which could disrupt network communication. There is no indication of remote code execution or privilege escalation from the provided data.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel to correctly synchronize skb->len and skb->data_len after generic XDP fragment adjustments. Users should apply the official kernel update that includes this fix. Since this is a kernel-level vulnerability, upgrading to the patched kernel version is the recommended remediation. Patch status is not explicitly stated in the provided data; users should consult the vendor or Linux kernel advisory for the exact fixed versions and update accordingly.
In the Linux kernel, the following vulnerability has been resolved: net: fix skb length accounting after generic XDP frag adjustment Generic XDP… (CVE-2026-74665)
Description
A vulnerability in the Linux kernel's network stack involving incorrect skb length accounting after generic XDP fragment adjustments has been resolved. The flaw caused skb->len to remain outdated after fragment shrinking, leading to skb_headlen() reporting a larger linear area than actual. This resulted in copying excess bytes past the linear tail to userspace, including kernel pointers and internal skb metadata, potentially exposing sensitive kernel memory. The issue was reproducible with large UDP datagrams on veth pairs and caused payload corruption. The fix synchronizes skb->len and skb->data_len correctly after fragment adjustments.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel vulnerability CVE-2026-74665 involves improper length accounting in socket buffers (skb) after generic XDP fragment adjustments. When an XDP program modifies the fragment area, bpf_prog_run_generic_xdp() updates skb->data_len but leaves skb->len unchanged, causing skb_headlen() to overestimate the linear data length. This leads to __skb_datagram_iter() copying data beyond the actual linear tail into userspace, including kernel pointers and skb metadata such as nr_frags and xdp_frags_size. The flaw was demonstrated with a 60000-byte UDP datagram on a veth pair with MTU 64000, which was shortened by 1024 bytes in the fragment area, causing corrupted payloads. The patch corrects this by subtracting the old data_len before replacing it and adding the new data_len afterwards, keeping skb->len and skb->data_len synchronized.
Potential Impact
The vulnerability allows copying of kernel memory beyond the intended packet data to userspace, including kernel pointers and internal skb metadata. This could lead to information disclosure of kernel memory contents. Additionally, the actual packet payload is corrupted and truncated, which could disrupt network communication. There is no indication of remote code execution or privilege escalation from the provided data.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel to correctly synchronize skb->len and skb->data_len after generic XDP fragment adjustments. Users should apply the official kernel update that includes this fix. Since this is a kernel-level vulnerability, upgrading to the patched kernel version is the recommended remediation. Patch status is not explicitly stated in the provided data; users should consult the vendor or Linux kernel advisory for the exact fixed versions and update accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-2vgp-f9r9-4w6f
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-74665"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a8a27f2acd9273b499bc7ea
Added to database: 08/22/2026, 22:51:30 UTC
Last enriched: 08/22/2026, 23:53:56 UTC
Last updated: 08/23/2026, 00:52:09 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.