CVE-2022-50134

Source
https://cve.org/CVERecord?id=CVE-2022-50134
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50134.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50134
Downstream
Related
Published
2025-06-18T11:02:58.820Z
Modified
2026-03-20T12:24:55.101286Z
Summary
RDMA/hfi1: fix potential memory leak in setup_base_ctxt()
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50134.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e87473bc1b6c2cb08f1b760cfc8cd012822241a6
Fixed
fc4de8009fd6c2ca51986c6757efa964040e7d02
Fixed
90ef48a718f88935d4af53d7dadd1ceafe103ce6
Fixed
2f90813f1c21c3d780585390af961bd17c8515ae
Fixed
a85c7dd1edadcdeca24e603a6618153a3bcc81ca
Fixed
e25b828553aecb3185a8d8d0c4f9b4e133fb5db6
Fixed
1750be1e9f18787cf717c24dbc5fa029fc372a22
Fixed
a9055dfe437efae77e28e57205437c878a03ccb7
Fixed
aa2a1df3a2c85f855af7d54466ac10bd48645d63

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50134.json"