CVE-2026-143405
spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer
Description
In the Linux kernel, the following vulnerability has been resolved: spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer npcm_fiu_uma_read() and npcm_fiu_uma_write() use a 16-byte on-stack staging buffer (u32 data_reg[4]) and move data_size bytes to or from it. data_size comes straight from op->data.nbytes, which is supplied by the SPI MEM operation and is not bounded by the driver: npcm_fiu_exec_op() only validates op->addr.nbytes, and no adjust_op_size callback truncates the transfer to the controller FIFO size. A SPI MEM operation with addr.nbytes == 0 and data.nbytes > 16 therefore overflows data_reg[] on the kernel stack (write path) or reads past it (read path), corrupting the stack. Reject data_size larger than the staging buffer in both UMA helpers by returning -EOPNOTSUPP, so spi_mem falls back to the generic SPI message path. The chunked path in npcm_fiu_manualwrite() always passes at most CHUNK_SIZE bytes, so it is unaffected.
INFO
Published Date :
Dec. 5, 2026, 3:19 a.m.
Last Modified :
Dec. 5, 2026, 3:19 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Reject data_size larger than the staging buffer.
- Use the generic SPI message path for larger transfers.
- Ensure op->data.nbytes is properly validated.
- Update the Linux kernel.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-143405.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-143405 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-143405
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-143405 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-143405 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 05, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer npcm_fiu_uma_read() and npcm_fiu_uma_write() use a 16-byte on-stack staging buffer (u32 data_reg[4]) and move data_size bytes to or from it. data_size comes straight from op->data.nbytes, which is supplied by the SPI MEM operation and is not bounded by the driver: npcm_fiu_exec_op() only validates op->addr.nbytes, and no adjust_op_size callback truncates the transfer to the controller FIFO size. A SPI MEM operation with addr.nbytes == 0 and data.nbytes > 16 therefore overflows data_reg[] on the kernel stack (write path) or reads past it (read path), corrupting the stack. Reject data_size larger than the staging buffer in both UMA helpers by returning -EOPNOTSUPP, so spi_mem falls back to the generic SPI message path. The chunked path in npcm_fiu_manualwrite() always passes at most CHUNK_SIZE bytes, so it is unaffected. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/143xxx/CVE-2026-143405.json">CVE-2026-143405</a> Added Reference https://git.kernel.org/stable/c/07b9c1c9c9cac5e80725e1822631091d2a31681f Added Reference https://git.kernel.org/stable/c/2df0db1ab5e8b586f89920da72cfeffcac4d14ba Added Reference https://git.kernel.org/stable/c/320a86166cf323a982255b6af5c86325f5be2f1c Added Reference https://git.kernel.org/stable/c/4a8f333446c10d361782aa4dcb7833d30cf5c154 Added Reference https://git.kernel.org/stable/c/5475d9ec0ad89d69356a7084dad612c4d61480be Added Reference https://git.kernel.org/stable/c/9e1599fbe20adf051cbed019b7827479a23da8b7 Added Reference https://git.kernel.org/stable/c/9eca0f33f7f6a35d1507cfde6b73a611fa6f2692 Added Reference https://git.kernel.org/stable/c/f0be928a41384ea93c876364f360779f70359249