CVE-2026-11743
Received Received - Intake

Buffer Overflow in SF32LB MPI QSPI NOR Flash Driver

Vulnerability report for CVE-2026-11743, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-07

Last updated on: 2026-08-07

Assigner: Zephyr Project

Description

The SF32LB MPI QSPI NOR flash driver (drivers/flash/flash_sf32lb_mpi_qspi_nor.c) validated the flash offset and length on its read and write paths with the test (offset + size) > data->size. Because offset is a signed off_t while size is unsigned, a negative offset is converted to a large unsigned value and the addition can wrap to a small result that passes the check. The read path then performs memcpy(dst, (void *)(data->base + offset), size) and the write path programs flash at offset and cache-invalidates data->base + offset, in both cases accessing memory outside the mapped flash window. The driver's erase path already rejected negative offsets, but read and write did not. In builds with CONFIG_USERSPACE, flash_read and flash_write are syscalls whose verifiers validate the device object and the caller's buffer but deliberately delegate offset bounds checking to the driver. An unprivileged thread that has been granted access to this flash device can therefore call the syscall with a crafted negative offset and a buffer valid in its own memory domain, and reach the unchecked access. The most direct impact is on the read path: by choosing a negative offset and matching size, an attacker slides the memcpy source below the flash base and copies arbitrary CPU-addressable memory into its own buffer, disclosing memory it is not authorized to read. The write path additionally allows programming flash at an out-of-range address and invalidating an attacker-chosen cache range, affecting integrity and availability. Reachability requires userspace to be enabled and the raw flash device object to be granted to an untrusted thread. The fix replaces the check with qspi_nor_range_is_valid(), which rejects negative offsets and performs the bound comparison in overflow-safe 64-bit arithmetic on both paths, and additionally adds an SRAM DMA bounce buffer plus source/destination overlap rejection to prevent a separate DMA bus-hang condition.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-07
Last Modified
2026-08-07
Generated
2026-08-08
AI Q&A
2026-08-08
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
zephyrproject sf32lb_mpi_qspi_nor_flash_driver *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in the SF32LB MPI QSPI NOR flash driver for Zephyr RTOS. It allows an attacker to bypass offset validation due to a signed-unsigned integer comparison issue. A negative offset is converted to a large unsigned value, causing the bounds check to pass incorrectly. This leads to out-of-bounds memory access in read and write operations, potentially exposing sensitive memory or corrupting flash storage.

Detection Guidance

This vulnerability is specific to the SF32LB MPI QSPI NOR flash driver in Zephyr OS. Detection requires checking if the affected driver is present and if CONFIG_USERSPACE is enabled. Inspect the kernel configuration for CONFIG_USERSPACE and verify the presence of the vulnerable driver file (drivers/flash/flash_sf32lb_mpi_qspi_nor.c). No direct network detection commands are applicable.

Impact Analysis

An attacker with access to the flash device can exploit this to read arbitrary memory by providing a negative offset and matching size. They can also write to unintended flash locations and invalidate cache ranges, affecting system integrity and availability. Exploitation requires userspace enabled and the raw flash device granted to an untrusted thread.

Compliance Impact

This vulnerability could lead to unauthorized memory disclosure, violating data confidentiality requirements in GDPR and HIPAA. The potential for arbitrary memory reads may expose sensitive personal or health data, leading to compliance breaches and regulatory penalties.

Mitigation Strategies

Apply the provided fix which replaces the offset validation with qspi_nor_range_is_valid() and adds additional safety checks. Ensure the driver is updated to reject negative offsets and perform bounds checking in 64-bit arithmetic. Disable CONFIG_USERSPACE if not required or restrict access to the flash device object for untrusted threads.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-11743. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart