CVE-2022-50662 (GCVE-0-2022-50662)
Vulnerability from cvelistv5 – Published: 2025-12-09 01:29 – Updated: 2025-12-09 01:29
VLAI?
Title
RDMA/hns: fix memory leak in hns_roce_alloc_mr()
Summary
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: fix memory leak in hns_roce_alloc_mr()
When hns_roce_mr_enable() failed in hns_roce_alloc_mr(), mr_key is not
released. Compiled test only.
Severity ?
No CVSS data available.
Assigner
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Linux | Linux |
Affected:
9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87 , < 164fa80330a81db67c26d10d071083941d29a510
(git)
Affected: 9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87 , < 35f9cd060e68ff910e49bf37b1b0d336a311849a (git) Affected: 9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87 , < fd32e378bc1dea0d48767adf2bbb478581bb0a95 (git) Affected: 9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87 , < fc2c43bf41c89e7451fe750025ae55eb2e2a741d (git) Affected: 9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87 , < a115aa00b18f7b8982b8f458149632caf64a862a (git) |
||
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/infiniband/hw/hns/hns_roce_mr.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "164fa80330a81db67c26d10d071083941d29a510",
"status": "affected",
"version": "9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87",
"versionType": "git"
},
{
"lessThan": "35f9cd060e68ff910e49bf37b1b0d336a311849a",
"status": "affected",
"version": "9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87",
"versionType": "git"
},
{
"lessThan": "fd32e378bc1dea0d48767adf2bbb478581bb0a95",
"status": "affected",
"version": "9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87",
"versionType": "git"
},
{
"lessThan": "fc2c43bf41c89e7451fe750025ae55eb2e2a741d",
"status": "affected",
"version": "9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87",
"versionType": "git"
},
{
"lessThan": "a115aa00b18f7b8982b8f458149632caf64a862a",
"status": "affected",
"version": "9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/infiniband/hw/hns/hns_roce_mr.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.8"
},
{
"lessThan": "5.8",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.163",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.86",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.0.*",
"status": "unaffected",
"version": "6.0.16",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.2",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.163",
"versionStartIncluding": "5.8",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.86",
"versionStartIncluding": "5.8",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.0.16",
"versionStartIncluding": "5.8",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.2",
"versionStartIncluding": "5.8",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.2",
"versionStartIncluding": "5.8",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"providerMetadata": {
"dateUpdated": "2025-12-09T01:29:10.614Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/164fa80330a81db67c26d10d071083941d29a510"
},
{
"url": "https://git.kernel.org/stable/c/35f9cd060e68ff910e49bf37b1b0d336a311849a"
},
{
"url": "https://git.kernel.org/stable/c/fd32e378bc1dea0d48767adf2bbb478581bb0a95"
},
{
"url": "https://git.kernel.org/stable/c/fc2c43bf41c89e7451fe750025ae55eb2e2a741d"
},
{
"url": "https://git.kernel.org/stable/c/a115aa00b18f7b8982b8f458149632caf64a862a"
}
],
"title": "RDMA/hns: fix memory leak in hns_roce_alloc_mr()",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2022-50662",
"datePublished": "2025-12-09T01:29:10.614Z",
"dateReserved": "2025-12-09T01:26:45.990Z",
"dateUpdated": "2025-12-09T01:29:10.614Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"nvd": "{\"cve\":{\"id\":\"CVE-2022-50662\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-09T16:17:18.063\",\"lastModified\":\"2025-12-09T18:37:13.640\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/164fa80330a81db67c26d10d071083941d29a510\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/35f9cd060e68ff910e49bf37b1b0d336a311849a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a115aa00b18f7b8982b8f458149632caf64a862a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fc2c43bf41c89e7451fe750025ae55eb2e2a741d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fd32e378bc1dea0d48767adf2bbb478581bb0a95\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…