{
  "id": "CVE-2025-22067",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-22067",
  "published_at": "2025-04-16T14:12:20.795Z",
  "title": "spi: cadence: Fix out-of-bounds array access in cdns_mrvl_xspi_setup_clock()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: cadence: Fix out-of-bounds array access in cdns_mrvl_xspi_setup_clock()\n\nIf requested_clk \u003e 128, cdns_mrvl_xspi_setup_clock() iterates over the\nentire cdns_mrvl_xspi_clk_div_list array without breaking out early,\ncausing 'i' to go beyond the array bounds.\n\nFix that by stopping the loop when it gets to the last entry, clamping\nthe clock to the minimum 6.25 MHz.\n\nFixes the following warning with an UBSAN kernel:\n\n  vmlinux.o: warning: objtool: cdns_mrvl_xspi_setup_clock: unexpected end of section .text.cdns_mrvl_xspi_setup_clock",
  "cwe": "CWE-129",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 26d34fdc49712ddbd42b11102f5d9d78a0f42097, \u003c e50781bf7accc75883cb8a6a9921fb4e2fa8cca4",
          "\u003e= 26d34fdc49712ddbd42b11102f5d9d78a0f42097, \u003c c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275",
          "\u003e= 26d34fdc49712ddbd42b11102f5d9d78a0f42097, \u003c 645f1813fe0dc96381c36b834131e643b798fd73",
          "\u003e= 26d34fdc49712ddbd42b11102f5d9d78a0f42097, \u003c 7ba0847fa1c22e7801cebfe5f7b75aee4fae317e"
        ],
        "fixed_in": [
          "e50781bf7accc75883cb8a6a9921fb4e2fa8cca4",
          "c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275",
          "645f1813fe0dc96381c36b834131e643b798fd73",
          "7ba0847fa1c22e7801cebfe5f7b75aee4fae317e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.12"
        ],
        "fixed_in": [
          "0",
          "6.12.23",
          "6.13.11",
          "6.14.2",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to e50781bf7accc75883cb8a6a9921fb4e2fa8cca4 or c1fb84e274cb6a2bce6ba5e65116c06e0b3ab275 or 645f1813fe0dc96381c36b834131e643b798fd73 or 7ba0847fa1c22e7801cebfe5f7b75aee4fae317e or later.",
      "Upgrade Linux to 0 or 6.12.23 or 6.13.11 or 6.14.2 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
