CVE-2022-50646

scsi: hpsa: Fix possible memory leak in hpsa_init_one()

published December 9, 2025

CVSS
—
EPSS
0%
Percentile
10.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00205 · 10.0th percentile
Published
2025-12-09T00:00Z
EPSS history
Timeline
  • 09 DEC 00:00Z
    scsi: hpsa: Fix possible memory leak in hpsa_init_one()
    cvelistv5