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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50646.json",
"cna_assigner": "Linux"
}