{"id":"CVE-2022-50134","title":"RDMA/hfi1: fix potential memory leak in setup_base_ctxt()","summary":"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_use…","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < fc4de8009fd6c2ca51986c6757efa964040e7d02","Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < 90ef48a718f88935d4af53d7dadd1ceafe103ce6","Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < 2f90813f1c21c3d780585390af961bd17c8515ae","Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < a85c7dd1edadcdeca24e603a6618153a3bcc81ca","Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < e25b828553aecb3185a8d8d0c4f9b4e133fb5db6","Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < 1750be1e9f18787cf717c24dbc5fa029fc372a22","Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < a9055dfe437efae77e28e57205437c878a03ccb7","Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < aa2a1df3a2c85f855af7d54466ac10bd48645d63","Linux 4.14"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T19:55:00.625874Z"},"published":"2025-06-18","updated":"2026-11-05","sourceUpdated":"2026-11-05T20:00:18.140Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-50134","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"}],"tags":["cve.org"],"epss":0.00253,"epssPercentile":0.16942,"ingestedAt":"2026-11-05T22:38:31.684Z","slug":"CVE-2022-50134","body":"## Overview\n\nIn 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.\n\n## Affected\n\n- `Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < fc4de8009fd6c2ca51986c6757efa964040e7d02`\n- `Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < 90ef48a718f88935d4af53d7dadd1ceafe103ce6`\n- `Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < 2f90813f1c21c3d780585390af961bd17c8515ae`\n- `Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < a85c7dd1edadcdeca24e603a6618153a3bcc81ca`\n- `Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < e25b828553aecb3185a8d8d0c4f9b4e133fb5db6`\n- `Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < 1750be1e9f18787cf717c24dbc5fa029fc372a22`\n- `Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < a9055dfe437efae77e28e57205437c878a03ccb7`\n- `Linux >= e87473bc1b6c2cb08f1b760cfc8cd012822241a6 < aa2a1df3a2c85f855af7d54466ac10bd48645d63`\n- `Linux 4.14`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}