{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50134","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-06-18T10:57:27.419Z","datePublished":"2025-06-18T11:02:58.820Z","dateUpdated":"2026-05-11T19:13:28.994Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T19:13:28.994Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hfi1: fix potential memory leak in setup_base_ctxt()\n\nsetup_base_ctxt() allocates a memory chunk for uctxt->groups with\nhfi1_alloc_ctxt_rcv_groups(). When init_user_ctxt() fails, uctxt->groups\nis not released, which will lead to a memory leak.\n\nWe should release the uctxt->groups with hfi1_free_ctxt_rcv_groups()\nwhen init_user_ctxt() fails."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/hfi1/file_ops.c"],"versions":[{"version":"e87473bc1b6c2cb08f1b760cfc8cd012822241a6","lessThan":"fc4de8009fd6c2ca51986c6757efa964040e7d02","status":"affected","versionType":"git"},{"version":"e87473bc1b6c2cb08f1b760cfc8cd012822241a6","lessThan":"90ef48a718f88935d4af53d7dadd1ceafe103ce6","status":"affected","versionType":"git"},{"version":"e87473bc1b6c2cb08f1b760cfc8cd012822241a6","lessThan":"2f90813f1c21c3d780585390af961bd17c8515ae","status":"affected","versionType":"git"},{"version":"e87473bc1b6c2cb08f1b760cfc8cd012822241a6","lessThan":"a85c7dd1edadcdeca24e603a6618153a3bcc81ca","status":"affected","versionType":"git"},{"version":"e87473bc1b6c2cb08f1b760cfc8cd012822241a6","lessThan":"e25b828553aecb3185a8d8d0c4f9b4e133fb5db6","status":"affected","versionType":"git"},{"version":"e87473bc1b6c2cb08f1b760cfc8cd012822241a6","lessThan":"1750be1e9f18787cf717c24dbc5fa029fc372a22","status":"affected","versionType":"git"},{"version":"e87473bc1b6c2cb08f1b760cfc8cd012822241a6","lessThan":"a9055dfe437efae77e28e57205437c878a03ccb7","status":"affected","versionType":"git"},{"version":"e87473bc1b6c2cb08f1b760cfc8cd012822241a6","lessThan":"aa2a1df3a2c85f855af7d54466ac10bd48645d63","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/hfi1/file_ops.c"],"versions":[{"version":"4.14","status":"affected"},{"version":"0","lessThan":"4.14","status":"unaffected","versionType":"semver"},{"version":"4.14.291","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.256","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.211","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.137","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.61","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.18.18","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19.2","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"4.14.291"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"4.19.256"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.4.211"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.10.137"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.15.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.18.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.19.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.0"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/fc4de8009fd6c2ca51986c6757efa964040e7d02"},{"url":"https://git.kernel.org/stable/c/90ef48a718f88935d4af53d7dadd1ceafe103ce6"},{"url":"https://git.kernel.org/stable/c/2f90813f1c21c3d780585390af961bd17c8515ae"},{"url":"https://git.kernel.org/stable/c/a85c7dd1edadcdeca24e603a6618153a3bcc81ca"},{"url":"https://git.kernel.org/stable/c/e25b828553aecb3185a8d8d0c4f9b4e133fb5db6"},{"url":"https://git.kernel.org/stable/c/1750be1e9f18787cf717c24dbc5fa029fc372a22"},{"url":"https://git.kernel.org/stable/c/a9055dfe437efae77e28e57205437c878a03ccb7"},{"url":"https://git.kernel.org/stable/c/aa2a1df3a2c85f855af7d54466ac10bd48645d63"}],"title":"RDMA/hfi1: fix potential memory leak in setup_base_ctxt()","x_generator":{"engine":"bippy-1.2.0"}}}}