{
  "id": "CVE-2025-40014",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40014",
  "published_at": "2025-04-18T07:01:40.151Z",
  "title": "objtool, spi: amd: Fix out-of-bounds stack access in amd_set_spi_freq()",
  "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\nobjtool, spi: amd: Fix out-of-bounds stack access in amd_set_spi_freq()\n\nIf speed_hz \u003c AMD_SPI_MIN_HZ, amd_set_spi_freq() iterates over the\nentire amd_spi_freq array without breaking out early, causing 'i' to go\nbeyond the array bounds.\n\nFix that by stopping the loop when it gets to the last entry, so the low\nspeed_hz value gets clamped up to AMD_SPI_MIN_HZ.\n\nFixes the following warning with an UBSAN kernel:\n\n  drivers/spi/spi-amd.o: error: objtool: amd_set_spi_freq() falls through to next function amd_spi_set_opcode()",
  "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= e6204f39fe3a7b4538815a2d778b601bd543649e, \u003c 7f2c746e09a3746bf937bc708129dc8af61d8f19",
          "\u003e= e6204f39fe3a7b4538815a2d778b601bd543649e, \u003c 76e51db43fe4aaaebcc5ddda67b0807f7c9bdecc"
        ],
        "fixed_in": [
          "7f2c746e09a3746bf937bc708129dc8af61d8f19",
          "76e51db43fe4aaaebcc5ddda67b0807f7c9bdecc"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.14"
        ],
        "fixed_in": [
          "0",
          "6.14.2",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 7f2c746e09a3746bf937bc708129dc8af61d8f19 or 76e51db43fe4aaaebcc5ddda67b0807f7c9bdecc or later.",
      "Upgrade Linux to 0 or 6.14.2 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
