CVE-2026-100060

Source
https://cve.org/CVERecord?id=CVE-2026-100060
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100060.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-100060
Downstream
Published
2026-11-30T13:23:30Z
Modified
2026-11-30T15:00:50Z
Summary
spi: amd: fix len==0 underflow and FIFO overflow
Details

In the Linux kernel, the following vulnerability has been resolved:

spi: amd: fix len==0 underflow and FIFO overflow

amd_spi_fifo_xfer() unconditionally decrements xfer->len when a tx_buf is present. The SPI core does not reject zero-length transfers, so a transfer submitted through the SPI_IOC_MESSAGE ioctl with len == 0 and a tx_buf makes the u32 len wrap to 0xFFFFFFFF, and the following per-byte loop writes far past the FIFO window.

The driver also never checks the cumulative FIFO offset against AMD_SPI_FIFO_SIZE. The core splits each transfer down to the controller's max transfer size but does not bound the total message length, so a message of several transfers whose total exceeds the FIFO overflows it with out-of-bounds MMIO writes (tx) and reads (rx).

Skip zero-length transfers and reject any transfer that would run past the end of the FIFO window.

Tested with a user-space replica of the fifo_xfer length arithmetic (ASAN build): a zero-length transfer with tx_buf makes len-- wrap to 0xffffffff, and skipping zero-length transfers avoids the wrap. No AMD SPI hardware was available, so the FIFO bound check was verified by inspection against AMD_SPI_FIFO_SIZE.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100060.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bbb336f39efcb1b5498f65f59f9af5773ad6dc2b
Fixed
887f483a5a0fb992854a810f50a2de86b3df6748
Fixed
f1ab07b264cc94625df4b84db2b88f5500669a85
Fixed
51faeca5d332e0cf8b930b760c3536aadd171425
Fixed
bf56e0e3cd67806a15dfaf637cd941449ca54a49
Fixed
f64e8fccdf73e03a9a42e548a2f894e4c689c5c3
Fixed
e2f4edfc061e493fddde16c4bbe1c4f230f41e4a

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100060.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.8.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100060.json"