Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: objtool, spi: amd: Fix out-of-bounds stack access in amd_set_spi_freq() If speed_hz < AMD_SPI_MIN_HZ, amd_set_spi_freq() iterates over the entire amd_spi_freq array without breaking out early, causing 'i' to go beyond the array bounds. Fix that by stopping the loop when it gets to the last entry, so the low speed_hz value gets clamped up to AMD_SPI_MIN_HZ. Fixes the following warning with an UBSAN kernel: drivers/spi/spi-amd.o: error: objtool: amd_set_spi_freq() falls through to next function amd_spi_set_opcode()
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.14, < 6.14.2 |
Related Weaknesses (CWE)
References
- https://git.kernel.org/stable/c/76e51db43fe4aaaebcc5ddda67b0807f7c9bdeccPatch
- https://git.kernel.org/stable/c/7f2c746e09a3746bf937bc708129dc8af61d8f19Patch
FAQ
What is CVE-2025-40014?
CVE-2025-40014 is a vulnerability with a CVSS score of 7.8 (HIGH). In the Linux kernel, the following vulnerability has been resolved: objtool, spi: amd: Fix out-of-bounds stack access in amd_set_spi_freq() If speed_hz < AMD_SPI_MIN_HZ, amd_set_spi_freq() iterates ...
How severe is CVE-2025-40014?
CVE-2025-40014 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-40014?
Check the references section above for vendor advisories and patch information. Affected products include: Linux Linux Kernel.