{"id":"CVE-2022-50662","summary":"RDMA/hns: fix memory leak in hns_roce_alloc_mr()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hns: fix memory leak in hns_roce_alloc_mr()\n\nWhen hns_roce_mr_enable() failed in hns_roce_alloc_mr(), mr_key is not\nreleased. Compiled test only.","modified":"2026-03-20T12:22:36.831187Z","published":"2025-12-09T01:29:10.614Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50662.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/164fa80330a81db67c26d10d071083941d29a510"},{"type":"WEB","url":"https://git.kernel.org/stable/c/35f9cd060e68ff910e49bf37b1b0d336a311849a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a115aa00b18f7b8982b8f458149632caf64a862a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fc2c43bf41c89e7451fe750025ae55eb2e2a741d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fd32e378bc1dea0d48767adf2bbb478581bb0a95"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50662.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50662"},{"type":"PACKAGE","url":"https://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":"9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87"},{"fixed":"164fa80330a81db67c26d10d071083941d29a510"},{"fixed":"35f9cd060e68ff910e49bf37b1b0d336a311849a"},{"fixed":"fd32e378bc1dea0d48767adf2bbb478581bb0a95"},{"fixed":"fc2c43bf41c89e7451fe750025ae55eb2e2a741d"},{"fixed":"a115aa00b18f7b8982b8f458149632caf64a862a"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50662.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.8.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50662.json"}}],"schema_version":"1.7.5"}