scsi: qla2xxx: Null out freed pointers in qla2x00_mem_alloc() error path (Linux Linux)

CVE-2026-97532
Not available

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Null out freed pointers in qla2x00_mem_alloc() error path When qla2x00_mem_alloc() fails, qla2x00_probe_one() jumps to probe_hw_failed and calls qla2x00_mem_free(). Several error labels in qla2x00_mem_alloc() freed adapter members (elsrej.c, purex_dma_pool, flt, sfp_data, loop_id_map, async_pd, sf_init_cb, ex_init_cb, npiv_info) but left the pointers dangling. qla2x00_mem_free() then freed them a second time. Worse, for the dma_pool members it issued dma_pool_free(ha->s_dma_pool, ...) after s_dma_pool had already been destroyed and set to NULL at fail_s_dma_pool, dereferencing a NULL pool. Clear each freed pointer (and its DMA handle) in the error labels so the subsequent qla2x00_mem_free() skips them.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected d64d6c5671db5e693a0caaee79f2571b098749c9 < e6732abc33c41772192ef8717354a5574a5c2ebf ; affected d64d6c5671db5e693a0caaee79f2571b098749c9 < aea0901d35beb3acc8a4086fb00c5b9c0e9c83ab ; affected d64d6c5671db5e693a0caaee79f2571b098749c9 < d3dee064ab9d705f6f652c639c55d7ea74df87cc ; affected d64d6c5671db5e693a0caaee79f2571b098749c9 < 5e0d6ffabbbd86b3fb9168b9dbb62190ecb20d84 ; affected d64d6c5671db5e693a0caaee79f2571b098749c9 < 84f5de696b8c924aeb4bf430a0bdc762fc50e99f ; affected d64d6c5671db5e693a0caaee79f2571b098749c9 < a57570229edb7a0990d5c8067daeb9ac8858a961
Linux · Linuxaffected 4.16 ; unaffected 0 < 4.16 ; unaffected 5.10.273 ≤ 5.10.* ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD