scsi: hpsa: Fix possible memory leak in hpsa_init_one()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef · < 0aa7be66168b1e84b2581ffff3ccb54a6c804a1e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: hpsa: Fix possible memory leak in hpsa_init_one()
The hpda_alloc_ctlr_info() allocates h and its field reply_map. However, in hpsa_init_one(), if alloc_percpu() failed, the hpsa_init_one() jumps to clean1 directly, which frees h and leaks the h->reply_map.
Fix by calling hpda_free_ctlr_info() to release h->replay_map and h instead free h directly.
From the CVE record · Linux
The Linux kernel hpsa driver can leak memory during controller initialization if alloc_percpu() fails. The input does not establish whether an attacker can trigger this condition or specify network, authentication, or user-interaction requirements.
Engineers running Linux kernels with the hpsa driver should check their kernel; affected versions are not specified.