CVE-2026-139102

eth: bnxt: free XDP frags when xdp_do_redirect() fails

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: 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.

Analysis

AI-generated

Technical impact

During packet processing, the bnxt driver fails to release XDP fragment memory when a redirect operation fails. The unfreed fragments accumulate in the per‑queue page pool, preventing the system from freeing those pages and eventually exhausting available kernel memory. If enough packets trigger the failure path, the kernel may become unable to allocate new pages for networking, causing a denial of service.

Affected Systems

Affected systems are any Linux installations using the bnxt network driver for Broadcom NetXtreme‑II adapters, across all kernel releases prior to the patch commit. The vulnerability does not depend on a specific version string, so all existing kernels containing the buggy code are potentially impacted until a kernel update is applied.

Risk and Exploitability

Although the CVSS score is not supplied, the exploitation of this flaw requires an ability to trigger repeated XDP redirect failures, which can be achieved through crafted network traffic when the redirect target uses AF_XDP or lacks XDP_USE_SG. The absence of an EPSS value and a KEV listing suggests that this vulnerability is not currently widely abused, but a leaking resource can still be leveraged to crash the kernel or drain memory, presenting a moderate to high risk depending on traffic volume.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the bnxt driver patch that corrects the XDP fragment cleanup.
  • Disable XDP redirection on affected NICs or set the network interface to a mode that does not use AF_XDP, thereby eliminating the failure path.
  • Monitor memory usage and network load for abnormal patterns, and apply rate limiting or firewall rules to mitigate potential packet floods that could trigger the flaw.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-404
Type Values Removed Values Added
Description 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.
Title eth: bnxt: free XDP frags when xdp_do_redirect() fails
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-404

    Improper Resource Shutdown or Release

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