CVE-2026-139103

eth: bnxt: don't leak buffers when XDP agg buffer allocation 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: don't leak buffers when XDP agg buffer allocation fails

If a replacement agg buffer can't be allocated for a packet received
with XDP attached, bnxt_rx_pkt() drops the packet without returning
its head buffer to the ring. The head buffer leaks, and since rx_prod
still advances, the device gets a BD with a stale DMA address which
points at a buffer the driver no longer owns. When that BD completes
the driver finds no buffer in the slot.

The agg buffers consumed before the failing one have already been
replaced on the agg ring, they are referenced only by the frags of
the xdp_buff, which nobody frees. bnxt_xdp_buff_frags_free() would
skip them since the frags flag is set only on success, so set it
upfront.

Pointed out in LLM review of the first patch of the series.
Tested on a BCM57504 at MTU 9000 with a frags-capable XDP_PASS
program, receiving 8000B ICMPv6 echo requests (a head and two agg
buffers each) while page_pool_alloc_netmems() called from
bnxt_rx_agg_netmems_xdp() failed half of the time (bpftrace
override()). 44.7k packets were dropped, the page pools' inflight
count stayed flat and there were no KASAN or DEBUG_PAGEALLOC splats.

Analysis

AI-generated

Technical impact

The bnxt network driver in the Linux kernel incorrectly handles packet reception when an XDP aggregation buffer cannot be allocated. In this scenario the driver drops the packet but fails to return the head buffer to the DMA ring, causing a buffer leak. Because the rx_prod index still advances, the device receives a descriptor pointing to a stale DMA address that no longer belongs to the driver. When that descriptor completes, the driver cannot locate a valid buffer in the slot. This leads to a kernel resource leak and can trigger driver instability, memory corruption or a kernel panic, effectively presenting an availability and integrity risk for affected systems.

Affected Systems

Vendors: Linux kernel general distribution. Product: kernel driver ‘bnxt’ for Netronome network interface devices. The vulnerability is present in all kernel builds that include the buggy bnxt driver version prior to the fix committed. No specific kernel or device release versions are listed in the official data, so any deployment using the affected bnxt driver should be considered at risk.

Risk and Exploitability

The flaw is exploitable when an attacker can generate packets with XDP attached to a Netronome interface and force the allocation of an aggregation buffer to fail. This can be done remotely over the network if the interface is exposed, or locally if the attacker has privileged access. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, but the impact can lead to denial of service or potential kernel crash. The CVSS score is not specified, but based on the described behavior the severity would likely be high in a scenario where an attacker can provide malicious XDP traffic. The attack vector is therefore inferred to be network based with potential local privilege requirements.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel patch that fixes bnxt_xdp buffer allocation handling
  • If kernel update is not possible, disable XDP programs or unbind the affected interface from XDP processing until a patch is applied
  • Ensure Netronome firmware is updated to the latest stable release to avoid older bugs that may trigger similar conditions

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
CWE-772
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: don't leak buffers when XDP agg buffer allocation fails If a replacement agg buffer can't be allocated for a packet received with XDP attached, bnxt_rx_pkt() drops the packet without returning its head buffer to the ring. The head buffer leaks, and since rx_prod still advances, the device gets a BD with a stale DMA address which points at a buffer the driver no longer owns. When that BD completes the driver finds no buffer in the slot. The agg buffers consumed before the failing one have already been replaced on the agg ring, they are referenced only by the frags of the xdp_buff, which nobody frees. bnxt_xdp_buff_frags_free() would skip them since the frags flag is set only on success, so set it upfront. Pointed out in LLM review of the first patch of the series. Tested on a BCM57504 at MTU 9000 with a frags-capable XDP_PASS program, receiving 8000B ICMPv6 echo requests (a head and two agg buffers each) while page_pool_alloc_netmems() called from bnxt_rx_agg_netmems_xdp() failed half of the time (bpftrace override()). 44.7k packets were dropped, the page pools' inflight count stayed flat and there were no KASAN or DEBUG_PAGEALLOC splats.
Title eth: bnxt: don't leak buffers when XDP agg buffer allocation 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-416

    Use After Free

  • CWE-772

    Missing Release of Resource after Effective Lifetime

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