bnx2x: fix double free in bnx2x_init_firmware() error path
Summary
| CVE | CVE-2026-89582 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-09-11 20:19:42 UTC |
| Updated | 2026-09-11 20:19:42 UTC |
| 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. |
Risk And Classification
EPSS: 0.001680000 probability, percentile 0.063490000 (date 2026-09-13)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 94a78b79cb5f14c09a42522738d6694c6a1cdd20 dc98e727b9cfc5e19c796bf893878153f00b222b git | Not specified |
| CNA | Linux | Linux | affected 94a78b79cb5f14c09a42522738d6694c6a1cdd20 4d36e38e48340a1ccf92a98c7a22d07a954e5aa3 git | Not specified |
| CNA | Linux | Linux | affected 94a78b79cb5f14c09a42522738d6694c6a1cdd20 a142c024f07d623e2b6b25943f6c36d4b6b0b4c6 git | Not specified |
| CNA | Linux | Linux | affected 94a78b79cb5f14c09a42522738d6694c6a1cdd20 d2796ffe38cb4155afe0eab23636295b096c27a5 git | Not specified |
| CNA | Linux | Linux | affected 2.6.31 | Not specified |
| CNA | Linux | Linux | unaffected 2.6.31 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.109 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.50 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.2.4 7.2.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.3-rc1 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/dc98e727b9cfc5e19c796bf893878153f00b222b | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/a142c024f07d623e2b6b25943f6c36d4b6b0b4c6 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/4d36e38e48340a1ccf92a98c7a22d07a954e5aa3 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/d2796ffe38cb4155afe0eab23636295b096c27a5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.