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-04-11T12:44:54.713509Z
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"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.14.0
Fixed
4.14.291
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.256
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.211
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.137
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.61
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.18.18
Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
5.19.2

Database specific

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