CVE-2026-72399 PUBLISHED

net: enetc: check the number of BDs needed for xdp_frame

Assigner: Linux
Reserved: 09.08.2026 Published: 15.08.2026 Updated: 17.08.2026

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

net: enetc: check the number of BDs needed for xdp_frame

The size of xdp_redirect_arr array is ENETC_MAX_SKB_FRAGS. However, the number of fragments contained in xdp_frame may be greater than or equal to ENETC_MAX_SKB_FRAGS, which will cause the access to xdp_redirect_arr to be out of bounds.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 9.8

AV:N - Remote attackers can deliver multi-fragment frames to an XDP-enabled ingress path that bpf_redirect_map/devmap forwards to an ENETC PF netdev, reaching enetc_xdp_xmit via the standard XDP_REDIRECT flush path without local access. AC:L - Once XDP redirect to ENETC is deployed, an attacker can reliably craft or segment traffic to produce xdp_frames with nr_frags+1>13; no race or uncontrollable memory layout is required to trigger the out-of-bounds write. PR:N - Exploitation requires no attacker privileges when XDP redirect is pre-deployed on the gateway (normal for edge filtering); unprivileged users with CAP_NET_ADMIN via user namespaces can also attach the needed BPF/XDP programs. UI:N - No victim interaction is required beyond sending crafted network traffic; exploitation is fully attacker-driven once the XDP redirect datapath exists. S:U - Impact is confined to kernel memory corruption and privilege escalation within the same kernel/host security boundary, not a cross-VM or IOMMU scope change. C:H - Stack out-of-bounds writes of enetc_tx_swbd structures past a 13-element array corrupt adjacent stack data and pointers, providing a memory-corruption primitive that can be leveraged for arbitrary kernel memory disclosure. I:H - The overflow writes attacker-influenced enetc_tx_swbd fields (DMA addresses, lengths, frame pointers) beyond the buffer bounds, enabling heap/stack corruption suitable for arbitrary write and potential code execution. A:H - Corrupting stack-resident transmit metadata and pointers in enetc_xdp_xmit can cause immediate kernel oops/panic or hung transmit paths, constituting total loss of availability.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 9d2b68cc108db2fdb35022ed2d88cfb305c441a6 to 1ecb199b0e6d12ab6c26c0b7edf1a8f4472d9aed (excl.)
  • affected from 9d2b68cc108db2fdb35022ed2d88cfb305c441a6 to f55276160ffad3e235b657ee4b7304eb99b90e5c (excl.)
  • affected from 9d2b68cc108db2fdb35022ed2d88cfb305c441a6 to cfbc6e9b84dcc0aa2d65c84ea4745af327763209 (excl.)
  • affected from 9d2b68cc108db2fdb35022ed2d88cfb305c441a6 to 1681cc7974a6123f5d5740b03bc11e4784bd2542 (excl.)
  • affected from 9d2b68cc108db2fdb35022ed2d88cfb305c441a6 to d22829101ab675607ad6c3d420fb3ab875f46bbb (excl.)
  • affected from 9d2b68cc108db2fdb35022ed2d88cfb305c441a6 to 555c5475e787802eeae0d2b91c2f66c330db2767 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.13 is affected
  • unaffected from 0 to 5.13 (excl.)
  • unaffected from 6.1.178 to 6.1.* (incl.)
  • unaffected from 6.6.145 to 6.6.* (incl.)
  • unaffected from 6.12.97 to 6.12.* (incl.)
  • unaffected from 6.18.40 to 6.18.* (incl.)
  • unaffected from 7.1.5 to 7.1.* (incl.)
  • unaffected from 7.2 to * (incl.)

References