CVE-2026-139397

Source
https://cve.org/CVERecord?id=CVE-2026-139397
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139397.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139397
Downstream
Published
2026-11-30T13:34:22Z
Modified
2026-11-30T15:02:28Z
Summary
spi: axi-spi-engine: fix stale SYNC IRQ pending
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139397.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1d0ee0c9df31c9fd1e4f8d7e2464e36fbf6e3f75
Fixed
b68cb3650ceb87032ae28f571fe4336527b9a879
Fixed
4aa253c9606afcd4eb4380436925b3d3d3c7cc13
Fixed
ea29c686f96adcb505071ef228ba8047dc951fac

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139397.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139397.json"