{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50134","id":"CVE-2022-50134","title":"RDMA/hfi1: fix potential memory leak in setup_base_ctxt()","description":"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_us","descriptionLong":"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.","published":"2025-06-18T11:02:58.820Z","updated":"2026-11-07T02:31:00.460546675Z","reserved":"2025-06-18T10:57:27.419Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","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"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","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"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/fc4de8009fd6c2ca51986c6757efa964040e7d02","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/90ef48a718f88935d4af53d7dadd1ceafe103ce6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2f90813f1c21c3d780585390af961bd17c8515ae","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a85c7dd1edadcdeca24e603a6618153a3bcc81ca","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e25b828553aecb3185a8d8d0c4f9b4e133fb5db6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1750be1e9f18787cf717c24dbc5fa029fc372a22","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a9055dfe437efae77e28e57205437c878a03ccb7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/aa2a1df3a2c85f855af7d54466ac10bd48645d63","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50134.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50134","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00266,"epssPercentile":0.19021,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50134","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50134","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50134","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50134","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}