Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | bbb336f39efcb1b5498f65f59f9af5773ad6dc2b <51faeca5d332e0cf8b930b760c3536aadd171425 | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | patch: 6.12.117 | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | bbb336f39efcb1b5498f65f59f9af5773ad6dc2b <bf56e0e3cd67806a15dfaf637cd941449ca54a49 | — |
| Linux | Linux | bbb336f39efcb1b5498f65f59f9af5773ad6dc2b <e2f4edfc061e493fddde16c4bbe1c4f230f41e4a | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | 5.8 | — |
| Linux | Linux | bbb336f39efcb1b5498f65f59f9af5773ad6dc2b <887f483a5a0fb992854a810f50a2de86b3df6748 | — |
| Linux | Linux | bbb336f39efcb1b5498f65f59f9af5773ad6dc2b <f64e8fccdf73e03a9a42e548a2f894e4c689c5c3 | — |
| Linux | Linux | bbb336f39efcb1b5498f65f59f9af5773ad6dc2b <f1ab07b264cc94625df4b84db2b88f5500669a85 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.117-1 | — |
| Debian 12 | linux | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
Advisories 1
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- https://git.kernel.org/stable/c/887f483a5a0fb992854a810f50a2de86b3df6748
- https://git.kernel.org/stable/c/f1ab07b264cc94625df4b84db2b88f5500669a85
- https://git.kernel.org/stable/c/51faeca5d332e0cf8b930b760c3536aadd171425
- https://git.kernel.org/stable/c/bf56e0e3cd67806a15dfaf637cd941449ca54a49
- https://git.kernel.org/stable/c/f64e8fccdf73e03a9a42e548a2f894e4c689c5c3
- https://git.kernel.org/stable/c/e2f4edfc061e493fddde16c4bbe1c4f230f41e4a