{"id":"CVE-2026-143405","aliases":["EUVD-2026-145002","GHSA-2rfh-3whm-6wfv"],"status":"published","title":"spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer\n\nnpcm_fiu_uma_read() and npcm_fiu_uma_write() use a 16-byte on-stack\nstaging buffer (u32 data_reg[4]) and move data_size bytes to or from\nit. data_size comes straight from op-\u003edata.nbytes, which is supplied\nby the SPI MEM operation and is not bounded by the driver:\nnpcm_fiu_exec_op() only validates op-\u003eaddr.nbytes, and no\nadjust_op_size callback truncates the transfer to the controller FIFO\nsize.\n\nA SPI MEM operation with addr.nbytes == 0 and data.nbytes \u003e 16\ntherefore overflows data_reg[] on the kernel stack (write path) or\nreads past it (read path), corrupting the stack.\n\nReject data_size larger than the staging buffer in both UMA helpers\nby returning -EOPNOTSUPP, so spi_mem falls back to the generic SPI\nmessage path. The chunked path in npcm_fiu_manualwrite() always passes\nat most CHUNK_SIZE bytes, so it is unaffected.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-12-05T01:20:31Z","modified":"2026-12-05T03:30:36Z","fixes":[{"ecosystem":"Linux","package":"Kernel","fixed_in":["5.10.275","5.15.226","6.1.193","6.6.163","6.12.117","6.18.63","7.3.4"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Linux","package":"Kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.4.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}]}],"products":[{"vendor":"linux","product":"linux"}],"references":[{"url":"https://git.kernel.org/stable/c/9e1599fbe20adf051cbed019b7827479a23da8b7","tags":["web"]},{"url":"https://git.kernel.org/stable/c/2df0db1ab5e8b586f89920da72cfeffcac4d14ba","tags":["web"]},{"url":"https://git.kernel.org/stable/c/9eca0f33f7f6a35d1507cfde6b73a611fa6f2692","tags":["web"]},{"url":"https://git.kernel.org/stable/c/320a86166cf323a982255b6af5c86325f5be2f1c","tags":["web"]},{"url":"https://git.kernel.org/stable/c/5475d9ec0ad89d69356a7084dad612c4d61480be","tags":["web"]},{"url":"https://git.kernel.org/stable/c/4a8f333446c10d361782aa4dcb7833d30cf5c154","tags":["web"]},{"url":"https://git.kernel.org/stable/c/07b9c1c9c9cac5e80725e1822631091d2a31681f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/f0be928a41384ea93c876364f360779f70359249","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143405","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-2rfh-3whm-6wfv"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143405.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-143405","title":"spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer\n\nnpcm_fiu_uma_read() and npcm_fiu_uma_write() use a 16-byte on-stack\nstaging buffer (u32 data_reg[4]) and move data_size bytes to or from\nit. data_size comes straight from op-\u003edata.nbytes, which is supplied\nby the SPI MEM operation and is not bounded by the driver:\nnpcm_fiu_exec_op() only validates op-\u003eaddr.nbytes, and no\nadjust_op_size callback truncates the transfer to the controller FIFO\nsize.\n\nA SPI MEM operation with addr.nbytes == 0 and data.nbytes \u003e 16\ntherefore overflows data_reg[] on the kernel stack (write path) or\nreads past it (read path), corrupting the stack.\n\nReject data_size larger than the staging buffer in both UMA helpers\nby returning -EOPNOTSUPP, so spi_mem falls back to the generic SPI\nmessage path. The chunked path in npcm_fiu_manualwrite() always passes\nat most CHUNK_SIZE bytes, so it is unaffected.","status":"published","published":"2026-12-05T01:20:31.144Z","modified":"2026-12-05T01:20:31.144Z","updated_at":"2026-12-05T01:24:03.178575Z"}],"euvd":[{"id":"EUVD-2026-145002","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer\n\nnpcm_fiu_uma_read() and npcm_fiu_uma_write() use a 16-byte on-stack\nstaging buffer (u32 data_reg[4]) and move data_size bytes to or from\nit. data_size comes straight from op-\u003edata.nbytes, which is supplied\nby the SPI MEM operation and is not bounded by the driver:\nnpcm_fiu_exec_op() only validates op-\u003eaddr.nbytes, and no\nadjust_op_size callback truncates the transfer to the controller FIFO\nsize.\n\nA SPI MEM operation with addr.nbytes == 0 and data.nbytes \u003e 16\ntherefore overflows data_reg[] on the kernel stack (write path) or\nreads past it (read path), corrupting the stack.\n\nReject data_size larger than the staging buffer in both UMA helpers\nby returning -EOPNOTSUPP, so spi_mem falls back to the generic SPI\nmessage path. The chunked path in npcm_fiu_manualwrite() always passes\nat most CHUNK_SIZE bytes, so it is unaffected.","status":"published","published":"2026-12-05T01:20:31Z","modified":"2026-12-05T01:20:31Z","updated_at":"2026-12-05T02:44:01.14226Z"}],"ghsa":[{"id":"GHSA-2rfh-3whm-6wfv","title":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: npcm-fiu: limit UMA...","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer\n\nnpcm_fiu_uma_read() and npcm_fiu_uma_write() use a 16-byte on-stack\nstaging buffer (u32 data_reg[4]) and move data_size bytes to or from\nit. data_size comes straight from op-\u003edata.nbytes, which is supplied\nby the SPI MEM operation and is not bounded by the driver:\nnpcm_fiu_exec_op() only validates op-\u003eaddr.nbytes, and no\nadjust_op_size callback truncates the transfer to the controller FIFO\nsize.\n\nA SPI MEM operation with addr.nbytes == 0 and data.nbytes \u003e 16\ntherefore overflows data_reg[] on the kernel stack (write path) or\nreads past it (read path), corrupting the stack.\n\nReject data_size larger than the staging buffer in both UMA helpers\nby returning -EOPNOTSUPP, so spi_mem falls back to the generic SPI\nmessage path. The chunked path in npcm_fiu_manualwrite() always passes\nat most CHUNK_SIZE bytes, so it is unaffected.","status":"published","published":"2026-12-05T03:30:27Z","modified":"2026-12-05T03:30:36Z","updated_at":"2026-12-05T03:31:20.896926Z"}],"nvd":[{"id":"CVE-2026-143405","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer\n\nnpcm_fiu_uma_read() and npcm_fiu_uma_write() use a 16-byte on-stack\nstaging buffer (u32 data_reg[4]) and move data_size bytes to or from\nit. data_size comes straight from op-\u003edata.nbytes, which is supplied\nby the SPI MEM operation and is not bounded by the driver:\nnpcm_fiu_exec_op() only validates op-\u003eaddr.nbytes, and no\nadjust_op_size callback truncates the transfer to the controller FIFO\nsize.\n\nA SPI MEM operation with addr.nbytes == 0 and data.nbytes \u003e 16\ntherefore overflows data_reg[] on the kernel stack (write path) or\nreads past it (read path), corrupting the stack.\n\nReject data_size larger than the staging buffer in both UMA helpers\nby returning -EOPNOTSUPP, so spi_mem falls back to the generic SPI\nmessage path. The chunked path in npcm_fiu_manualwrite() always passes\nat most CHUNK_SIZE bytes, so it is unaffected.","status":"published","published":"2026-12-05T03:19:50.693Z","modified":"2026-12-05T03:19:50.693Z","updated_at":"2026-12-05T03:21:31.003878Z"}],"osv":[{"id":"CVE-2026-143405","title":"spi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: npcm-fiu: limit UMA data_size to the 16-byte staging buffer\n\nnpcm_fiu_uma_read() and npcm_fiu_uma_write() use a 16-byte on-stack\nstaging buffer (u32 data_reg[4]) and move data_size bytes to or from\nit. data_size comes straight from op-\u003edata.nbytes, which is supplied\nby the SPI MEM operation and is not bounded by the driver:\nnpcm_fiu_exec_op() only validates op-\u003eaddr.nbytes, and no\nadjust_op_size callback truncates the transfer to the controller FIFO\nsize.\n\nA SPI MEM operation with addr.nbytes == 0 and data.nbytes \u003e 16\ntherefore overflows data_reg[] on the kernel stack (write path) or\nreads past it (read path), corrupting the stack.\n\nReject data_size larger than the staging buffer in both UMA helpers\nby returning -EOPNOTSUPP, so spi_mem falls back to the generic SPI\nmessage path. The chunked path in npcm_fiu_manualwrite() always passes\nat most CHUNK_SIZE bytes, so it is unaffected.","status":"published","published":"2026-12-05T01:20:31.144Z","modified":"2026-12-05T03:00:56.34289884Z","updated_at":"2026-12-05T03:12:38.313133Z"}]}}
