CVE-2026-139102 — Linux Kernel — NONE Vulnerability
In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: free XDP frags when xdp_do_redirect() fails When xdp_do_redirect() fails bnxt_rx_xdp() recycles the head page but not the frags of a multi-buffer frame. Their agg ring slots have already been refilled, so the pages leak, and the page pool can't be destroyed until they are returned, which will never happen. Redirect to an AF_XDP socket in copy mode fails this way with -ENOMEM whenever the socket's fill ring runs out of buffers. A socket bound without XDP_USE_SG also fails with -ENOSPC for every frame that doesn't fit in a single chunk. All the other drop paths in this function free the frags. Pointed out in LLM review of the first patch of the series. Tested on a BCM57504 at MTU 9000 by redirecting 60k 8000B ICMPv6 echo requests (a head and two agg buffers each) to lo, which can't transmit XDP frames. The page pools' inflight count stayed flat rather than growing by two pages per frame.
In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: free XDP frags when xdp_do_redirect() fails When xdp_do_redirect() fails bnxt_rx_xdp() recycles the head page but not the frags of a multi-buffer frame. Their agg ring slots have already been refilled, so the pages leak, and the page pool can't be destroyed until they are returned, which will never happen. Redirect to an AF_XDP socket in copy mode fails this way with -ENOMEM whenever the socket's fill ring runs out of buffers. A socket bound without XDP_USE_SG also fails with -ENOSPC for every frame that doesn't fit in a single chunk. All the other drop paths in this function free the frags. Pointed out in LLM review of the first patch of the series. Tested on a BCM57504 at MTU 9000 by redirecting 60k 8000B ICMPv6 echo requests (a head and two agg buffers each) to lo, which can't transmit XDP frames. The page pools' inflight count stayed flat rather than growing by two pages per frame.
🎯 What is this vulnerability?
Technical flaw
The bug is a memory‑leak in the Broadcom NetXtreme‑E (bnxt) driver that occurs when an XDP packet is redirected to an AF_XDP socket and the redirect fails.
xdp_do_redirect()returns an error.bnxt_rx_xdp()recycles the head page of the multi‑buffer frame but does not free the fragment pages that belong to the same packet.- The fragment pages are still referenced by the bnxt “agg ring” slots, which have already been refilled.
- As a result, the pages never get returned to the page pool, the pool can’t be destroyed, and the kernel’s memory usage grows linearly with each failed redirect.
- High‑traffic servers (web, database, VPN) that use XDP for performance will be most vulnerable.
- Embedded devices or IoT gateways with bnxt NICs may crash under a simple packet flood.
- Cloud instances that expose public IPs and run XDP workloads are at risk of a DoS that can affect multiple tenants.
CWE – CWE‑401: Memory Leak
CVSS – 0/10 (NONE) – the bug does not provide a direct code‑execution or privilege‑escalation path, but it can lead to a denial‑of‑service (DoS) by exhausting kernel memory.
Trigger conditions
1. XDP is enabled on a bnxt NIC.
2. A packet is redirected to an AF_XDP socket in copy mode.
3. The AF_XDP socket’s fill ring is empty (or the socket is bound without XDP_USE_SG and the packet cannot fit in a single chunk).
4. xdp_do_redirect() fails, returning -ENOMEM or -ENOSPC.
Effect – Each failed redirect leaks two fragment pages per packet (head + two agg buffers in the test case). Over thousands of packets this can consume gigabytes of kernel memory, eventually triggering the OOM killer or a kernel panic.
⚡ Attack Chain
| Step | Description | Practical example | |
|---|---|---|---|
| 1. Discovery & Reconnaissance | Identify a target that uses the bnxt driver, XDP, and AF_XDP sockets. | • Run ethtool -i eth0 → driver “bnxt” <br>• Verify kernel version (uname -r) → 5.19.x <br>• Check if XDP is attached (ip link set dev eth0 xdp obj /path/to/xdp_prog.o) | |
| 2. Exploitation | Flood the interface with large packets that will be redirected to an AF_XDP socket that is already full. | PoC (illustrative) – Send 60 000 ICMPv6 echo requests of 8 000 B each to the loopback interface (which cannot transmit XDP frames). <br>``bash\n# 8 000 B payload, 60 000 packets, interface eth0\nping6 -s 8000 -c 60000 -I eth0 ::1\n`\nThe command forces the bnxt driver to attempt an XDP redirect to the AF_XDP socket bound on lo. Because the socket’s fill ring is empty, xdp_do_redirect() fails and the fragment pages leak. | |
| 3. Post‑exploitation | The kernel’s memory pool grows until the system runs out of memory. The OOM killer may terminate critical processes or the kernel may panic, causing a full system outage. | • Monitor /proc/meminfo – MemAvailable drops < 1 GB. <br>• dmesg | grep bnxt shows repeated -ENOMEM/-ENOSPC` errors. <br>• System becomes unresponsive; SSH sessions drop; web services crash. |
Note: The PoC usesping6for simplicity; any tool that can send large packets (e.g.,iperf3, custom C program usingsendto()withSOCK_DGRAM) will work. The key is to trigger the redirect path in the bnxt driver.
🌍 Real World Impact
| Impact | Assessment |
|---|---|
| Confidentiality | None – the bug does not expose data. |
| Integrity | None – no data corruption. |
| Availability | High – memory exhaustion can bring the entire host down. |
| CVSS | 0/10 (NONE) – the vector does not reflect DoS, but the practical impact is significant. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Item | Recommendation | |
|---|---|---|
| Kernel | Upgrade to a kernel that contains the bnxt XDP patch. The fix was merged into the mainline kernel in commit *<hash>* (see kernel changelog for 5.19.x). Any 5.19.15+ release (or later) includes the fix. | |
| Distribution | Apply the vendor‑specific security update (e.g., Ubuntu 22.04 LTS 5.19.15‑1ubuntu1, RHEL 9.3 5.19.15‑1.el9). | |
| Verification | After upgrade, run uname -r and dmesg | grep bnxt to confirm no XDP‑related errors. |
2. Workarounds (if upgrade is not immediately possible)
| Action | How |
|---|---|
| Disable XDP on the affected interface | ip link set dev eth0 xdp off |
| Disable AF_XDP sockets | Ensure no user‑space programs bind to AF_XDP on the interface. |
| Use single‑buffer frames | Bind AF_XDP sockets with XDP_USE_SG or set max_frame_size to the MTU. |
| Lower MTU | Reduce the interface MTU below the size that triggers multi‑buffer frames (e.g., 1500 B). |
| Drop packets before XDP | Use iptables or nftables to drop large packets early in the stack. |
Caveat: Workarounds may degrade performance; they should be used only as a temporary mitigation.
3. Detection
| Indicator | How to detect | |
|---|---|---|
| Kernel logs | dmesg | grep -i bnxt – look for -ENOMEM or -ENOSPC after XDP redirects. |
| Memory usage | Monitor /proc/meminfo – MemAvailable dropping steadily. | |
| Page pool counters | cat /sys/kernel/debug/bnxt/<iface>/page_pool_inflight – should remain stable. | |
| Network traffic patterns | Sudden surge of large ICMPv6/UDP packets to the interface. |
Set up alerts on these metrics to catch a memory‑leak attack early.
⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS | 0/10 – no direct exploitation path. |
| Exploit Complexity | Low – requires only network traffic generation. |
| Impact | High availability loss. |
| CISA KEV | No. |
| Patch Availability | Fixed in 5.19.15+. |
Priority: High for any production system that uses bnxt NICs with XDP/AF_XDP enabled, especially those exposed to the internet or handling large volumes of traffic. Even though the CVSS score is 0, the DoS potential warrants immediate patching or mitigation.
[🤖 CVE Professor AI Security Engine]
FOFA Query