{"id":"CVE-2026-89582","state":"PUBLISHED","title":"bnx2x: fix double free in bnx2x_init_firmware() error path","description":"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.","publishedAt":"2026-09-11T19:44:48.336Z","updatedAt":"2026-10-19T08:49:15.111Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"770715784b689749014ce193ef986b706fe8f51c","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"c44e5d6c3189241d5f791bc7b1eddde6b92f802c","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"07d4516e3eb1fcde4a5db29eb556cdb0ebba6265","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"ac280f6872e75df49f3004505bcddff91d9e5362","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"dc98e727b9cfc5e19c796bf893878153f00b222b","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"4d36e38e48340a1ccf92a98c7a22d07a954e5aa3","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"a142c024f07d623e2b6b25943f6c36d4b6b0b4c6","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"d2796ffe38cb4155afe0eab23636295b096c27a5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.31","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.31","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c"]}],"references":["https://git.kernel.org/stable/c/770715784b689749014ce193ef986b706fe8f51c","https://git.kernel.org/stable/c/c44e5d6c3189241d5f791bc7b1eddde6b92f802c","https://git.kernel.org/stable/c/07d4516e3eb1fcde4a5db29eb556cdb0ebba6265","https://git.kernel.org/stable/c/ac280f6872e75df49f3004505bcddff91d9e5362","https://git.kernel.org/stable/c/dc98e727b9cfc5e19c796bf893878153f00b222b","https://git.kernel.org/stable/c/4d36e38e48340a1ccf92a98c7a22d07a954e5aa3","https://git.kernel.org/stable/c/a142c024f07d623e2b6b25943f6c36d4b6b0b4c6","https://git.kernel.org/stable/c/d2796ffe38cb4155afe0eab23636295b096c27a5"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89582.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89582","state":"PUBLISHED","datePublished":"2026-09-11T19:44:48.336Z","dateUpdated":"2026-10-19T08:49:15.111Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.728Z"},"containers":{"cna":{"title":"bnx2x: fix double free in bnx2x_init_firmware() error path","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":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"770715784b689749014ce193ef986b706fe8f51c","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"c44e5d6c3189241d5f791bc7b1eddde6b92f802c","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"07d4516e3eb1fcde4a5db29eb556cdb0ebba6265","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"ac280f6872e75df49f3004505bcddff91d9e5362","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"dc98e727b9cfc5e19c796bf893878153f00b222b","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"4d36e38e48340a1ccf92a98c7a22d07a954e5aa3","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"a142c024f07d623e2b6b25943f6c36d4b6b0b4c6","versionType":"git"},{"version":"94a78b79cb5f14c09a42522738d6694c6a1cdd20","status":"affected","lessThan":"d2796ffe38cb4155afe0eab23636295b096c27a5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.31","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.31","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c"]}],"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"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:49:15.111Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"5.10.270"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"5.15.221"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.12.109"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.18.50"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"7.2.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}