Skip to content
Heist/ feed
High

eth: bnxt: always recalculate features after XDP clearing, fix null-deref

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: always recalculate features after XDP clearing, fix null-deref Recalculate features when XDP is detached. Before: # ip li set dev eth0 xdp obj xdp_dummy.bpf.o sec xdp # ip li set dev eth0 xdp off # ethtool -k eth0 | grep gro rx-gro-hw: off [requested on] After: # ip li set dev eth0 xdp obj xdp_dummy.bpf.o sec xdp # ip li set dev eth0 xdp off # ethtool -k eth0 | grep gro rx-gro-hw: on The fact that HW-GRO doesn't get re-enabled automatically is just a minor annoyance. The real issue is that the features will randomly come back during another reconfiguration which just happens to invoke netdev_update_features(). The driver doesn't handle reconfiguring two things at a time very robustly. Starting with commit 98ba1d931f61 ("bnxt_en: Fix RSS logic in __bnxt_reserve_rings()") we only reconfigure the RSS hash table if the "effective" number of Rx rings has changed. If HW-GRO is enabled "effective" number of rings is 2x what user sees. So if we are in the bad state, with HW-GRO re-enablement "pending" after XDP off, and we lower the rings by / 2 - the HW-GRO rings doing 2x and the ethtool -L doing / 2 may cancel each other out, and the: if (old_rx_rings != bp->hw_resc.resv_rx_rings && condition in __bnxt_reserve_rings() will be false. The RSS map won't get updated, and we'll crash with: BUG: kernel NULL pointer dereference, address: 0000000000000168 RIP: 0010:__bnxt_hwrm_vnic_set_rss+0x13a/0x1a0 bnxt_hwrm_

Announced Source revision 1
Original source ↗

CVE-2025-21682

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-21682

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "1054aee82321483dceabbb9b9e5d6512e8fe684b",
        "lessThan": "076a694a42ae3f0466bc6e4126050eeb7b7d299a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1054aee82321483dceabbb9b9e5d6512e8fe684b",
        "lessThan": "90336fc3d6f5e716ac39a9ddbbde453e23a5aa65",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1054aee82321483dceabbb9b9e5d6512e8fe684b",
        "lessThan": "08831a894d18abfaabb5bbde7c2069a7fb41dd93",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1054aee82321483dceabbb9b9e5d6512e8fe684b",
        "lessThan": "f0aa6a37a3dbb40b272df5fc6db93c114688adcd",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/broadcom/bnxt/bnxt.c",
      "drivers/net/ethernet/broadcom/bnxt/bnxt.h",
      "drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.16"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.16",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.1.167",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.130",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.11",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.13",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/broadcom/bnxt/bnxt.c",
      "drivers/net/ethernet/broadcom/bnxt/bnxt.h",
      "drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-21682

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#26905 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement