CVE-2026-100083: spi: cadence-xspi: fix stack buffer overflow in the Marvell b0 path

Published Nov 30, 2026
·
Updated

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

spi: cadence-xspi: fix stack buffer overflow in the Marvell b0 path

transferonemessageb0() falls back to a 10-byte stack buffer for transfers which carry no TX data and points both inbuffer and outbuffer into it.

With a transfer longer than 10 bytes the SDMA branch of the loop moves up to MRVLXFERQWORDCOUNT MRVLXFERQWORDBYTECOUNT (256) bytes through those pointers and then advances them by the same amount, so both directions overflow the scratch buffer: a read transaction copies SDMA data past the end of the buffer, a write transaction sends stack contents from beyond it to the SPI bus.

Size the scratch buffer for the largest chunk the loop can request, keep the buffer pointers pinned to it when the message does not carry the corresponding TX or RX data, and only advance the pointers which reference real transfer buffers. Also zero-initialize the scratch buffer so that padding bytes sent for TX-less transfers no longer leak uninitialized stack contents.

Affected Software

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.12.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux<6.12.117-1
6.12.117-1
debian/linux<7.3.4-1
7.3.4-1
debian/linux
6.12.117-17.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  6. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1Fixed in 7.3.4-1
  7. Compensating control

    In transfer_one_message_b0(), size the scratch buffer to handle the largest requested chunk (MRVL_XFER_QWORD_COUNT * MRVL_XFER_QWORD_BYTECOUNT, 256 bytes) and zero-initialize it. When TX or RX data is absent, keep the corresponding pointer pinned to the scratch buffer; advance only pointers that reference real transfer buffers.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:23 PM
Data Sourced
via MITRE·01:23 PM
Description
Data Sourced
via OSV·01:23 PM
DescriptionAffected Software
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Exposure is limited to the Cadence XSPI Marvell b0 transfer path when transfer_one_message_b0() handles a transfer longer than 10 bytes that lacks TX data. The overflow occurs in the SDMA branch, which can process chunks of up to 256 bytes.

2

What is the impact for read versus write transfers?

For read transactions, SDMA data can be copied past the end of the stack scratch buffer. For write transactions without TX data, stack contents beyond that buffer can be sent on the SPI bus.

3

How can I assess whether my code path is affected?

Check whether the system uses the Marvell b0 path in the Cadence XSPI driver and whether it can issue SDMA transfers exceeding 10 bytes with absent TX or RX buffers. The vulnerable behavior uses the same small stack buffer for both directions and advances those pointers even when they do not reference real transfer buffers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203