CVE-2026-100061

spi: bcm-qspi: reject oversized dummy bytes in mspi exec_mem_op

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An unchecked length of dummy bytes in the bcm_qspi module causes the exec_mem_op routine to build a command buffer that can exceed its 6‑byte limit. When the dummy byte count is two or more, the buffer overrun lets the write_to_hw routine read past the end of the cmd array on the kernel stack, leaking or overwriting data into the hardware TXRAM. This out‑of‑bounds write may allow a local attacker or compromised driver to corrupt kernel memory, potentially leading to privilege escalation or code execution. The vulnerability is a classic stack‑based buffer overflow and is classified under CWE‑120 and CWE‑119.

Affected Systems

All Linux kernel versions that include the bcm_qspi driver prior to the patch that limits op->dummy.nbytes to a maximum of one byte are affected. No specific vendor version range is listed, so any kernel build containing the vulnerable function is susceptible.

Risk and Exploitability

The CVSS score is not provided, but the nature of the overflow suggests a high severity. The EPSS score is unavailable and the vulnerability is not listed in the CISA KEV catalog, indicating no known widespread exploitation. Nevertheless, the flaw can be triggered by any code that performs SPI operations through the bcm_qspi driver, so the risk remains significant until patched.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the newest Linux kernel update that includes the check limiting op->dummy.nbytes to one byte as implemented in the commit that resolves the vulnerability.
  • If the kernel cannot be updated immediately, configure SPI devices or firmware to use at most one dummy byte so that the fallback generic SPI path handles the operation safely.
  • Disable or replace the bcm_qspi driver if it is not required for system operation to eliminate the attack surface.

Generated by OpenCVE AI on November 30, 2026 at 16:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-119
CWE-120
Type Values Removed Values Added
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.
Title spi: bcm-qspi: reject oversized dummy bytes in mspi exec_mem_op
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM