Description

In the Linux kernel, the following vulnerability has been resolved: spi: bcm-qspi: reject oversized dummy bytes in mspi exec_mem_op bcm_qspi_mspi_exec_mem_op() builds a local command buffer cmd[6] holding one opcode byte, up to four address bytes and one spare byte, and sets t[0].len = op->addr.nbytes + op->dummy.nbytes + 1. bcm_qspi_exec_mem_op() only validates op->addr.nbytes <= 4 and never bounds op->dummy.nbytes, which spi_mem_check_op() also leaves unrestricted. With addr.nbytes = 4 and dummy.nbytes >= 2 the length becomes 7 or more, so write_to_hw() reads past cmd[] on the kernel stack and pushes the leaked bytes into the hardware TXRAM. Reject operations whose dummy phase does not fit the remaining byte of cmd[] by requiring op->dummy.nbytes <= 1, so such transfers fall back to the generic SPI path instead of overrunning the buffer.

Affected products

VendorProductVersions
LinuxLinux5f195ee7d830c271af6fca979b0106b9a053e2c0 to <40bdc484f11538e20636a6ac864fddd013bf353e [affected]; 5f195ee7d830c271af6fca979b0106b9a053e2c0 to <4779e14965a5c193c2053cb3e584f281fb478619 [affected]; 5f195ee7d830c271af6fca979b0106b9a053e2c0 to <8fde99eeb07d1f709e3e78bcccf4c7690f7d8e61 [affected]; 5f195ee7d830c271af6fca979b0106b9a053e2c0 to <fc3779e2eb7f74faad522919ff0b9822f8803e5b [affected]; 5f195ee7d830c271af6fca979b0106b9a053e2c0 to <7fdfd92092179b3670c401c9083660d308e7d717 [affected]; 5f195ee7d830c271af6fca979b0106b9a053e2c0 to <67221e6133a92aeabebb1ec4497234643a7b7745 [affected]; 5f195ee7d830c271af6fca979b0106b9a053e2c0 to <25ce0404c9f72295aef347f6c071cf8378f5b679 [affected]; 5f195ee7d830c271af6fca979b0106b9a053e2c0 to <9e44f0df3fff215d9033089e85980048c3ac132a [affected]
LinuxLinux4.18 [affected]; 0 to <4.18 [unaffected]; 5.10.275 to <=5.10.* [unaffected]; 5.15.226 to <=5.15.* [unaffected]; 6.1.193 to <=6.1.* [unaffected]; 6.6.163 to <=6.6.* [unaffected]; 6.12.117 to <=6.12.* [unaffected]; 6.18.63 to <=6.18.* [unaffected]; 7.3.4 to <=7.3.* [unaffected]; 7.4-rc1 to <=* [unaffected]

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Assess this vulnerability

Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.

Browse all CVE security advisories · Symaro cybersecurity services

Generated from the official CVE List on 01 Dec 2026 08:04 UTC.