CVE-2022-50646

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

N/A
Published: December 9, 2025 at 12:00 AM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 4.14.634.14.63 ≤ v < 4.154.16 ≤ v < 4.19.2704.16 ≤ v < 5.10.1634.16 ≤ v < 5.15.864.16 ≤ v < 5.4.2294.16 ≤ v < 6.0.164.16 ≤ v < 6.1.24.16 ≤ v < 6.21edd825c11f8ed2c409d6fb6b3d90a042cbf738d4.14.634.168b834bff1b73dce46f4e9f5e84af6f73fed8b0ef
Vendor states this is fixed in 0aa7be66168b1e84b2581ffff3ccb54a6c804a1e (fixed)
Vendor states this is fixed in 9c9ff300e0de07475796495d86f449340d454a0c (fixed)
Vendor states this is fixed in bfe10a1d9fbccdf39f8449d62509f070d8aaaac1 (fixed)
Vendor states this is fixed in c808edbf580bfc454671cbe66e9d7c2e938e7601 (fixed)
Vendor states this is fixed in f4d1c14e8b404766ff2bb8644bb19443d73965de (fixed)
Vendor states this is fixed in f8fc2f18652917cdcc89cb23f3a1b7cb6e119c5e (fixed)
Vendor states this is fixed in fc998d0a7d65672f0812f11cd0ec4bbe4f8f8507 (fixed)
Affected range stops below 4.15, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.16 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card