{"id":"CVE-2026-100060","aliases":["CVE-2026-100060"],"related":[],"kind":"vulnerability","state":"published","title":"spi: amd: fix len==0 underflow and FIFO overflow","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: amd: fix len==0 underflow and FIFO overflow\n\namd_spi_fifo_xfer() unconditionally decrements xfer->len when a tx_buf\nis present. The SPI core does not reject zero-length transfers, so a\ntransfer submitted through the SPI_IOC_MESSAGE ioctl with len == 0 and\na tx_buf makes the u32 len wrap to 0xFFFFFFFF, and the following\nper-byte loop writes far past the FIFO window.\n\nThe driver also never checks the cumulative FIFO offset against\nAMD_SPI_FIFO_SIZE. The core splits each transfer down to the\ncontroller's max transfer size but does not bound the total message\nlength, so a message of several transfers whose total exceeds the FIFO\noverflows it with out-of-bounds MMIO writes (tx) and reads (rx).\n\nSkip zero-length transfers and reject any transfer that would run past\nthe end of the FIFO window.\n\nTested with a user-space replica of the fifo_xfer length arithmetic\n(ASAN build): a zero-length transfer with tx_buf makes len-- wrap to\n0xffffffff, and skipping zero-length transfers avoids the wrap. No AMD\nSPI hardware was available, so the FIFO bound check was verified by\ninspection against AMD_SPI_FIFO_SIZE.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: amd: fix len==0 underflow and FIFO overflow\n\namd_spi_fifo_xfer() unconditionally decrements xfer->len when a tx_buf\nis present. The SPI core does not reject zero-length transfers, so a\ntransfer submitted through the SPI_IOC_MESSAGE ioctl with len == 0 and\na tx_buf makes the u32 len wrap to 0xFFFFFFFF, and the following\nper-byte loop writes far past the FIFO window.\n\nThe driver also never checks the cumulative FIFO offset against\nAMD_SPI_FIFO_SIZE. The core splits each transfer down to the\ncontroller's max transfer size but does not bound the total message\nlength, so a message of several transfers whose total exceeds the FIFO\noverflows it with out-of-bounds MMIO writes (tx) and reads (rx).\n\nSkip zero-length transfers and reject any transfer that would run past\nthe end of the FIFO window.\n\nTested with a user-space replica of the fifo_xfer length arithmetic\n(ASAN build): a zero-length transfer with tx_buf makes len-- wrap to\n0xffffffff, and skipping zero-length transfers avoids the wrap. No AMD\nSPI hardware was available, so the FIFO bound check was verified by\ninspection against AMD_SPI_FIFO_SIZE.","source":"cvelist"}],"published":"2026-11-30T13:23:30.908Z","modified":"2026-11-30T14:17:24.467Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bbb336f39efcb1b5498f65f59f9af5773ad6dc2b","fixed":"887f483a5a0fb992854a810f50a2de86b3df6748","status":"affected"},{"type":"git","introduced":"bbb336f39efcb1b5498f65f59f9af5773ad6dc2b","fixed":"f1ab07b264cc94625df4b84db2b88f5500669a85","status":"affected"},{"type":"git","introduced":"bbb336f39efcb1b5498f65f59f9af5773ad6dc2b","fixed":"51faeca5d332e0cf8b930b760c3536aadd171425","status":"affected"},{"type":"git","introduced":"bbb336f39efcb1b5498f65f59f9af5773ad6dc2b","fixed":"bf56e0e3cd67806a15dfaf637cd941449ca54a49","status":"affected"},{"type":"git","introduced":"bbb336f39efcb1b5498f65f59f9af5773ad6dc2b","fixed":"f64e8fccdf73e03a9a42e548a2f894e4c689c5c3","status":"affected"},{"type":"git","introduced":"bbb336f39efcb1b5498f65f59f9af5773ad6dc2b","fixed":"e2f4edfc061e493fddde16c4bbe1c4f230f41e4a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/887f483a5a0fb992854a810f50a2de86b3df6748","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f1ab07b264cc94625df4b84db2b88f5500669a85","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/51faeca5d332e0cf8b930b760c3536aadd171425","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf56e0e3cd67806a15dfaf637cd941449ca54a49","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f64e8fccdf73e03a9a42e548a2f894e4c689c5c3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e2f4edfc061e493fddde16c4bbe1c4f230f41e4a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100060","url":"https://www.cve.org/CVERecord?id=CVE-2026-100060","licence":"CVE Terms of Use","modified":"2026-11-30T13:23:30.908Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100060","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100060","licence":"Public domain","modified":"2026-11-30T14:17:24.467Z"}],"updatedAt":"2026-11-30T14:32:21.990Z","epss":{"score":0.00206,"percentile":0.11282,"date":"2026-12-01T12:00:22.000Z"}}