PT-2025-17284

CVE-2025-40014

·

Published

2025-03-25

·

Updated

2026-10-18

Description by

CVSS 3.1
7.8
High
MetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.14.1
Description The issue is related to an out-of-bounds stack access in the amd set spi freq() function. When speed hz is less than AMD SPI MIN HZ, the function iterates over the entire amd spi freq array without stopping early, causing the index i to exceed the array bounds. This is fixed by stopping the loop at the last entry, effectively clamping low speed hz values up to AMD SPI MIN HZ. The fix resolves a warning that occurs with an UBSAN kernel, specifically in the drivers/spi/spi-amd.o file where amd set spi freq() falls through to the next function amd spi set opcode().
Recommendations For Linux kernel versions prior to 6.14.1, consider updating to a version that includes the fix for the out-of-bounds stack access in amd set spi freq(). As a temporary workaround, consider restricting the use of the amd set spi freq() function to prevent potential exploitation.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
ECHO-4BB1-7EBD-E9D9
OESA-2025-1729
OESA-2025-1730
OESA-2025-1870
SUSE-SU-2025:01964-1
SUSE-SU-2025_01964-1
SUSE-SU-2025:01965-1
SUSE-SU-2025_01965-1
SUSE-SU-2025:02000-1
SUSE-SU-2025_02000-1
SUSE-SU-2025:02254-1
SUSE-SU-2025_02254-1
SUSE-SU-2025:02307-1
SUSE-SU-2025_02307-1
SUSE-SU-2025:02333-1
SUSE-SU-2025_02333-1
SUSE-SU-2025:02923-1
SUSE-SU-2025:20408-1
SUSE-SU-2025:20413-1
SUSE-SU-2025:20419-1
SUSE-SU-2025:20421-1
USN-7594-1
USN-7594-2
USN-7594-3
USN-8917-1
USN-8918-1
Found an issue in the description? Have something to add? Feel free to write us 👾