{"id":"CVE-2025-40014","published":"2025-04-18T07:01:40Z","modified":"2026-05-11T21:40:48Z","title":"objtool, spi: amd: Fix out-of-bounds stack access in amd_set_spi_freq()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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 < 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()","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00278,"percentile":0.12957,"provenance":"source"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"references":[{"url":"https://git.kernel.org/stable/c/7f2c746e09a3746bf937bc708129dc8af61d8f19","tags":[]},{"url":"https://git.kernel.org/stable/c/76e51db43fe4aaaebcc5ddda67b0807f7c9bdecc","tags":[]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":2.59},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= e6204f39fe3a7b4538815a2d778b601bd543649e, < 7f2c746e09a3746bf937bc708129dc8af61d8f19",">= e6204f39fe3a7b4538815a2d778b601bd543649e, < 76e51db43fe4aaaebcc5ddda67b0807f7c9bdecc"]},{"vendor":"Linux","product":"Linux","versions":["6.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-10-01T16:12:36.422832Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-11813","exploited":false,"provenance":"source"}}