Bug 2420236 (CVE-2022-50646) - CVE-2022-50646 kernel: scsi: hpsa: Fix possible memory leak in hpsa_init_one()
Summary: CVE-2022-50646 kernel: scsi: hpsa: Fix possible memory leak in hpsa_init_one()
Keywords:
Status: NEW
Alias: CVE-2022-50646
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-09 01:02 UTC by OSIDB Bzimport
Modified: 2025-12-10 08:35 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-09 01:02:19 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.