{"id":"CVE-2026-139104","state":"PUBLISHED","title":"eth: bnxt: recycle agg buffers when Rx head buffer allocation fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\neth: bnxt: recycle agg buffers when Rx head buffer allocation fails\n\nbnxt_rx_pkt() tries to return the aggregation buffers of a packet\nto the ring when the copybreak allocation fails, but the same logic\nis missing on the rx_skb_func() failure path. The agg BDs consumed\nby the device are then never posted again. The agg ring is only\nrefilled one-for-one as completions consume its buffers, so each\nsuch failure permanently shrinks it. Under sustained memory pressure\nthe ring drains completely, and the queue stops receiving anything\nthat does not fit into the head buffer, even once memory is available\nagain. Only re-creating the rings (e.g. ifdown / ifup) recovers it.\n\nCommit 296d5b541639 (\"bnxt_en: Fix aggregation buffer leak under OOM\ncondition.\") fixed the copybreak path only. Recently\ncommit bd3beb5c8691 (\"eth: bnxt: disable rx-copybreak by default\")\nmade the non-copybreak path the default, re-surfacing the issue.\n\nWith XDP, the agg buffers are attached to the xdp_buff as frags by\nthis point. Their agg ring slots have already been refilled.\nWe need to keep the original head page (and therefore shinfo)\naround until the xdp_buff cleanup.\n\nNote the odd split of ownership here: rx_skb_func() only deals with\nthe head buffer, the agg buffers stay with the caller in whatever\nstate they are in, still on the ring without XDP, or frags of the\nxdp_buff with XDP. This complicates rx_skb_func() cleaning up all\nthe buffers (head and frags), which would be more intuitive.\n\nDiscovered in production, severe packet loss would persist after\na transient OOM event. Tested on a BCM57504 by failing the head\nbuffer allocations in bnxt_rx_skb() (bpftrace override() of\nshould_failslab() and should_fail_alloc_page()) while receiving\n1400B ICMPv6 echo requests. 341k packets were dropped on that queue,\nenough to drain its 8188 entry agg ring 40 times over, and the queue\nkept receiving large frames afterwards with no loss and no new HW drops.\nWith a frags-capable XDP_PASS program at MTU 9000, receiving 8000B\nICMPv6 echo requests while napi_build_skb() called from\nbnxt_rx_multi_page_skb() failed, 9.2k packets were dropped,\nthe page pools' inflight count stayed flat and\nthere were no KASAN or DEBUG_PAGEALLOC splats.","publishedAt":"2026-11-30T13:31:36.831Z","updatedAt":"2026-11-30T13:31:36.831Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c0c050c58d840994ba842ad1c338a98e7c12b764","status":"affected","lessThan":"df48a08a38f744a6a9dd31d5c67872c8d0e3d783","versionType":"git"},{"version":"c0c050c58d840994ba842ad1c338a98e7c12b764","status":"affected","lessThan":"a91d91e41021f9f3fcdea5b440eaf5a8327e638a","versionType":"git"},{"version":"c0c050c58d840994ba842ad1c338a98e7c12b764","status":"affected","lessThan":"db2c610df81e34d497f49b68a0a1681c3f203bdb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnxt/bnxt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.4","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnxt/bnxt.c"]}],"references":["https://git.kernel.org/stable/c/df48a08a38f744a6a9dd31d5c67872c8d0e3d783","https://git.kernel.org/stable/c/a91d91e41021f9f3fcdea5b440eaf5a8327e638a","https://git.kernel.org/stable/c/db2c610df81e34d497f49b68a0a1681c3f203bdb"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139104.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139104","state":"PUBLISHED","datePublished":"2026-11-30T13:31:36.831Z","dateUpdated":"2026-11-30T13:31:36.831Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.914Z"},"containers":{"cna":{"title":"eth: bnxt: recycle agg buffers when Rx head buffer allocation fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\neth: bnxt: recycle agg buffers when Rx head buffer allocation fails\n\nbnxt_rx_pkt() tries to return the aggregation buffers of a packet\nto the ring when the copybreak allocation fails, but the same logic\nis missing on the rx_skb_func() failure path. The agg BDs consumed\nby the device are then never posted again. The agg ring is only\nrefilled one-for-one as completions consume its buffers, so each\nsuch failure permanently shrinks it. Under sustained memory pressure\nthe ring drains completely, and the queue stops receiving anything\nthat does not fit into the head buffer, even once memory is available\nagain. Only re-creating the rings (e.g. ifdown / ifup) recovers it.\n\nCommit 296d5b541639 (\"bnxt_en: Fix aggregation buffer leak under OOM\ncondition.\") fixed the copybreak path only. Recently\ncommit bd3beb5c8691 (\"eth: bnxt: disable rx-copybreak by default\")\nmade the non-copybreak path the default, re-surfacing the issue.\n\nWith XDP, the agg buffers are attached to the xdp_buff as frags by\nthis point. Their agg ring slots have already been refilled.\nWe need to keep the original head page (and therefore shinfo)\naround until the xdp_buff cleanup.\n\nNote the odd split of ownership here: rx_skb_func() only deals with\nthe head buffer, the agg buffers stay with the caller in whatever\nstate they are in, still on the ring without XDP, or frags of the\nxdp_buff with XDP. This complicates rx_skb_func() cleaning up all\nthe buffers (head and frags), which would be more intuitive.\n\nDiscovered in production, severe packet loss would persist after\na transient OOM event. Tested on a BCM57504 by failing the head\nbuffer allocations in bnxt_rx_skb() (bpftrace override() of\nshould_failslab() and should_fail_alloc_page()) while receiving\n1400B ICMPv6 echo requests. 341k packets were dropped on that queue,\nenough to drain its 8188 entry agg ring 40 times over, and the queue\nkept receiving large frames afterwards with no loss and no new HW drops.\nWith a frags-capable XDP_PASS program at MTU 9000, receiving 8000B\nICMPv6 echo requests while napi_build_skb() called from\nbnxt_rx_multi_page_skb() failed, 9.2k packets were dropped,\nthe page pools' inflight count stayed flat and\nthere were no KASAN or DEBUG_PAGEALLOC splats."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c0c050c58d840994ba842ad1c338a98e7c12b764","status":"affected","lessThan":"df48a08a38f744a6a9dd31d5c67872c8d0e3d783","versionType":"git"},{"version":"c0c050c58d840994ba842ad1c338a98e7c12b764","status":"affected","lessThan":"a91d91e41021f9f3fcdea5b440eaf5a8327e638a","versionType":"git"},{"version":"c0c050c58d840994ba842ad1c338a98e7c12b764","status":"affected","lessThan":"db2c610df81e34d497f49b68a0a1681c3f203bdb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnxt/bnxt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.4","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnxt/bnxt.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/df48a08a38f744a6a9dd31d5c67872c8d0e3d783"},{"url":"https://git.kernel.org/stable/c/a91d91e41021f9f3fcdea5b440eaf5a8327e638a"},{"url":"https://git.kernel.org/stable/c/db2c610df81e34d497f49b68a0a1681c3f203bdb"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:36.831Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}