CVE-2026-74276: spi: xilinx: use FIFO occupancy register to determine buffer size
Vulnerability summary
CVE-2026-74276 is a medium (CVSS 6.7) vulnerability in linux. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7.4% of scored vulnerabilities.
Not severe (CVSS 6.7, local access); no exploitation reported by the 5 checked sources
CIRCL last checked 06-12-2026
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 41 · Related 40Timeline
- 15-08-2026PublishedVulnerability first disclosed.
- 17-08-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: spi: xilinx: use FIFO occupancy register to determine buffer size The method the driver uses to determine the size of the FIFO has a problem. What it currently does is this: It stops the SPI hardware and writes to the TX FIFO register until TX FIFO FULL asserts in the status register. But the hardware does not only have the FIFO, it also has a shift register which can hold a byte. This can be seen, when writing a byte to the FIFO (while the SPI hardware is stopped,) the TX FIFO EMPTY is still empty. So, if we have a FIFO size of 16 for example, the current method returns a 17. This is a problem, at least when using the driver in irq mode. The same size determined for the TX FIFO is also assumed for the RX FIFO. When a SPI transaction wants to write the amount of the FIFO size or more bytes, the following happens, for example with 16 bytes FIFO size: The driver stops the SPI hardware and writes 17 bytes to the TX FIFO and starts the SPI hardware and goes sleep. The hardware then shifts out 17 bytes (FIFO + shift register) and simultaneously reads bytes into the RX FIFO, but it only has 16 places, so it looses one byte. Then TX FIFO empty asserts, wakes the driver again, which has a fast path and reads 16 bytes from the RX FIFO, but before reading the last 17th byte (which is lost) it does this: sr = xspi->read_fn(xspi->regs + XSPI_SR_OFFSET); if (!(sr & XSPI_SR_RX_EMPTY_MASK)) { xilinx_spi_rx(xspi); rx_words--; } It reads the status register and checks if the RX FIFO is not empty. But it is empty in our case. So this check spins in a while loop forever locking the driver. This patch fixes the logic to determine the FIFO size.
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.18% on 05-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu169 products
- linuxAll versions (No fix recorded) | < 5.15.0-198.208 | < 6.8.0-147.147 | < 7.0.0-38.38
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1117.124 | < 6.8.0-1067.70 | < 7.0.0-1014.14
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian1 product
- linux< 6.1.180-1 | < 6.12.100-1 | < 7.1.5-1
Linux1 product
- linux≥ 4c9a761402d780b86b9b068aba4ef8e29ed15e99, < 4ee65558a7fda463222f5edc631b6d7862218725 | ≥ 4c9a761402d780b86b9b068aba4ef8e29ed15e99, < e98f589d54068dfcc7da42d9b730e47b84e2991a | ≥ 4c9a761402d780b86b9b068aba4ef8e29ed15e99, < 1fc6a6c0cc7796b0c1cf4eec3f0720f422f09273 | ≥ 4c9a761402d780b86b9b068aba4ef8e29ed15e99, < dfab0d4698a642bab9b895e2e6d240838cfe2cc6 | ≥ 4c9a761402d780b86b9b068aba4ef8e29ed15e99, < d7ccd8736b67550eca746ed7fa39a36016ff114b | ≥ 4c9a761402d780b86b9b068aba4ef8e29ed15e99, < 1c9246a199e19b2fd36e94feed60e55f27103a4f | ≥ 4c9a761402d780b86b9b068aba4ef8e29ed15e99, < d1944b71c18e7494756bff1a6f80c25be99eaecb | ≥ 4c9a761402d780b86b9b068aba4ef8e29ed15e99, < 47f3b5365536e8c38f264824ab15fdb74454e066 | 4.0
3 vendors · 171 products