CVE-2026-89582: bnx2x: fix double free in bnx2x_init_firmware() error path

Published Sep 11, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

bnx2x: fix double free in bnx2xinitfirmware() error path

bnx2xinitfirmware() frees bp->initops, bp->initdata and bp->initopsoffsets in its error path without setting them to NULL. The cleanup function bnx2xreleasefirmware() frees the same three pointers unconditionally, so if initfirmware fails and releasefirmware is later called (e.g. from bnx2xremove 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 bnx2xreleasefirmware() is a safe no-op.

Affected Software

1 affected component
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In bnx2x_init_firmware() error path, after kfree() free bp->init_ops, bp->init_data, and bp->init_ops_offsets, immediately set each of those pointers to NULL so that later cleanup via bnx2x_release_firmware() does not double free them.

    Linux kernel (bnx2x driver) Error-path cleanup after kfree() = Set freed pointers (bp->init_ops, bp->init_data, bp->init_ops_offsets) to NULL after kfree()

Event History

Sep 11, 2026
CVE Published
via MITRE·07:44 PM
Data Sourced
via MITRE·07:44 PM
Description

Frequently Asked Questions

1

What conditions are required for the double free to occur?

bnx2x_init_firmware() must first fail after allocating one or more of bp->init_ops, bp->init_data, or bp->init_ops_offsets. A later call to bnx2x_release_firmware(), including during device removal or via the function state machine, then attempts to free the same pointers again.

2

Which systems are exposed?

Systems using the Linux kernel bnx2x driver are potentially exposed when the firmware initialization error path is reached and subsequent cleanup occurs. The provided information does not identify affected hardware models, kernel versions, or configuration defaults.

3

How can administrators determine whether their kernel includes the fix?

Check whether the kernel source or applied stable patches include one of the referenced commits. The fix sets bp->init_ops, bp->init_data, and bp->init_ops_offsets to NULL immediately after they are freed in the bnx2x_init_firmware() error path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203