{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa"
            },
            {
              "fixed": "2723543c1d60278d5aef1c4ad732dbad24b84a81"
            },
            {
              "fixed": "c5601e0720ce1a3ad895f94a5838530edde01ed3"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49186.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nclk: visconti: prevent array overflow in visconti_clk_register_gates()\n\nThis code was using -1 to represent that there was no reset function.\nUnfortunately, the -1 was stored in u8 so the if (clks[i].rs_id \u003e= 0)\ncondition was always true.  This lead to an out of bounds access in\nvisconti_clk_register_gates().",
  "id": "CVE-2022-49186",
  "modified": "2026-04-01T23:08:22.141262021Z",
  "published": "2025-02-26T01:55:35.590Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2723543c1d60278d5aef1c4ad732dbad24b84a81"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c5601e0720ce1a3ad895f94a5838530edde01ed3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49186.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-49186"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "clk: visconti: prevent array overflow in visconti_clk_register_gates()"
}