In the Linux kernel, the following vulnerability has been resolved:
RDMA/nldev: Prevent underflow in nldevstatsetcounterdynamic_doit()
This code checks "index" for an upper bound but it does not check for negatives. Change the type to unsigned to prevent underflows.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87e0eacb176f9500c2063d140c0a1d7fa51ab8a5",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49199-06c8a3cc",
"target": {
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"128050804793597201820264068664469975297",
"332096125614872476463068081206699383791",
"327407490634941532494168473969932861547",
"94967370505504936386663466710461893026",
"129949832294937436489170432272021082428",
"53532214811207205565787454743811790649"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2a495ef04d5f42e6f00eb2bec1ee9075e3d5a771",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49199-44713a94",
"target": {
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"128050804793597201820264068664469975297",
"332096125614872476463068081206699383791",
"327407490634941532494168473969932861547",
"94967370505504936386663466710461893026",
"129949832294937436489170432272021082428",
"53532214811207205565787454743811790649"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f6dd8669b8299a3a536cd92a7069152a7704da1d",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49199-664b5ae4",
"target": {
"function": "nldev_stat_set_counter_dynamic_doit",
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Function",
"digest": {
"length": 884.0,
"function_hash": "220175344297106358126453050508390422602"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2a495ef04d5f42e6f00eb2bec1ee9075e3d5a771",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49199-d7d3beab",
"target": {
"function": "nldev_stat_set_counter_dynamic_doit",
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Function",
"digest": {
"length": 884.0,
"function_hash": "220175344297106358126453050508390422602"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87e0eacb176f9500c2063d140c0a1d7fa51ab8a5",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49199-d8c4a2d5",
"target": {
"function": "nldev_stat_set_counter_dynamic_doit",
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Function",
"digest": {
"length": 884.0,
"function_hash": "220175344297106358126453050508390422602"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f6dd8669b8299a3a536cd92a7069152a7704da1d",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49199-ea0c4b78",
"target": {
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"128050804793597201820264068664469975297",
"332096125614872476463068081206699383791",
"327407490634941532494168473969932861547",
"94967370505504936386663466710461893026",
"129949832294937436489170432272021082428",
"53532214811207205565787454743811790649"
]
}
}
]