---
id: CVE-2026-89582
title: 'bnx2x: fix double free in bnx2x_init_firmware() error path'
summary: |-
  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 s…
severity: high
cvss: 7
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: vendor
cwe:
  - CWE-1341
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 <
    770715784b689749014ce193ef986b706fe8f51c
  - >-
    Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 <
    c44e5d6c3189241d5f791bc7b1eddde6b92f802c
  - >-
    Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 <
    07d4516e3eb1fcde4a5db29eb556cdb0ebba6265
  - >-
    Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 <
    ac280f6872e75df49f3004505bcddff91d9e5362
  - >-
    Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 <
    dc98e727b9cfc5e19c796bf893878153f00b222b
  - >-
    Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 <
    4d36e38e48340a1ccf92a98c7a22d07a954e5aa3
  - >-
    Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 <
    a142c024f07d623e2b6b25943f6c36d4b6b0b4c6
  - >-
    Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 <
    d2796ffe38cb4155afe0eab23636295b096c27a5
  - Linux 2.6.31
published: '2026-09-11'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T08:49:15.111Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-89582'
references:
  - url: 'https://git.kernel.org/stable/c/770715784b689749014ce193ef986b706fe8f51c'
  - url: 'https://git.kernel.org/stable/c/c44e5d6c3189241d5f791bc7b1eddde6b92f802c'
  - url: 'https://git.kernel.org/stable/c/07d4516e3eb1fcde4a5db29eb556cdb0ebba6265'
  - url: 'https://git.kernel.org/stable/c/ac280f6872e75df49f3004505bcddff91d9e5362'
  - url: 'https://git.kernel.org/stable/c/dc98e727b9cfc5e19c796bf893878153f00b222b'
  - url: 'https://git.kernel.org/stable/c/4d36e38e48340a1ccf92a98c7a22d07a954e5aa3'
  - url: 'https://git.kernel.org/stable/c/a142c024f07d623e2b6b25943f6c36d4b6b0b4c6'
  - url: 'https://git.kernel.org/stable/c/d2796ffe38cb4155afe0eab23636295b096c27a5'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89582.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-89582'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2532281'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-89582'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-89582'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-89582.mbox
tags:
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00177
epssPercentile: 0.07182
ingestedAt: '2026-09-14T15:23:07.451Z'
---

## Overview

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.

## Affected

- `Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 < 770715784b689749014ce193ef986b706fe8f51c`
- `Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 < c44e5d6c3189241d5f791bc7b1eddde6b92f802c`
- `Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 < 07d4516e3eb1fcde4a5db29eb556cdb0ebba6265`
- `Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 < ac280f6872e75df49f3004505bcddff91d9e5362`
- `Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 < dc98e727b9cfc5e19c796bf893878153f00b222b`
- `Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 < 4d36e38e48340a1ccf92a98c7a22d07a954e5aa3`
- `Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 < a142c024f07d623e2b6b25943f6c36d4b6b0b4c6`
- `Linux >= 94a78b79cb5f14c09a42522738d6694c6a1cdd20 < d2796ffe38cb4155afe0eab23636295b096c27a5`
- `Linux 2.6.31`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, … · updated 2026-09-18 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89582.json)
