CVE-2026-100061: spi: bcm-qspi: reject oversized dummy bytes in mspi exec_mem_op
In the Linux kernel, the following vulnerability has been resolved:
spi: bcm-qspi: reject oversized dummy bytes in mspi execmemop
bcmqspimspiexecmemop() builds a local command buffer cmd[6] holding one opcode byte, up to four address bytes and one spare byte, and sets t[0].len = op->addr.nbytes + op->dummy.nbytes + 1. bcmqspiexecmemop() only validates op->addr.nbytes <= 4 and never bounds op->dummy.nbytes, which spimemcheckop() also leaves unrestricted. With addr.nbytes = 4 and dummy.nbytes >= 2 the length becomes 7 or more, so writetohw() reads past cmd[] on the kernel stack and pushes the leaked bytes into the hardware TXRAM.
Reject operations whose dummy phase does not fit the remaining byte of cmd[] by requiring op->dummy.nbytes <= 1, so such transfers fall back to the generic SPI path instead of overrunning the buffer.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the bcm-qspi MSPI memory-operation path, require op->dummy.nbytes <= 1 so transfers with oversized dummy bytes fall back to the generic SPI path.
Event History
Frequently Asked Questions
Which SPI memory operations can trigger the out-of-bounds read?
The affected MSPI execution path is triggered when the command length, calculated as one opcode byte plus address bytes plus dummy bytes, exceeds the six-byte local command buffer. The described case is a four-byte address with two or more dummy bytes, which causes a command length of at least seven bytes.
How can I determine whether my workload is exposed?
Review SPI memory operations handled by bcm_qspi_mspi_exec_mem_op() for dummy phases larger than the space available in its command buffer. In particular, operations using a four-byte address and at least two dummy bytes reach the vulnerable condition.
What can be done if the fix cannot be applied immediately?
Avoid issuing affected operations through this path, especially operations with four address bytes and two or more dummy bytes. The fix rejects dummy phases greater than one byte for this MSPI path, causing those transfers to use the generic SPI path instead.