# CVE-2026-74269: bnxt: fix head underflow on XDP head-grow

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-08-15T05:57:43.559Z
- Modified: 2026-10-30T13:19:54.063Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

bnxt: fix head underflow on XDP head-grow

The xdp.py test test_xdp_native_adjst_head_grow_data crashes when run on
a bnxt machine (and also crashes in NIPA).

It seems that the bug is an underflow in bnxt_rx_multi_page_skb, which
builds the skb head:

  napi_build_skb(data_ptr - bp->rx_offset, rxr->rx_page_size);

The problem with this expression is that in page mode, rx_offset is:

  bp->rx_offset = NET_IP_ALIGN + XDP_PACKET_HEADROOM;

Which evaluates (at least on x86_64) to 258.

The test test_xdp_native_adjst_head_grow_data tests a case where the
head is adjusted by -256.

When this test runs, data_ptr is shifted to frag_start + 2 (where
frag_start = page_address(page) + offset).

Then, bnxt_rx_multi_page_skb is invoked and the napi_build_skb
expression subtracts 258, landing at an address before frag_start. This
could be either the previous fragment or the previous physical page when
the offset is < 256 (e.g. if the fragment started at offset 0).

When the skb is freed, the page pool fragment reference is dropped on
either the wrong page or the wrong frag of the right page. In either
case, the corrupted reference count can lead to the page being
prematurely recycled while still in use. Once (incorrectly) recycled, it
can be handed out again and on driver teardown this would result in a
double free.

The commit under fixes updated this code to handle the case where the
native page size is >= 64k, but it unintentionally broke the head grow
case.

To fix this, add an offset field to struct bnxt_sw_rx_bd, mirroring the
existing offset field in struct bnxt_sw_rx_agg_bd. Populate it on
allocation and preserve it on reuse.

In bnxt_rx_multi_page_skb, use the newly added offset field to compute
the fragment start and pass that to napi_build_skb. Adjust the layout
with skb_reserve.

There are two cases, the non-adjustment case and the adjustment case.

In both cases, the skb is built at page_address(page) + offset to
account for the case where the native page size >= 64K and skb_reserve
is called with data_ptr - (page_address(page) + offset). That
difference equals bp->rx_offset when data_ptr was not moved, or
bp->rx_offset + xdp_adjust when XDP adjusted the head.

Re-running the failing test with this commit applied causes the test to
run successfully to completion.

The other rx_skb_func implementations don't have this issue.

(As written by CVE List.)

## Affected

- Linux Linux: from e9f11bfc03fb0d3c86f91b8ae945bb10f7e19c16 before 59f6211c006cb5936b443fb396eb43864ca21ed5; from f6974b4c2d8e1062b5a52228ee47293c15b4ee1e before 3e8f3959a7fd28461b8cd9708c21286b4250b77a; from f6974b4c2d8e1062b5a52228ee47293c15b4ee1e before ff34e5a26a26c92142afea11455e259c4c4c617b; from f6974b4c2d8e1062b5a52228ee47293c15b4ee1e before 4c03275bc4435cc8e25f7f3f08aff58c0e783d8d; from f6974b4c2d8e1062b5a52228ee47293c15b4ee1e before bb72b1c6755631c74b7e0878ee55bb81c06776c0; from f6974b4c2d8e1062b5a52228ee47293c15b4ee1e before e26657fe3b85c068b01f42bb0c602f242d643ba9; ae0e135dc900827687ecc684c2bbb57aae48d318; from 6.1.45 before 6.1.191; from 6.4.10 before 6.5; 6.5 (not affected: before 6.5; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/59f6211c006cb5936b443fb396eb43864ca21ed5>
- <https://git.kernel.org/stable/c/3e8f3959a7fd28461b8cd9708c21286b4250b77a>
- <https://git.kernel.org/stable/c/ff34e5a26a26c92142afea11455e259c4c4c617b>
- <https://git.kernel.org/stable/c/4c03275bc4435cc8e25f7f3f08aff58c0e783d8d>
- <https://git.kernel.org/stable/c/bb72b1c6755631c74b7e0878ee55bb81c06776c0>
- <https://git.kernel.org/stable/c/e26657fe3b85c068b01f42bb0c602f242d643ba9>

## Sources

- CVE List: [CVE-2026-74269](https://www.cve.org/CVERecord?id=CVE-2026-74269), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-74269](https://nvd.nist.gov/vuln/detail/CVE-2026-74269), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-74269 · Whole record: https://cve.day/CVE-2026-74269.json · Rebuilt by cve.day 2026-11-25T22:59:33.150Z
