scsi: bfa: Double-free fix
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e · < 13f613228cf3c96a038424cd97aa4d6aadc66294| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: bfa: Double-free fix
When the bfad_im_probe() function fails during initialization, the memory pointed to by bfad->im is freed without setting bfad->im to NULL.
Subsequently, during driver uninstallation, when the state machine enters the bfad_sm_stopping state and calls the bfad_im_probe_undo() function, it attempts to free the memory pointed to by bfad->im again, thereby triggering a double-free vulnerability.
Set bfad->im to NULL if probing fails.
From the CVE record · Linux
The Linux kernel's scsi bfa driver can free the same memory twice if bfad_im_probe() fails during initialization and the driver is later uninstalled. This can trigger a double-free when the driver enters its stopping state. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the scsi bfa driver should check their exposure; affected versions are not specified.