CVE-2022-50646 (GCVE-0-2022-50646)
Vulnerability from cvelistv5 – Published: 2025-12-09 00:00 – Updated: 2026-05-23 15:24
VLAI
EPSS
VEX
Title
scsi: hpsa: Fix possible memory leak in hpsa_init_one()
Summary
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.
Severity
No CVSS data available.
Assigner
References
7 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef , < f4d1c14e8b404766ff2bb8644bb19443d73965de
(git)
Affected: 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef , < f8fc2f18652917cdcc89cb23f3a1b7cb6e119c5e (git) Affected: 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef , < c808edbf580bfc454671cbe66e9d7c2e938e7601 (git) Affected: 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef , < bfe10a1d9fbccdf39f8449d62509f070d8aaaac1 (git) Affected: 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef , < fc998d0a7d65672f0812f11cd0ec4bbe4f8f8507 (git) Affected: 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef , < 0aa7be66168b1e84b2581ffff3ccb54a6c804a1e (git) Affected: 8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef , < 9c9ff300e0de07475796495d86f449340d454a0c (git) Affected: 1edd825c11f8ed2c409d6fb6b3d90a042cbf738d (git) Affected: 4.14.63 , < 4.15 (semver) |
|
| Linux | Linux |
Affected:
4.16
Unaffected: 0 , < 4.16 (semver) Unaffected: 4.19.270 , ≤ 4.19.* (semver) Unaffected: 5.4.229 , ≤ 5.4.* (semver) Unaffected: 5.10.163 , ≤ 5.10.* (semver) Unaffected: 5.15.86 , ≤ 5.15.* (semver) Unaffected: 6.0.16 , ≤ 6.0.* (semver) Unaffected: 6.1.2 , ≤ 6.1.* (semver) Unaffected: 6.2 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/scsi/hpsa.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "f4d1c14e8b404766ff2bb8644bb19443d73965de",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "f8fc2f18652917cdcc89cb23f3a1b7cb6e119c5e",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "c808edbf580bfc454671cbe66e9d7c2e938e7601",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "bfe10a1d9fbccdf39f8449d62509f070d8aaaac1",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "fc998d0a7d65672f0812f11cd0ec4bbe4f8f8507",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "0aa7be66168b1e84b2581ffff3ccb54a6c804a1e",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "9c9ff300e0de07475796495d86f449340d454a0c",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"status": "affected",
"version": "1edd825c11f8ed2c409d6fb6b3d90a042cbf738d",
"versionType": "git"
},
{
"lessThan": "4.15",
"status": "affected",
"version": "4.14.63",
"versionType": "semver"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/scsi/hpsa.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.16"
},
{
"lessThan": "4.16",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.19.*",
"status": "unaffected",
"version": "4.19.270",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"version": "5.4.229",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.163",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.86",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.0.*",
"status": "unaffected",
"version": "6.0.16",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.2",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.19.270",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.4.229",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.163",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.86",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.0.16",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.2",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.2",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.14.63",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: hpsa: Fix possible memory leak in hpsa_init_one()\n\nThe hpda_alloc_ctlr_info() allocates h and its field reply_map. However, in\nhpsa_init_one(), if alloc_percpu() failed, the hpsa_init_one() jumps to\nclean1 directly, which frees h and leaks the h-\u003ereply_map.\n\nFix by calling hpda_free_ctlr_info() to release h-\u003ereplay_map and h instead\nfree h directly."
}
],
"providerMetadata": {
"dateUpdated": "2026-05-23T15:24:48.629Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/f4d1c14e8b404766ff2bb8644bb19443d73965de"
},
{
"url": "https://git.kernel.org/stable/c/f8fc2f18652917cdcc89cb23f3a1b7cb6e119c5e"
},
{
"url": "https://git.kernel.org/stable/c/c808edbf580bfc454671cbe66e9d7c2e938e7601"
},
{
"url": "https://git.kernel.org/stable/c/bfe10a1d9fbccdf39f8449d62509f070d8aaaac1"
},
{
"url": "https://git.kernel.org/stable/c/fc998d0a7d65672f0812f11cd0ec4bbe4f8f8507"
},
{
"url": "https://git.kernel.org/stable/c/0aa7be66168b1e84b2581ffff3ccb54a6c804a1e"
},
{
"url": "https://git.kernel.org/stable/c/9c9ff300e0de07475796495d86f449340d454a0c"
}
],
"title": "scsi: hpsa: Fix possible memory leak in hpsa_init_one()",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2022-50646",
"datePublished": "2025-12-09T00:00:20.596Z",
"dateReserved": "2025-12-08T23:57:43.371Z",
"dateUpdated": "2026-05-23T15:24:48.629Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2022-50646",
"date": "2026-11-17",
"epss": "0.0022",
"percentile": "0.12608"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/scsi/hpsa.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "f4d1c14e8b404766ff2bb8644bb19443d73965de",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "f8fc2f18652917cdcc89cb23f3a1b7cb6e119c5e",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "c808edbf580bfc454671cbe66e9d7c2e938e7601",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "bfe10a1d9fbccdf39f8449d62509f070d8aaaac1",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "fc998d0a7d65672f0812f11cd0ec4bbe4f8f8507",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "0aa7be66168b1e84b2581ffff3ccb54a6c804a1e",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"lessThan": "9c9ff300e0de07475796495d86f449340d454a0c",
"status": "affected",
"version": "8b834bff1b73dce46f4e9f5e84af6f73fed8b0ef",
"versionType": "git"
},
{
"status": "affected",
"version": "1edd825c11f8ed2c409d6fb6b3d90a042cbf738d",
"versionType": "git"
},
{
"lessThan": "4.15",
"status": "affected",
"version": "4.14.63",
"versionType": "semver"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/scsi/hpsa.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.16"
},
{
"lessThan": "4.16",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.19.*",
"status": "unaffected",
"version": "4.19.270",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"version": "5.4.229",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.163",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.86",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.0.*",
"status": "unaffected",
"version": "6.0.16",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.2",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: hpsa: Fix possible memory leak in hpsa_init_one()\n\nThe hpda_alloc_ctlr_info() allocates h and its field reply_map. However, in\nhpsa_init_one(), if alloc_percpu() failed, the hpsa_init_one() jumps to\nclean1 directly, which frees h and leaks the h-\u003ereply_map.\n\nFix by calling hpda_free_ctlr_info() to release h-\u003ereplay_map and h instead\nfree h directly."
},
{
"lang": "es",
"value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nscsi: hpsa: Correcci\u00f3n de posible fuga de memoria en hpsa_init_one()\n\nLa hpda_alloc_ctlr_info() asigna h y su campo reply_map. Sin embargo, en hpsa_init_one(), si alloc_percpu() fall\u00f3, la hpsa_init_one() salta a clean1 directamente, lo que libera h y fuga el h -\u003e reply_map.\n\nSe corrige llamando a hpda_free_ctlr_info() para liberar h -\u003e replay_map y h en lugar de liberar h directamente."
}
],
"id": "CVE-2022-50646",
"lastModified": "2026-11-10T12:10:00.177",
"metrics": {},
"published": "2025-12-09T01:16:47.223",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/0aa7be66168b1e84b2581ffff3ccb54a6c804a1e"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/9c9ff300e0de07475796495d86f449340d454a0c"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/bfe10a1d9fbccdf39f8449d62509f070d8aaaac1"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/c808edbf580bfc454671cbe66e9d7c2e938e7601"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/f4d1c14e8b404766ff2bb8644bb19443d73965de"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/f8fc2f18652917cdcc89cb23f3a1b7cb6e119c5e"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/fc998d0a7d65672f0812f11cd0ec4bbe4f8f8507"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Deferred"
}
},
"redhat_vex": {
"aggregate_severity": "Low",
"current_release_date": "2026-11-07T10:49:20+00:00",
"cve": "CVE-2022-50646",
"id": "CVE-2022-50646",
"initial_release_date": "2022-01-01T00:00:00+00:00",
"product_status:known_affected": "199",
"product_status:known_not_affected": "1",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: scsi: hpsa: Fix possible memory leak in hpsa_init_one()",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50646.json",
"version": "3"
},
"suse_vex": {
"aggregate_severity": "low",
"current_release_date": "2026-11-01T17:55:40Z",
"cve": "CVE-2022-50646",
"id": "CVE-2022-50646",
"initial_release_date": "2025-12-10T00:39:01Z",
"product_status:known_affected": "413",
"product_status:known_not_affected": "260",
"product_status:recommended": "223",
"source": "SUSE CSAF VEX",
"status": "interim",
"title": "SUSE CVE CVE-2022-50646",
"url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2025/cve-2022-50646.json",
"version": "29"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…