Impact
The SF32LB MPI QSPI NOR flash driver in Zephyr incorrectly validates offsets for read and write operations. Because the offset field is signed while the size field is unsigned, a negative offset is converted to a large unsigned value, and the addition can wrap around to a small result that passes the original bounds check. This allows a read to copy arbitrary CPU‑addressable memory into an attacker’s buffer, and a write to program flash at an out‑of‑range address and invalidate a chosen cache range. The resulting impact is a disclosure of non‑authorized memory (confidentiality loss) and potential corruption of the flash device (integrity and availability loss).
Affected Systems
Zephyr Project’s SF32LB MPI QSPI NOR flash driver (drivers/flash/flash_sf32lb_mpi_qspi_nor.c). The vulnerability is present in builds with CONFIG_USERSPACE enabled and when the raw flash device object is granted to an untrusted userspace thread. No specific version number is stated, so any active Zephyr configuration that includes the vulnerable driver code may be affected.
Risk and Exploitability
The CVSS score of 6.6 indicates moderate severity, and the EPSS score is not available. Because the exploit requires an unprivileged userspace thread to be granted access to the raw flash device and the userspace feature to be enabled, the risk is non‑zero but limited to configurations that expose the device. The vulnerability is not listed in CISA’s KEV catalog, suggesting no mass exploitation as of the information provided. Nonetheless, the out‑of‑bounds read can leak memory contents, and the write can compromise firmware integrity, so the potential impact warrants prompt remediation.
OpenCVE Enrichment