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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49199.json"
}[
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"128050804793597201820264068664469975297",
"332096125614872476463068081206699383791",
"327407490634941532494168473969932861547",
"94967370505504936386663466710461893026",
"129949832294937436489170432272021082428",
"53532214811207205565787454743811790649"
],
"threshold": 0.9
},
"deprecated": false,
"target": {
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Line",
"id": "CVE-2022-49199-06c8a3cc",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87e0eacb176f9500c2063d140c0a1d7fa51ab8a5"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"128050804793597201820264068664469975297",
"332096125614872476463068081206699383791",
"327407490634941532494168473969932861547",
"94967370505504936386663466710461893026",
"129949832294937436489170432272021082428",
"53532214811207205565787454743811790649"
],
"threshold": 0.9
},
"deprecated": false,
"target": {
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Line",
"id": "CVE-2022-49199-44713a94",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2a495ef04d5f42e6f00eb2bec1ee9075e3d5a771"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "220175344297106358126453050508390422602",
"length": 884.0
},
"deprecated": false,
"target": {
"function": "nldev_stat_set_counter_dynamic_doit",
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Function",
"id": "CVE-2022-49199-664b5ae4",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f6dd8669b8299a3a536cd92a7069152a7704da1d"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "220175344297106358126453050508390422602",
"length": 884.0
},
"deprecated": false,
"target": {
"function": "nldev_stat_set_counter_dynamic_doit",
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Function",
"id": "CVE-2022-49199-d7d3beab",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2a495ef04d5f42e6f00eb2bec1ee9075e3d5a771"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "220175344297106358126453050508390422602",
"length": 884.0
},
"deprecated": false,
"target": {
"function": "nldev_stat_set_counter_dynamic_doit",
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Function",
"id": "CVE-2022-49199-d8c4a2d5",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87e0eacb176f9500c2063d140c0a1d7fa51ab8a5"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"128050804793597201820264068664469975297",
"332096125614872476463068081206699383791",
"327407490634941532494168473969932861547",
"94967370505504936386663466710461893026",
"129949832294937436489170432272021082428",
"53532214811207205565787454743811790649"
],
"threshold": 0.9
},
"deprecated": false,
"target": {
"file": "drivers/infiniband/core/nldev.c"
},
"signature_type": "Line",
"id": "CVE-2022-49199-ea0c4b78",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f6dd8669b8299a3a536cd92a7069152a7704da1d"
}
]