CVE-2026-139756: spi: amlogic: spisg: Fix transfer size limit and timeout handling
In the Linux kernel, the following vulnerability has been resolved:
spi: amlogic: spisg: Fix transfer size limit and timeout handling
The CFGBLOCKNUM field can encode at most 20 bits, so reduce SPISGBLOCKMAX to 0xfffff to avoid programming a zero-length transfer.
Perform the delay calculation in 64-bit arithmetic to avoid overflow when converting nanoseconds to SPI clock cycles.
Stop the controller on transfer timeout by clearing the descriptor list register before returning an error.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
What conditions are required to trigger the faulty transfer handling?
The issue is in the Amlogic SPISG SPI driver and concerns transfers whose block count exceeds the 20-bit CFG_BLOCK_NUM field, delay calculations that overflow during nanosecond-to-clock-cycle conversion, or transfers that time out.
What is the operational impact of a transfer timeout before the fix?
Before the fix, the driver can return an error without clearing the descriptor list register to stop the controller. The fix explicitly clears that register on timeout.
How can I determine whether a system needs this fix?
Determine whether the running Linux kernel uses the Amlogic SPISG SPI driver and whether it includes the referenced stable commits. Systems not using that driver are not implicated by the provided information.