In the Linux kernel, the following vulnerability has been resolved:
RDMA/cm: Fix memory leak in ibcminsert_listen
cmallocidpriv() allocates resource for the cmidpriv. When cminit_listen() fails it doesn't free it, leading to memory leak.
Add the missing error unwind.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2febf09a8a8ae4accf908f043f1bab1421056568",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/infiniband/core/cm.c"
},
"id": "CVE-2022-49671-32c163b7",
"digest": {
"threshold": 0.9,
"line_hashes": [
"126928980887395901610415456498937337539",
"2410272999968046861724125956591563136",
"119804811658919617239405919539252682798",
"219434479951475833861261081179659481021",
"278766164148264500892325182806619931688"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2990f223ffa7bb25422956b9f79f9176a5b38346",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/infiniband/core/cm.c"
},
"id": "CVE-2022-49671-393f3482",
"digest": {
"threshold": 0.9,
"line_hashes": [
"126928980887395901610415456498937337539",
"2410272999968046861724125956591563136",
"119804811658919617239405919539252682798",
"219434479951475833861261081179659481021",
"278766164148264500892325182806619931688"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0cab8b517aeaf2592c3479294f934209c41a26f",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "ib_cm_insert_listen",
"file": "drivers/infiniband/core/cm.c"
},
"id": "CVE-2022-49671-3c1dabfe",
"digest": {
"length": 566.0,
"function_hash": "285432429911054895107913407783813086741"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2febf09a8a8ae4accf908f043f1bab1421056568",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "ib_cm_insert_listen",
"file": "drivers/infiniband/core/cm.c"
},
"id": "CVE-2022-49671-3c5e249e",
"digest": {
"length": 566.0,
"function_hash": "285432429911054895107913407783813086741"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@889000874c1204e47c7f2a4945db262a47e7efc9",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "ib_cm_insert_listen",
"file": "drivers/infiniband/core/cm.c"
},
"id": "CVE-2022-49671-8ca4689b",
"digest": {
"length": 566.0,
"function_hash": "285432429911054895107913407783813086741"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0cab8b517aeaf2592c3479294f934209c41a26f",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/infiniband/core/cm.c"
},
"id": "CVE-2022-49671-9612bfb2",
"digest": {
"threshold": 0.9,
"line_hashes": [
"126928980887395901610415456498937337539",
"2410272999968046861724125956591563136",
"119804811658919617239405919539252682798",
"219434479951475833861261081179659481021",
"278766164148264500892325182806619931688"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@889000874c1204e47c7f2a4945db262a47e7efc9",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/infiniband/core/cm.c"
},
"id": "CVE-2022-49671-ddebf99c",
"digest": {
"threshold": 0.9,
"line_hashes": [
"126928980887395901610415456498937337539",
"2410272999968046861724125956591563136",
"119804811658919617239405919539252682798",
"219434479951475833861261081179659481021",
"278766164148264500892325182806619931688"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2990f223ffa7bb25422956b9f79f9176a5b38346",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "ib_cm_insert_listen",
"file": "drivers/infiniband/core/cm.c"
},
"id": "CVE-2022-49671-e763d3df",
"digest": {
"length": 566.0,
"function_hash": "285432429911054895107913407783813086741"
},
"signature_type": "Function"
}
]