PoC Monitor
← All CVEs
CVE-2025-40014published 18 Apr 2025 07:01 UTCData: JSON · API

Linux

objtool, spi: amd: Fix out-of-bounds stack access in amd_set_spi_freq()

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

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CISA ADP · CWE-129
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= e6204f39fe3a7b4538815a2d778b601bd543649e, < 7f2c746e09a3746bf937bc708129dc8af61d8f19
  • >= e6204f39fe3a7b4538815a2d778b601bd543649e, < 76e51db43fe4aaaebcc5ddda67b0807f7c9bdecc

Fixed in 7f2c746e09a3746bf937bc708129dc8af61d8f19, 76e51db43fe4aaaebcc5ddda67b0807f7c9bdecc

Linux Linux
  • 6.14

Fixed in 0, 6.14.2, 6.15

Mitigation

Upgrade Linux to 7f2c746e09a3746bf937bc708129dc8af61d8f19 or 76e51db43fe4aaaebcc5ddda67b0807f7c9bdecc or later.

Upgrade Linux to 0 or 6.14.2 or 6.15 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published18 Apr 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.