Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139103

published high CVSS 3.1 · 8.1

eth: bnxt: don't leak buffers when XDP agg buffer allocation fails

Published
30 Nov 2026, 13:31:36 UTC
Updated
01 Dec 2026, 05:41:10 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux4c6c123c9af9c94be4726134ca72ba5a0be0ebd0 to < 6ea0a69fb3a42a8f09f7b1f62d236818a4a20de5 · 4c6c123c9af9c94be4726134ca72ba5a0be0ebd0 to < 59ef0dc55089a6bfc711a5d2367c20912e1495d2 · 4c6c123c9af9c94be4726134ca72ba5a0be0ebd0 to < e83550fdb3eccad6095d70d2b07571b31475d546 · 4c6c123c9af9c94be4726134ca72ba5a0be0ebd0 to < 1b2f02fb4ba92d01603c8261c94be8d348de65b0 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.19 (affected) · 0 to < 5.19 (unaffected · semver) · 6.12.120 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The bug needs a received frame over ~3.5 KB, which bnxt_rx_pkt() splits into a head page plus agg buffers (page-mode jumbo_thresh = rx_buf_use_size). Once the stale BD is posted, the NIC DMAs later frames into the page the driver gave away. Both kinds of frame reach the NIC over a routed jumbo-MTU fabric. AC:H - It fires only when bnxt_alloc_rx_netmem(GFP_ATOMIC) fails inside bnxt_rx_agg_netmems_xdp(), with a frags XDP program and MTU > BNXT_MAX_PAGE_MODE_MTU set. XDP is refused while a memory provider is installed, so the failure needs host-wide atomic memory exhaustion, which a remote sender cannot force through accounted socket memory. PR:N - No authentication is needed. Any host that can send jumbo frames to the bnxt port can supply both the agg-buffer frames and the later frames that land in the stale slot. Attaching the XDP program is the victim's own configuration, not a privilege the attacker needs. UI:N - No user action is involved. The failure path in bnxt_rx_pkt() and the later completion of the stale slot both run in NAPI softirq as frames arrive. S:U - The stale-BD DMA and the use-after-free stay inside the host kernel's own memory and authority. No guest/host or other trust boundary is crossed. C:H - On the goto oom_next_rx path, rx_prod advances without bnxt_reuse_rx_data(), so the slot is posted with a BD that points at a page already passed up the stack or recycled. When that slot completes, the XDP program, XDP_TX and XDP_REDIRECT read and send whatever that page now holds, including other flows' data. I:H - The NIC writes attacker-chosen frame bytes into a page now owned by another skb or ring slot, or by the buddy allocator if the pool released it and the IOMMU is off or in passthrough. XDP_REDIRECT on the empty slot hands that page out a second time, causing page_pool double ownership and a use-after-free. A:H - At jumbo MTU, XDP_PASS uses bnxt_rx_multi_page_skb() as rx_skb_func. It calls page_address(NULL) for the empty slot, and napi_build_skb() then oopses in softirq. XDP_DROP and XDP_TX keep reposting the stale BD, and every failure also leaks the head page.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 4c6c123c9af9c94be4726134ca72ba5a0be0ebd0 to < 6ea0a69fb3a42a8f09f7b1f62d236818a4a20de5 (affected · git)4c6c123c9af9c94be4726134ca72ba5a0be0ebd0 to < 59ef0dc55089a6bfc711a5d2367c20912e1495d2 (affected · git)4c6c123c9af9c94be4726134ca72ba5a0be0ebd0 to < e83550fdb3eccad6095d70d2b07571b31475d546 (affected · git)4c6c123c9af9c94be4726134ca72ba5a0be0ebd0 to < 1b2f02fb4ba92d01603c8261c94be8d348de65b0 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.19 (affected)0 to < 5.19 (unaffected · semver)6.12.120 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

eth: bnxt: don't leak buffers when XDP agg buffer allocation fails

Provenance

Schema
5.2
Searchable
yes
Content hash
bb93165eaa6418ebc069db1364da098e214297d373d84402dffd6e318572121f
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected