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

Summary

CVECVE-2026-143405
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-05 03:19:50 UTC
Updated2026-12-05 03:19:50 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected ace55c411b11d9b12f500c7433bf469c26130182 9e1599fbe20adf051cbed019b7827479a23da8b7 git Not specified
CNA Linux Linux affected ace55c411b11d9b12f500c7433bf469c26130182 2df0db1ab5e8b586f89920da72cfeffcac4d14ba git Not specified
CNA Linux Linux affected ace55c411b11d9b12f500c7433bf469c26130182 9eca0f33f7f6a35d1507cfde6b73a611fa6f2692 git Not specified
CNA Linux Linux affected ace55c411b11d9b12f500c7433bf469c26130182 320a86166cf323a982255b6af5c86325f5be2f1c git Not specified
CNA Linux Linux affected ace55c411b11d9b12f500c7433bf469c26130182 5475d9ec0ad89d69356a7084dad612c4d61480be git Not specified
CNA Linux Linux affected ace55c411b11d9b12f500c7433bf469c26130182 4a8f333446c10d361782aa4dcb7833d30cf5c154 git Not specified
CNA Linux Linux affected ace55c411b11d9b12f500c7433bf469c26130182 07b9c1c9c9cac5e80725e1822631091d2a31681f git Not specified
CNA Linux Linux affected ace55c411b11d9b12f500c7433bf469c26130182 f0be928a41384ea93c876364f360779f70359249 git Not specified
CNA Linux Linux affected 5.4 Not specified
CNA Linux Linux unaffected 5.4 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/9eca0f33f7f6a35d1507cfde6b73a611fa6f2692 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5475d9ec0ad89d69356a7084dad612c4d61480be 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f0be928a41384ea93c876364f360779f70359249 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/07b9c1c9c9cac5e80725e1822631091d2a31681f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9e1599fbe20adf051cbed019b7827479a23da8b7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/320a86166cf323a982255b6af5c86325f5be2f1c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4a8f333446c10d361782aa4dcb7833d30cf5c154 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2df0db1ab5e8b586f89920da72cfeffcac4d14ba 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report