CVE-2022-50138

Source
https://cve.org/CVERecord?id=CVE-2022-50138
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50138.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50138
Downstream
Related
Published
2025-06-18T11:03:01.557Z
Modified
2026-04-03T13:14:42.269876716Z
Summary
RDMA/qedr: Fix potential memory leak in __qedr_alloc_mr()
Details

In the Linux kernel, the following vulnerability has been resolved:

RDMA/qedr: Fix potential memory leak in __qedrallocmr()

__qedrallocmr() allocates a memory chunk for "mr->info.pbltable" with initmrinfo(). When rdmaalloctid() and rdmaregistertid() fail, "mr" is released while "mr->info.pbltable" is not released, which will lead to a memory leak.

We should release the "mr->info.pbltable" with qedrfree_pbl() when error occurs to fix the memory leak.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50138.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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"