CVE-2022-50646 scsi: hpsa: Fix possible memory leak in hpsa_init_one()

Not scored Published Updated

A memory leak in the hpsa SCSI driver can lead to resource exhaustion and denial of service when controller initialization fails.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-50646?

CVE-2022-50646 is a memory corruption vulnerability in Linux, published on 9 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2022-50646?

How do I fix CVE-2022-50646?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-50646 being exploited?

There is no known exploitation of CVE-2022-50646 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-50646, GHSA-23j2-8hh8-295f, OESA-2026-1074, UBUNTU-CVE-2022-50646.

Is CVE-2022-50646 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free