CVE-2025-40014

High

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()

SeverityHigh
CVSS7.8
Exploit probability—
ProductLinux Kernel
PublishedApr 18, 2025
First seenApr 18, 2025
Weakness typeCWE-129CWE-129

How to fix

Update
  • linux linux_kernel6.14.2 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel6.14 ≤ v < 6.14.26.14.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.