# CVE-2026-139397: spi: axi-spi-engine: fix stale SYNC IRQ pending

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:34:22.745Z
- Modified: 2026-11-30T14:19:07.880Z
- Assigned by: Linux

## Description

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

spi: axi-spi-engine: fix stale SYNC IRQ pending

spi_engine_setup() sends a SYNC(1) command and polls SYNC_ID to confirm
it was parsed by the FPGA, but never clears the corresponding interrupt
pending bit (INT_PENDING[SYNC]). When the first real SPI transfer starts
and INT_SYNC is enabled, that stale pending bit fires immediately, causing
the IRQ handler to see the leftover SYNC_ID from setup, match it against
the current transfer's ID, and prematurely signal completion before the
hardware finishes.

This race manifests at low SPI clock frequencies (~2-3 MHz), where the
FPGA takes long enough to execute the transfer that handler is parsed
before it finishes. At higher SCLK rates the transfer completes fast
enough that the issue is masked.

Fix this by clearing INT_PENDING[SYNC] after the polled SYNC, ensuring no
stale interrupt is left pending.

(As written by CVE List.)

## Affected

- Linux Linux: from 1d0ee0c9df31c9fd1e4f8d7e2464e36fbf6e3f75 before b68cb3650ceb87032ae28f571fe4336527b9a879; from 1d0ee0c9df31c9fd1e4f8d7e2464e36fbf6e3f75 before 4aa253c9606afcd4eb4380436925b3d3d3c7cc13; from 1d0ee0c9df31c9fd1e4f8d7e2464e36fbf6e3f75 before ea29c686f96adcb505071ef228ba8047dc951fac; 6.16 (not affected: before 6.16; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/b68cb3650ceb87032ae28f571fe4336527b9a879>
- <https://git.kernel.org/stable/c/4aa253c9606afcd4eb4380436925b3d3d3c7cc13>
- <https://git.kernel.org/stable/c/ea29c686f96adcb505071ef228ba8047dc951fac>

## Sources

- CVE List: [CVE-2026-139397](https://www.cve.org/CVERecord?id=CVE-2026-139397), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139397](https://nvd.nist.gov/vuln/detail/CVE-2026-139397), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139397 · Whole record: https://cve.day/CVE-2026-139397.json · Rebuilt by cve.day 2026-11-30T14:33:20.076Z
