CVE-2026-139101 — Linux Kernel — NONE Vulnerability
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.
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.
🎯 What is this vulnerability?
This vulnerability is a Use-After-Free (UAF) and Memory Corruption flaw in the Linux kernel's Broadcom NetXtreme (bnxt) network driver, specifically within the XDP (eXpress Data Path) processing pipeline.
Technical Flaw Analysis:
The issue arises in the interaction between bnxt_rx_pkt(), bnxt_copy_xdp(), and bnxt_xdp_build_skb() when handling multi-buffer XDP frames that trigger the "copybreak" path.
1. Context: When a multi-buffer XDP program moves the packet head forward using bpf_xdp_adjust_head(), the remaining data in the head buffer may be smaller than rx_copybreak.
2. The Bug: bnxt_rx_pkt() detects this condition and copies the head data into a new sk_buff (skb). It then returns the original head page to the ring pool.
3. The Error: The function bnxt_xdp_build_skb() is called on this new skb. This function assumes it is operating on an skb built directly around the original head page (sharing shinfo with the xdp_buff). Consequently, it sets skb->nr_frags and length accounting but fails to copy the actual fragment descriptors (skb_shinfo(skb)->frags[]) from the original xdp_buff to the new skb.
4. Result: The new skb has nr_frags > 0 but its frags array contains uninitialized or stale memory (garbage pointers). When the network stack later processes this skb (e.g., during GRO or transmission), it attempts to read and release these invalid page pointers.
5. Consequence:
* Memory Corruption: The kernel reads from arbitrary memory addresses defined by the garbage pointers.
* Use-After-Free/Leak: The actual page references held by the original xdp_buff are never properly transferred or released, leading to page leaks. If the garbage pointers happen to point to freed memory, it results in a UAF.
CWE Classification:
- CWE-416: Use After Free (Primary)
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (Secondary, due to reading uninitialized
fragsarray) - Fingerprinting: Identify the target OS and kernel version via
nmap -Oor banner grabbing. - Driver Check: Verify if the
bnxtdriver is loaded:
CVSS Note: The provided CVSS score is 0/10 (NONE), which is technically incorrect for a kernel memory corruption bug. A realistic CVSS v3.1 score would be High (7.8 - 8.8) depending on the attack vector (Local vs. Network) and the ability to trigger the specific XDP path. The "NONE" rating likely reflects that it requires specific driver configuration (XDP + Copybreak) and is not trivially exploitable by default, but it is still a serious kernel integrity issue.
⚡ Attack Chain
Prerequisites:
1. Target system runs Linux kernel 5.19 or later with the bnxt driver.
2. The network interface is using the bnxt driver (e.g., Broadcom NetXtreme-E).
3. An XDP program is attached to the interface.
4. The XDP program is capable of multi-buffer handling and uses bpf_xdp_adjust_head().
5. The rx_copybreak sysctl is set to a value that allows the copy path to be triggered (e.g., > 0).
Step 1: Discovery & Reconnaissance
lsmod | grep bnxt
# or
ethtool -i eth0 | grep driverip link show eth0 | grep xdp
# or
bpftool prog listrx_copybreak setting:sysctl net.core.rx_copybreakStep 2: Exploitation
CAP_NET_ADMIN).CAP_NET_ADMIN (or root) attaches a malicious XDP program that manipulates packet headers to force the copybreak path with multi-buffer frames.1. Load an XDP program that:
* Accepts multi-buffer packets.
* Calls
bpf_xdp_adjust_head(ctx, -3000) to move the head forward, leaving a small amount of data in the head buffer (less than rx_copybreak).* Returns
XDP_PASS or XDP_TX.2. Generate traffic that results in multi-buffer frames (e.g., large ICMPv6 echo requests or TCP segments with MTU 9000).
3. The kernel processes the packet, hits the bug, and corrupts memory.
4. Exploitation Goal:
* DoS: Trigger a kernel panic or oops due to invalid memory access.
* LPE: If the garbage pointers in
frags[] can be influenced (e.g., via heap spraying or controlling the previous contents of the xdp_buff), an attacker might redirect execution or corrupt critical kernel structures.Step 3: Post-Exploitation
🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Patching (Primary Solution)
bnxt_copy_xdp() copies the fragment descriptors to the new skb.Example:* For RHEL/CentOS, apply the latest kernel update. For Ubuntu, use
apt-get upgrade linux-image-generic.2. Workarounds
ip link set dev eth0 xdp offrx_copybreak: Set rx_copybreak to 0 to disable the copy path:sysctl -w net.core.rx_copybreak=0Note: This may impact performance for small packets.
bpf_xdp_adjust_head() in a way that triggers the copybreak path with multi-buffer frames.3. Detection
dmesg or /var/log/kern.log for:*
BUG: KASAN: use-after-free in ...*
BUG: unable to handle page fault ...*
bnxt: ... errors related to XDP or skb processing.bnxt and XDP.⚠️ Urgency
CVSS Score: 0/10 (NONE) - Note: This score is likely a placeholder or error. The actual risk is High.*
* High for systems using XDP on Broadcom NICs in production, especially in cloud or high-performance environments.
* Medium for systems where XDP is not used or where the
bnxt driver is not present.* Immediate if you are running a custom XDP program on a
bnxt interface and have observed instability.Recommendation: Apply the kernel patch as soon as possible. If you are using XDP on Broadcom hardware, prioritize this fix.
[🤖 CVE Professor AI Security Engine]
FOFA Query