Skip to content
Heist/ feed
Back to feed
UnratedFix available

RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit() This code checks "index" for an upper bound but it does not check for negatives. Change the type to unsigned to prevent underflows.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.16.19, 5.17.2
CVEs
CVE-2022-49199
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 21:43 UTC · Revision 1

Source evidence

RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit()

core-osv · Original source

Published 26 Feb 2025, 01:55 UTC

In the Linux kernel, the following vulnerability has been resolved: RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit() This code checks "index" for an upper bound but it does not check for negatives. Change the type to unsigned to prevent underflows.

osv:CVE-2022-49199

Kernel

Fixed versions: 5.16.19, 5.17.2

Complete source record
{
  "id": "d24abc24fb502aa9f7017baa9b6a4f68b9beda526e91ee918e8977036b305fd4",
  "url": "https://osv.dev/vulnerability/CVE-2022-49199",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit() This code checks \"index\" for an upper bound but it does not check for negatives. Change the type to unsigned to prevent underflows.",
    "evidence": "osv:CVE-2022-49199",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.16.19",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.17.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-49199",
      "aliases": [
        "CVE-2022-49199"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3c3c1f1416392382faa0238e76a70d7810aab2ef"
                },
                {
                  "fixed": "f6dd8669b8299a3a536cd92a7069152a7704da1d"
                },
                {
                  "fixed": "2a495ef04d5f42e6f00eb2bec1ee9075e3d5a771"
                },
                {
                  "fixed": "87e0eacb176f9500c2063d140c0a1d7fa51ab8a5"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49199.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.16.19"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.17.0"
                },
                {
                  "fixed": "5.17.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49199.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.906328654Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2a495ef04d5f42e6f00eb2bec1ee9075e3d5a771",
        "https://git.kernel.org/stable/c/87e0eacb176f9500c2063d140c0a1d7fa51ab8a5",
        "https://git.kernel.org/stable/c/f6dd8669b8299a3a536cd92a7069152a7704da1d",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49199.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49199",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49199.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49199",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 490326,
  "published_at": "2025-02-26T01:55:42.12+00:00"
}