CVE-2026-139101

eth: bnxt: hand XDP frags over to the copybreak skb

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

eth: bnxt: hand XDP frags over to the copybreak skb

With a multi-buffer XDP program attached, a packet only has agg
buffers if it filled its head buffer, which in page mode holds most
of a page. The program can still move the start of the packet forward
with bpf_xdp_adjust_head() and leave at most rx_copybreak bytes in the
head. bnxt_rx_pkt() then copies the head into a new skb, puts the head
page back on the ring, and calls bnxt_xdp_build_skb() on the copy.
bnxt_xdp_build_skb() only sets nr_frags and the skb's length
accounting, because it expects an skb built around the head page,
sharing its shinfo with the xdp_buff. The copy ends up with nr_frags
set but no frag descriptors, and the stack later reads and releases
whatever its frags array happens to contain. The real frags leak.

Copy the frag descriptors to the new skb in bnxt_copy_xdp(), so that
bnxt_xdp_build_skb() finds the frags where it expects them. The frags
now belong to the skb, and the head page goes back on the ring as
before.

Pointed out in LLM review of the first patch of the series.
Confirmed by reading the code, the unfixed kernel was not run with
the reproducer below.
Tested on a BCM57504 at MTU 9000 with rx-copybreak raised to 1024
and a frags-capable XDP program moving the start of multi-buffer
frames 3000B forward with bpf_xdp_adjust_head(), receiving 8000B
ICMPv6 echo requests (a head and two agg buffers each). All 60k
frames took the copybreak path with frags attached, the sampled skbs
reached GRO with len=4998 data_len=4492 nr_frags=2, and were freed by
the stack with the page pools' inflight count staying flat, no KASAN
or DEBUG_PAGEALLOC splats.

Analysis

AI-generated

Technical impact

The Linux bnxt driver mistakenly copies XDP fragment descriptors from an original socket buffer to a new one. Because the new buffer contains a non‑zero fragment count but no actual descriptors, the kernel later dereferences garbage data when processing the fragment list, potentially corrupting memory or leaking fragment information. A crafted packet that triggers the XDP adjust head path can activate this fault, which may cause the kernel to read or free invalid memory, leading to a crash or privilege escalation. This flaw impacts the integrity of the kernel network stack and can be exploited by sending malicious traffic to the affected host.

Affected Systems

The vulnerability affects the Linux kernel, specifically the bnxt network driver. No specific kernel versions are listed; the issue exists in any branch that has not yet incorporated the bnxt_copy_xdp patch. This includes all distributions running the affected driver with the problematic copybreak handling enabled.

Risk and Exploitability

A CVSS score is not available, and the EPSS score is not provided; according to KEV, the vulnerability is not listed in CISA’s catalog. Attacks require a network interface that allows packet injection and an XDP program capable of calling bpf_xdp_adjust_head(). While the risk is moderate because it requires crafted traffic and kernel access, exploitation could lead to denial of service or, if an attacker can influence the contents of the fragment descriptors, a memory corruption that might elevate privileges. The selective patch in recent kernel releases mitigates the risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the bnxt_copy_xdp patch, such as the stable release based on commit 364b88b5…
  • If a kernel update cannot be applied immediately, disable XDP or configure the driver to avoid multi‑buffer XDP with large rx_copybreak values, thereby preventing the fault path from being exercised.
  • Continuously monitor system logs for kernel panics or memory corruption messages and enable kernel hardening options (e.g., CONFIG_SECURITY, CONFIG_RANDOMIZE_PAGETABLES) to reduce the impact of any remaining vulnerabilities.

Generated by OpenCVE AI on November 30, 2026 at 19:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-457
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: hand XDP frags over to the copybreak skb With a multi-buffer XDP program attached, a packet only has agg buffers if it filled its head buffer, which in page mode holds most of a page. The program can still move the start of the packet forward with bpf_xdp_adjust_head() and leave at most rx_copybreak bytes in the head. bnxt_rx_pkt() then copies the head into a new skb, puts the head page back on the ring, and calls bnxt_xdp_build_skb() on the copy. bnxt_xdp_build_skb() only sets nr_frags and the skb's length accounting, because it expects an skb built around the head page, sharing its shinfo with the xdp_buff. The copy ends up with nr_frags set but no frag descriptors, and the stack later reads and releases whatever its frags array happens to contain. The real frags leak. Copy the frag descriptors to the new skb in bnxt_copy_xdp(), so that bnxt_xdp_build_skb() finds the frags where it expects them. The frags now belong to the skb, and the head page goes back on the ring as before. Pointed out in LLM review of the first patch of the series. Confirmed by reading the code, the unfixed kernel was not run with the reproducer below. Tested on a BCM57504 at MTU 9000 with rx-copybreak raised to 1024 and a frags-capable XDP program moving the start of multi-buffer frames 3000B forward with bpf_xdp_adjust_head(), receiving 8000B ICMPv6 echo requests (a head and two agg buffers each). All 60k frames took the copybreak path with frags attached, the sampled skbs reached GRO with len=4998 data_len=4492 nr_frags=2, and were freed by the stack with the page pools' inflight count staying flat, no KASAN or DEBUG_PAGEALLOC splats.
Title eth: bnxt: hand XDP frags over to the copybreak skb
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-457

    Use of Uninitialized Variable

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:31 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM