0.0
NA
CVE-2026-74276
spi: xilinx: use FIFO occupancy register to determine buffer size
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.

INFO

Published Date :

Aug. 15, 2026, 6:22 a.m.

Last Modified :

Aug. 17, 2026, 6:19 a.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-74276 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Update the Linux kernel to fix how the driver determines FIFO buffer size.
  • Apply the provided kernel patch.
  • Update the Linux kernel to the corrected version.
  • Verify the driver correctly determines FIFO size.
  • Test the driver in interrupt mode.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-74276 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-74276 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-74276 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-74276 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 17, 2026

    Action Type Old Value New Value
    Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '4ee65558a7fda463222f5edc631b6d7862218725', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'e98f589d54068dfcc7da42d9b730e47b84e2991a', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '1fc6a6c0cc7796b0c1cf4eec3f0720f422f09273', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'dfab0d4698a642bab9b895e2e6d240838cfe2cc6', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'd7ccd8736b67550eca746ed7fa39a36016ff114b', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '1c9246a199e19b2fd36e94feed60e55f27103a4f', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'd1944b71c18e7494756bff1a6f80c25be99eaecb', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '47f3b5365536e8c38f264824ab15fdb74454e066', 'versionType': 'git'}], 'programFiles': ['drivers/spi/spi-xilinx.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4.0'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.0', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.261', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.212', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.97', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.40', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.5', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/spi/spi-xilinx.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '4ee65558a7fda463222f5edc631b6d7862218725', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'e98f589d54068dfcc7da42d9b730e47b84e2991a', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '1fc6a6c0cc7796b0c1cf4eec3f0720f422f09273', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'dfab0d4698a642bab9b895e2e6d240838cfe2cc6', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'd7ccd8736b67550eca746ed7fa39a36016ff114b', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '1c9246a199e19b2fd36e94feed60e55f27103a4f', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'd1944b71c18e7494756bff1a6f80c25be99eaecb', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '47f3b5365536e8c38f264824ab15fdb74454e066', 'versionType': 'git'}], 'programFiles': ['drivers/spi/spi-xilinx.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4.0'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.0', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.261', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.212', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.97', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.40', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.5', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/spi/spi-xilinx.c'], 'defaultStatus': 'affected'}]
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 15, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '4ee65558a7fda463222f5edc631b6d7862218725', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'e98f589d54068dfcc7da42d9b730e47b84e2991a', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '1fc6a6c0cc7796b0c1cf4eec3f0720f422f09273', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'dfab0d4698a642bab9b895e2e6d240838cfe2cc6', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'd7ccd8736b67550eca746ed7fa39a36016ff114b', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '1c9246a199e19b2fd36e94feed60e55f27103a4f', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': 'd1944b71c18e7494756bff1a6f80c25be99eaecb', 'versionType': 'git'}, {'status': 'affected', 'version': '4c9a761402d780b86b9b068aba4ef8e29ed15e99', 'lessThan': '47f3b5365536e8c38f264824ab15fdb74454e066', 'versionType': 'git'}], 'programFiles': ['drivers/spi/spi-xilinx.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4.0'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.0', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.261', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.212', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.97', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.40', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.5', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/spi/spi-xilinx.c'], 'defaultStatus': 'affected'}]
    Added 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.
    Added Reference https://git.kernel.org/stable/c/1c9246a199e19b2fd36e94feed60e55f27103a4f
    Added Reference https://git.kernel.org/stable/c/1fc6a6c0cc7796b0c1cf4eec3f0720f422f09273
    Added Reference https://git.kernel.org/stable/c/47f3b5365536e8c38f264824ab15fdb74454e066
    Added Reference https://git.kernel.org/stable/c/4ee65558a7fda463222f5edc631b6d7862218725
    Added Reference https://git.kernel.org/stable/c/d1944b71c18e7494756bff1a6f80c25be99eaecb
    Added Reference https://git.kernel.org/stable/c/d7ccd8736b67550eca746ed7fa39a36016ff114b
    Added Reference https://git.kernel.org/stable/c/dfab0d4698a642bab9b895e2e6d240838cfe2cc6
    Added Reference https://git.kernel.org/stable/c/e98f589d54068dfcc7da42d9b730e47b84e2991a
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.