Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-74269

bnxt: fix head underflow on XDP head-grow
Back to all
CVE

CVE-2026-74269

bnxt: fix head underflow on XDP head-grow

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

bnxt: fix head underflow on XDP head-grow

The xdp.py test testxdpnativeadjstheadgrowdata crashes when run on

a bnxt machine (and also crashes in NIPA).

It seems that the bug is an underflow in bnxtrxmultipageskb, which

builds the skb head:

  napibuildskb(dataptr - bp->rxoffset, rxr->rxpagesize);

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

  bp->rxoffset = NETIPALIGN + XDPPACKET_HEADROOM;

Which evaluates (at least on x86_64) to 258.

The test testxdpnativeadjstheadgrowdata tests a case where the

head is adjusted by -256.

When this test runs, dataptr is shifted to fragstart + 2 (where

fragstart = pageaddress(page) + offset).

Then, bnxtrxmultipageskb is invoked and the napibuildskb

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 bnxtswrx_bd, mirroring the

existing offset field in struct bnxtswrxaggbd. Populate it on

allocation and preserve it on reuse.

In bnxtrxmultipageskb, use the newly added offset field to compute

the fragment start and pass that to napibuildskb. 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 dataptr - (pageaddress(page) + offset). That

difference equals bp->rxoffset when dataptr was not moved, or

bp->rxoffset + xdpadjust when XDP adjusted the head.

Re-running the failing test with this commit applied causes the test to

run successfully to completion.

The other rxskbfunc implementations don't have this issue.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://git.kernel.org/stable/c/bb72b1c6755631c74b7e0878ee55bb81c06776c0, https://git.kernel.org/stable/c/e26657fe3b85c068b01f42bb0c602f242d643ba9, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74269.json, https://nvd.nist.gov/vuln/detail/CVE-2026-74269, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.0038%
EPSS Percentile
0.30817%
Introduced Version
f6974b4c2d8e1062b5a52228ee47293c15b4ee1e,0,6.1.45,6.4.10,6.5.0
Fix Available
e26657fe3b85c068b01f42bb0c602f242d643ba9,6.2,6.5,7.1.5

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading