Every CVESearch/Get API key

CVE-2026-143405

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

Explain with AI
ChatGPTClaudeGoogle AI
Scores
Unknown
No source reports a CVSS or EPSS score yet.
Exploitation
Unknown
No source reports exploitation yet.
Listed fix
5.10.275 for Kernel
From OSV6 more listed versions

Overview

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.

Affected

Packages 1

Affected packages
PackageAffectedFixed
Kernel
Linux
5.4.0 up to 5.10.275, 5.11.0 up to 5.15.226, 5.16.0 up to 6.1.193, 6.2.0 up to 6.6.163, 6.7.0 up to 6.12.117, 6.13.0 up to 6.18.63, 6.19.0 up to 7.3.4
5.10.2755.15.2266.1.1936.6.1636.12.1176.18.637.3.4

Products 1

Sources

CVE ListNo score

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

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.

Record
CVE-2026-143405
Updated
2026-12-05
EUVDEUVD-2026-145002No score

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.

Record
EUVD-2026-145002
Updated
2026-12-05
GitHub AdvisoriesGHSA-2rfh-3whm-6wfvNo score

In the Linux kernel, the following vulnerability has been resolved: spi: npcm-fiu: limit UMA...

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.

Record
GHSA-2rfh-3whm-6wfv
Updated
2026-12-05
NVDNo score

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.

Record
CVE-2026-143405
Updated
2026-12-05
OSVNo score

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

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.

Record
CVE-2026-143405
Updated
2026-12-05

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Other IDs, referencesGitHub Advisories, NVD
Affected packages, key facts, referencesOSV
Other IDs, published dateEUVD
First indexedCVE List

Upstream dates may differ.

References

Show 4 more referencesShow less
MoveEnter Open