← Back to CVE Explorer

CVE-2026-89582

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: bnx2x: fix double free in bnx2x_init_firmware() error path bnx2x_init_firmware() frees bp->init_ops, bp->init_data and bp->init_ops_offsets in its error path without setting them to NULL. The cleanup function bnx2x_release_firmware() frees the same three pointers unconditionally, so if init_firmware fails and release_firmware is later called (e.g. from __bnx2x_remove or through the function state machine), all three are freed a second time. Set each pointer to NULL after kfree() in the error path so that the subsequent kfree(NULL) in bnx2x_release_firmware() is a safe no-op.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-09-11 20:19:42.537000
Last modified
2026-10-19 09:17:54.307000
View original CVE JSON
{
  "id": "CVE-2026-89582",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-09-11T20:19:42.537",
  "lastModified": "2026-10-19T09:17:54.307",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbnx2x: fix double free in bnx2x_init_firmware() error path\n\nbnx2x_init_firmware() frees bp->init_ops, bp->init_data and\nbp->init_ops_offsets in its error path without setting them to NULL.\nThe cleanup function bnx2x_release_firmware() frees the same three\npointers unconditionally, so if init_firmware fails and\nrelease_firmware is later called (e.g. from __bnx2x_remove or through\nthe function state machine), all three are freed a second time.\n\nSet each pointer to NULL after kfree() in the error path so that the\nsubsequent kfree(NULL) in bnx2x_release_firmware() is a safe no-op."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "94a78b79cb5f14c09a42522738d6694c6a1cdd20",
              "lessThan": "770715784b689749014ce193ef986b706fe8f51c",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "94a78b79cb5f14c09a42522738d6694c6a1cdd20",
              "lessThan": "c44e5d6c3189241d5f791bc7b1eddde6b92f802c",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "94a78b79cb5f14c09a42522738d6694c6a1cdd20",
              "lessThan": "07d4516e3eb1fcde4a5db29eb556cdb0ebba6265",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "94a78b79cb5f14c09a42522738d6694c6a1cdd20",
              "lessThan": "ac280f6872e75df49f3004505bcddff91d9e5362",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "94a78b79cb5f14c09a42522738d6694c6a1cdd20",
              "lessThan": "dc98e727b9cfc5e19c796bf893878153f00b222b",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "94a78b79cb5f14c09a42522738d6694c6a1cdd20",
              "lessThan": "4d36e38e48340a1ccf92a98c7a22d07a954e5aa3",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "94a78b79cb5f14c09a42522738d6694c6a1cdd20",
              "lessThan": "a142c024f07d623e2b6b25943f6c36d4b6b0b4c6",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "94a78b79cb5f14c09a42522738d6694c6a1cdd20",
              "lessThan": "d2796ffe38cb4155afe0eab23636295b096c27a5",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "2.6.31",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "2.6.31",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.270",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.221",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.188",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.157",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.109",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.50",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.4",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/07d4516e3eb1fcde4a5db29eb556cdb0ebba6265",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/4d36e38e48340a1ccf92a98c7a22d07a954e5aa3",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/770715784b689749014ce193ef986b706fe8f51c",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/a142c024f07d623e2b6b25943f6c36d4b6b0b4c6",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/ac280f6872e75df49f3004505bcddff91d9e5362",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c44e5d6c3189241d5f791bc7b1eddde6b92f802c",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/d2796ffe38cb4155afe0eab23636295b096c27a5",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/dc98e727b9cfc5e19c796bf893878153f00b222b",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}