{"id":"CVE-2026-89582","summary":"bnx2x: fix double free in bnx2x_init_firmware() error path","details":"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-\u003einit_ops, bp-\u003einit_data and\nbp-\u003einit_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.","modified":"2026-09-13T03:47:19.408529235Z","published":"2026-09-11T19:44:48.336Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89582.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4d36e38e48340a1ccf92a98c7a22d07a954e5aa3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a142c024f07d623e2b6b25943f6c36d4b6b0b4c6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d2796ffe38cb4155afe0eab23636295b096c27a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dc98e727b9cfc5e19c796bf893878153f00b222b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89582.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89582"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"94a78b79cb5f14c09a42522738d6694c6a1cdd20"},{"fixed":"dc98e727b9cfc5e19c796bf893878153f00b222b"},{"fixed":"4d36e38e48340a1ccf92a98c7a22d07a954e5aa3"},{"fixed":"a142c024f07d623e2b6b25943f6c36d4b6b0b4c6"},{"fixed":"d2796ffe38cb4155afe0eab23636295b096c27a5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89582.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.31"},{"fixed":"6.12.109"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.50"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89582.json"}}],"schema_version":"1.9.0"}