In the Linux kernel, the following vulnerability has been resolved:
RDMA/hfi1: fix potential memory leak in setupbasectxt()
setupbasectxt() allocates a memory chunk for uctxt->groups with hfi1allocctxtrcvgroups(). When inituserctxt() fails, uctxt->groups is not released, which will lead to a memory leak.
We should release the uctxt->groups with hfi1freectxtrcvgroups() when inituserctxt() fails.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50134.json"
}