CVE-2022-50646

Source
https://cve.org/CVERecord?id=CVE-2022-50646
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50646.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50646
Downstream
Related
Published
2025-12-09T00:00:20.596Z
Modified
2026-03-20T11:47:33.773646Z
Summary
scsi: hpsa: Fix possible memory leak in hpsa_init_one()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

The hpdaallocctlrinfo() allocates h and its field replymap. However, in hpsainitone(), if allocpercpu() failed, the hpsainitone() jumps to clean1 directly, which frees h and leaks the h->replymap.

Fix by calling hpdafreectlrinfo() to release h->replaymap and h instead free h directly.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50646.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef
Fixed
f4d1c14e8b404766ff2bb8644bb19443d73965de
Fixed
f8fc2f18652917cdcc89cb23f3a1b7cb6e119c5e
Fixed
c808edbf580bfc454671cbe66e9d7c2e938e7601
Fixed
bfe10a1d9fbccdf39f8449d62509f070d8aaaac1
Fixed
fc998d0a7d65672f0812f11cd0ec4bbe4f8f8507
Fixed
0aa7be66168b1e84b2581ffff3ccb54a6c804a1e
Fixed
9c9ff300e0de07475796495d86f449340d454a0c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
1edd825c11f8ed2c409d6fb6b3d90a042cbf738d

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50646.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.16.0
Fixed
4.19.270
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.229
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.86
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50646.json"