scsi: aacraid: Fix double-free on probe failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8e0c5ebde82b08f6d996e11983890fc4cc085fab · < 8a3995a3ffeca280a961b59f5c99843d81b15929| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: aacraid: Fix double-free on probe failure
aac_probe_one() calls hardware-specific init functions through the aac_driver_ident::init pointer, all of which eventually call down to aac_init_adapter().
If aac_init_adapter() fails after allocating memory for aac_dev::queues, it frees the memory but does not clear that member.
After the hardware-specific init function returns an error, aac_probe_one() goes down an error path that frees the memory pointed to by aac_dev::queues, resulting.in a double-free.
From the CVE record · Linux
The Linux kernel’s aacraid driver can double-free queue memory when adapter initialization fails after allocating it. The provided information does not establish how an attacker could trigger this failure or whether authentication or user interaction is required.
Engineers running Linux kernels with the aacraid driver should check their versions; affected versions were not provided.