In the Linux kernel, the following vulnerability has been resolved:
RDMA/rtrs-clt: Reset cid to con_num - 1 to stay in bounds
In the function initconns(), after the createcon() and createcm() for loop if something fails. In the cleanup for loop after the destroy tag, we access out of bound memory because cid is set to cltpath->s.con_num.
This commits resets the cid to cltpath->s.connum - 1, to stay in bounds in the cleanup loop later.
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 769.0,
"function_hash": "194030565687742081337762474413796826906"
},
"id": "CVE-2024-47695-0512f8ac",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5ac73f8191f3de41fef4f934d84d97f3aadb301f",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c",
"function": "init_conns"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 769.0,
"function_hash": "194030565687742081337762474413796826906"
},
"id": "CVE-2024-47695-15d3606c",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@01b9be936ee8839ab9f83a7e84ee02ac6c8303c4",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c",
"function": "init_conns"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 769.0,
"function_hash": "194030565687742081337762474413796826906"
},
"id": "CVE-2024-47695-21c94373",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e4289b29e216a55d08a89e126bc0b37cbad9f38",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c",
"function": "init_conns"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"108044070857093237884533089483124607667",
"236032612064494386519187957988333854676",
"77313104036237675287693626487584260325",
"166247541473568739453045269866278981331"
]
},
"id": "CVE-2024-47695-25c1a77d",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@01b9be936ee8839ab9f83a7e84ee02ac6c8303c4",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 769.0,
"function_hash": "194030565687742081337762474413796826906"
},
"id": "CVE-2024-47695-283d944b",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1c50e0265fa332c94a4a182e4efa0fc70d8fad94",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c",
"function": "init_conns"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 769.0,
"function_hash": "194030565687742081337762474413796826906"
},
"id": "CVE-2024-47695-b54f754b",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0429a4e972082e3a2351da414b1c017daaf8aed2",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c",
"function": "init_conns"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 769.0,
"function_hash": "194030565687742081337762474413796826906"
},
"id": "CVE-2024-47695-b946b1f7",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c8b7f3d9fada0d4b4b7db86bf7345cd61f1d972e",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c",
"function": "init_conns"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"108044070857093237884533089483124607667",
"236032612064494386519187957988333854676",
"77313104036237675287693626487584260325",
"166247541473568739453045269866278981331"
]
},
"id": "CVE-2024-47695-be0caea1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0429a4e972082e3a2351da414b1c017daaf8aed2",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"108044070857093237884533089483124607667",
"236032612064494386519187957988333854676",
"77313104036237675287693626487584260325",
"166247541473568739453045269866278981331"
]
},
"id": "CVE-2024-47695-bfae621e",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5ac73f8191f3de41fef4f934d84d97f3aadb301f",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"108044070857093237884533089483124607667",
"236032612064494386519187957988333854676",
"77313104036237675287693626487584260325",
"166247541473568739453045269866278981331"
]
},
"id": "CVE-2024-47695-d3982dda",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c8b7f3d9fada0d4b4b7db86bf7345cd61f1d972e",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"108044070857093237884533089483124607667",
"236032612064494386519187957988333854676",
"77313104036237675287693626487584260325",
"166247541473568739453045269866278981331"
]
},
"id": "CVE-2024-47695-ea0d9f01",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e4289b29e216a55d08a89e126bc0b37cbad9f38",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"108044070857093237884533089483124607667",
"236032612064494386519187957988333854676",
"77313104036237675287693626487584260325",
"166247541473568739453045269866278981331"
]
},
"id": "CVE-2024-47695-f9d459bb",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1c50e0265fa332c94a4a182e4efa0fc70d8fad94",
"target": {
"file": "drivers/infiniband/ulp/rtrs/rtrs-clt.c"
}
}
]