We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-40014

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



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

Reserved 2025-04-16 | Published 2025-04-18 | Updated 2025-05-26 | Assigner Linux

Product status

Default status
unaffected

3fe26121dc3a9bf64e18fe0075cd9a92c9cd1b1a before 7f2c746e09a3746bf937bc708129dc8af61d8f19
affected

3fe26121dc3a9bf64e18fe0075cd9a92c9cd1b1a before 76e51db43fe4aaaebcc5ddda67b0807f7c9bdecc
affected

Default status
affected

6.1
affected

Any version before 6.1
unaffected

6.14.2
unaffected

6.15
unaffected

References

git.kernel.org/...c/7f2c746e09a3746bf937bc708129dc8af61d8f19

git.kernel.org/...c/76e51db43fe4aaaebcc5ddda67b0807f7c9bdecc

cve.org (CVE-2025-40014)

nvd.nist.gov (CVE-2025-40014)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-40014

Support options

Helpdesk Chat, Email, Knowledgebase