{"id":"CVE-2022-50138","summary":"RDMA/qedr: Fix potential memory leak in __qedr_alloc_mr()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/qedr: Fix potential memory leak in __qedr_alloc_mr()\n\n__qedr_alloc_mr() allocates a memory chunk for \"mr-\u003einfo.pbl_table\" with\ninit_mr_info(). When rdma_alloc_tid() and rdma_register_tid() fail, \"mr\"\nis released while \"mr-\u003einfo.pbl_table\" is not released, which will lead\nto a memory leak.\n\nWe should release the \"mr-\u003einfo.pbl_table\" with qedr_free_pbl() when error\noccurs to fix the memory leak.","modified":"2026-04-03T13:14:42.269876716Z","published":"2025-06-18T11:03:01.557Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02308-1","SUSE-SU-2025:02320-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1","SUSE-SU-2025:03204-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50138.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/07ba048df306dc93fc4d2ef670b9e24644a2069f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/79ce50dddaf28b5c57911ecc80a2be17a0b17f83"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7e647a8d5fc0a2c8e0f36f585a6388286a25bb15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b3236a64ddd125a455ef5b5316c1b9051b732974"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4c9f7db9f0148423557539af0fdf513338efe08"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50138.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50138"},{"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":"e0290cce6ac02f8e5ec501f25f6f6900f384550c"},{"fixed":"79ce50dddaf28b5c57911ecc80a2be17a0b17f83"},{"fixed":"7e647a8d5fc0a2c8e0f36f585a6388286a25bb15"},{"fixed":"07ba048df306dc93fc4d2ef670b9e24644a2069f"},{"fixed":"b4c9f7db9f0148423557539af0fdf513338efe08"},{"fixed":"b3236a64ddd125a455ef5b5316c1b9051b732974"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50138.json"}}],"schema_version":"1.7.5"}