CVE-2026-143405: spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer

Published Dec 5, 2026
·
Updated

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

spi: npcm-fiu: limit UMA datasize to the 16-byte staging buffer

npcmfiuumaread() and npcmfiuumawrite() use a 16-byte on-stack staging buffer (u32 datareg[4]) and move datasize bytes to or from it. datasize comes straight from op->data.nbytes, which is supplied by the SPI MEM operation and is not bounded by the driver: npcmfiuexecop() only validates op->addr.nbytes, and no adjustopsize callback truncates the transfer to the controller FIFO size.

A SPI MEM operation with addr.nbytes == 0 and data.nbytes > 16 therefore overflows datareg[] on the kernel stack (write path) or reads past it (read path), corrupting the stack.

Reject datasize larger than the staging buffer in both UMA helpers by returning -EOPNOTSUPP, so spimem falls back to the generic SPI message path. The chunked path in npcmfiumanualwrite() always passes at most CHUNKSIZE bytes, so it is unaffected.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In npcm_fiu_uma_read() and npcm_fiu_uma_write(), reject data_size values larger than the 16-byte staging buffer (u32 data_reg[4]).

Event History

Dec 5, 2026
CVE Published
via MITRE·01:20 AM
Data Sourced
via MITRE·01:20 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger the vulnerable path?

The SPI MEM operation must have addr.nbytes set to 0 and data.nbytes greater than 16. The oversized data length reaches the UMA read or write helpers without being limited to their 16-byte on-stack staging buffer.

2

What is the impact of a successful trigger?

An oversized write can overflow the data_reg stack buffer, while an oversized read can read past it. Both conditions can corrupt kernel stack memory.

3

Is the driver's chunked manual-write path affected?

No. The npcm_fiu_manualwrite() chunked path passes no more than CHUNK_SIZE bytes and is identified as unaffected.

4

What happens after the fix when a transfer exceeds the staging-buffer size?

The UMA helpers reject data sizes larger than the staging buffer with -EOPNOTSUPP. spi_mem then falls back to the generic SPI message path.

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