CVE-2026-74269 (GCVE-0-2026-74269)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:57 – Updated: 2026-08-17 05:45
VLAI
Title
bnxt: fix head underflow on XDP head-grow
Summary
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.
Assigner
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: f6974b4c2d8e1062b5a52228ee47293c15b4ee1e , < bb72b1c6755631c74b7e0878ee55bb81c06776c0 (git)
Affected: f6974b4c2d8e1062b5a52228ee47293c15b4ee1e , < e26657fe3b85c068b01f42bb0c602f242d643ba9 (git)
Affected: e9f11bfc03fb0d3c86f91b8ae945bb10f7e19c16 (git)
Affected: ae0e135dc900827687ecc684c2bbb57aae48d318 (git)
Affected: 6.1.45 , < 6.2 (semver)
Affected: 6.4.10 , < 6.5 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 6.5
Unaffected: 0 , < 6.5 (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/broadcom/bnxt/bnxt.c",
            "drivers/net/ethernet/broadcom/bnxt/bnxt.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "bb72b1c6755631c74b7e0878ee55bb81c06776c0",
              "status": "affected",
              "version": "f6974b4c2d8e1062b5a52228ee47293c15b4ee1e",
              "versionType": "git"
            },
            {
              "lessThan": "e26657fe3b85c068b01f42bb0c602f242d643ba9",
              "status": "affected",
              "version": "f6974b4c2d8e1062b5a52228ee47293c15b4ee1e",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "e9f11bfc03fb0d3c86f91b8ae945bb10f7e19c16",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "ae0e135dc900827687ecc684c2bbb57aae48d318",
              "versionType": "git"
            },
            {
              "lessThan": "6.2",
              "status": "affected",
              "version": "6.1.45",
              "versionType": "semver"
            },
            {
              "lessThan": "6.5",
              "status": "affected",
              "version": "6.4.10",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/broadcom/bnxt/bnxt.c",
            "drivers/net/ethernet/broadcom/bnxt/bnxt.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.5"
            },
            {
              "lessThan": "6.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.1.45",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.4.10",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbnxt: fix head underflow on XDP head-grow\n\nThe xdp.py test test_xdp_native_adjst_head_grow_data crashes when run on\na bnxt machine (and also crashes in NIPA).\n\nIt seems that the bug is an underflow in bnxt_rx_multi_page_skb, which\nbuilds the skb head:\n\n  napi_build_skb(data_ptr - bp-\u003erx_offset, rxr-\u003erx_page_size);\n\nThe problem with this expression is that in page mode, rx_offset is:\n\n  bp-\u003erx_offset = NET_IP_ALIGN + XDP_PACKET_HEADROOM;\n\nWhich evaluates (at least on x86_64) to 258.\n\nThe test test_xdp_native_adjst_head_grow_data tests a case where the\nhead is adjusted by -256.\n\nWhen this test runs, data_ptr is shifted to frag_start + 2 (where\nfrag_start = page_address(page) + offset).\n\nThen, bnxt_rx_multi_page_skb is invoked and the napi_build_skb\nexpression subtracts 258, landing at an address before frag_start. This\ncould be either the previous fragment or the previous physical page when\nthe offset is \u003c 256 (e.g. if the fragment started at offset 0).\n\nWhen the skb is freed, the page pool fragment reference is dropped on\neither the wrong page or the wrong frag of the right page. In either\ncase, the corrupted reference count can lead to the page being\nprematurely recycled while still in use. Once (incorrectly) recycled, it\ncan be handed out again and on driver teardown this would result in a\ndouble free.\n\nThe commit under fixes updated this code to handle the case where the\nnative page size is \u003e= 64k, but it unintentionally broke the head grow\ncase.\n\nTo fix this, add an offset field to struct bnxt_sw_rx_bd, mirroring the\nexisting offset field in struct bnxt_sw_rx_agg_bd. Populate it on\nallocation and preserve it on reuse.\n\nIn bnxt_rx_multi_page_skb, use the newly added offset field to compute\nthe fragment start and pass that to napi_build_skb. Adjust the layout\nwith skb_reserve.\n\nThere are two cases, the non-adjustment case and the adjustment case.\n\nIn both cases, the skb is built at page_address(page) + offset to\naccount for the case where the native page size \u003e= 64K and skb_reserve\nis called with data_ptr - (page_address(page) + offset). That\ndifference equals bp-\u003erx_offset when data_ptr was not moved, or\nbp-\u003erx_offset + xdp_adjust when XDP adjusted the head.\n\nRe-running the failing test with this commit applied causes the test to\nrun successfully to completion.\n\nThe other rx_skb_func implementations don\u0027t have this issue."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The flaw is reached in bnxt hardware RX/NAPI processing when network packets arrive; the reproducing selftest triggers it by exchanging UDP packets over the network after XDP head-grow on receive.\nAC:L - Once a bnxt interface runs XDP multi-buffer with jumbo MTU, an attacker can reliably trigger bpf_xdp_adjust_head(-256) with packets larger than rx_copybreak (256 bytes); no race or attacker-uncontrollable memory layout is required.\nPR:N - The vulnerable receive path performs no authentication on incoming packets. Attaching the XDP program and enabling jumbo MTU are deployment preconditions on affected bnxt servers, not privileges the remote attacker needs.\nUI:N - After the affected bnxt interface is configured with XDP and jumbo MTU, exploitation requires only sending crafted network traffic; no additional victim action such as opening files or mounting filesystems is needed.\nS:U - Impact is kernel memory corruption and denial of service within the host networking stack. This is standard in-kernel privilege/integrity impact, not a VM escape, IOMMU bypass, or other cross-security-boundary violation.\nC:H - Pointer underflow builds the skb on the wrong page-pool fragment or prior physical page, corrupting refcount accounting and allowing pages to be recycled while still referenced, yielding a use-after-free that can expose kernel memory.\nI:H - Corrupted page-pool reference counts can prematurely recycle receive buffers still in use and lead to double-free on teardown, providing exploitable kernel heap memory corruption beyond a simple crash.\nA:H - The bug crashes bnxt systems during XDP head-grow testing and can be triggered repeatedly via received traffic, causing kernel oops, resource exhaustion, or panic especially when panic_on_warn is enabled."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:45:15.603Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/bb72b1c6755631c74b7e0878ee55bb81c06776c0"
        },
        {
          "url": "https://git.kernel.org/stable/c/e26657fe3b85c068b01f42bb0c602f242d643ba9"
        }
      ],
      "title": "bnxt: fix head underflow on XDP head-grow",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-74269",
    "datePublished": "2026-08-15T05:57:43.559Z",
    "dateReserved": "2026-08-15T05:44:03.878Z",
    "dateUpdated": "2026-08-17T05:45:15.603Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-74269",
      "date": "2026-08-17",
      "epss": "0.00379",
      "percentile": "0.31048"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-74269\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:22:26.280\",\"lastModified\":\"2026-08-17T06:19:20.587\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nbnxt: fix head underflow on XDP head-grow\\n\\nThe xdp.py test test_xdp_native_adjst_head_grow_data crashes when run on\\na bnxt machine (and also crashes in NIPA).\\n\\nIt seems that the bug is an underflow in bnxt_rx_multi_page_skb, which\\nbuilds the skb head:\\n\\n  napi_build_skb(data_ptr - bp-\u003erx_offset, rxr-\u003erx_page_size);\\n\\nThe problem with this expression is that in page mode, rx_offset is:\\n\\n  bp-\u003erx_offset = NET_IP_ALIGN + XDP_PACKET_HEADROOM;\\n\\nWhich evaluates (at least on x86_64) to 258.\\n\\nThe test test_xdp_native_adjst_head_grow_data tests a case where the\\nhead is adjusted by -256.\\n\\nWhen this test runs, data_ptr is shifted to frag_start + 2 (where\\nfrag_start = page_address(page) + offset).\\n\\nThen, bnxt_rx_multi_page_skb is invoked and the napi_build_skb\\nexpression subtracts 258, landing at an address before frag_start. This\\ncould be either the previous fragment or the previous physical page when\\nthe offset is \u003c 256 (e.g. if the fragment started at offset 0).\\n\\nWhen the skb is freed, the page pool fragment reference is dropped on\\neither the wrong page or the wrong frag of the right page. In either\\ncase, the corrupted reference count can lead to the page being\\nprematurely recycled while still in use. Once (incorrectly) recycled, it\\ncan be handed out again and on driver teardown this would result in a\\ndouble free.\\n\\nThe commit under fixes updated this code to handle the case where the\\nnative page size is \u003e= 64k, but it unintentionally broke the head grow\\ncase.\\n\\nTo fix this, add an offset field to struct bnxt_sw_rx_bd, mirroring the\\nexisting offset field in struct bnxt_sw_rx_agg_bd. Populate it on\\nallocation and preserve it on reuse.\\n\\nIn bnxt_rx_multi_page_skb, use the newly added offset field to compute\\nthe fragment start and pass that to napi_build_skb. Adjust the layout\\nwith skb_reserve.\\n\\nThere are two cases, the non-adjustment case and the adjustment case.\\n\\nIn both cases, the skb is built at page_address(page) + offset to\\naccount for the case where the native page size \u003e= 64K and skb_reserve\\nis called with data_ptr - (page_address(page) + offset). That\\ndifference equals bp-\u003erx_offset when data_ptr was not moved, or\\nbp-\u003erx_offset + xdp_adjust when XDP adjusted the head.\\n\\nRe-running the failing test with this commit applied causes the test to\\nrun successfully to completion.\\n\\nThe other rx_skb_func implementations don\u0027t have this issue.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/net/ethernet/broadcom/bnxt/bnxt.c\",\"drivers/net/ethernet/broadcom/bnxt/bnxt.h\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"f6974b4c2d8e1062b5a52228ee47293c15b4ee1e\",\"lessThan\":\"bb72b1c6755631c74b7e0878ee55bb81c06776c0\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f6974b4c2d8e1062b5a52228ee47293c15b4ee1e\",\"lessThan\":\"e26657fe3b85c068b01f42bb0c602f242d643ba9\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"e9f11bfc03fb0d3c86f91b8ae945bb10f7e19c16\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ae0e135dc900827687ecc684c2bbb57aae48d318\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6.1.45\",\"lessThan\":\"6.2\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.4.10\",\"lessThan\":\"6.5\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/net/ethernet/broadcom/bnxt/bnxt.c\",\"drivers/net/ethernet/broadcom/bnxt/bnxt.h\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.5\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.5\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/bb72b1c6755631c74b7e0878ee55bb81c06776c0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e26657fe3b85c068b01f42bb0c602f242d643ba9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…