CVE-2022-50646

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

No CVSS score yet EPSS 0.22%

Published 9 Dec 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2022-50646

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50646 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.2% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef, before f4d1c14e8b404766ff2bb8644bb19443d73965de
affected from 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef, before f8fc2f18652917cdcc89cb23f3a1b7cb6e119c5e
affected from 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef, before c808edbf580bfc454671cbe66e9d7c2e938e7601
affected from 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef, before bfe10a1d9fbccdf39f8449d62509f070d8aaaac1
affected from 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef, before fc998d0a7d65672f0812f11cd0ec4bbe4f8f8507
affected from 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef, before 0aa7be66168b1e84b2581ffff3ccb54a6c804a1e
affected from 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef, before 9c9ff300e0de07475796495d86f449340d454a0c
affected 1edd825c11f8ed2c409d6fb6b3d90a042cbf738d
affected from 4.14.63, before 4.15
Other versions: unaffected
Linux
affected 4.16
unaffected before 4.16
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.86 up to and including 5.15.*
unaffected from 6.0.16 up to and including 6.0.*
unaffected from 6.1.2 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50646 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50646

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50646
trivy image --scanners vuln IMAGE | grep CVE-2022-50646

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50646 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.