Katalog CVE

CVE-2026-11743

ŚrednieCVSS 6.6
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.11%

Percentyl 1 - wyżej niż 1% wszystkich znanych CVE

Streszczenie

Sterownik flash SF32LB MPI QSPI NOR zawiera podatność polegającą na nieprawidłowej walidacji przesunięcia (offset) i długości (size) w operacjach odczytu i zapisu. Ze względu na znakowy typ offset i bezznakowy typ size, ujemne przesunięcie jest konwertowane na dużą wartość bez znaku, a dodawanie może zawinąć się do małego wyniku, który przechodzi kontrolę. Umożliwia to dostęp do pamięci poza mapowanym oknem flash.

Ocena ryzyka

Atakujący z uprawnieniami dostępu do urządzenia flash może odczytać dowolną pamięć adresowalną przez CPU (naruszenie poufności) oraz zapisywać dane poza zakresem flash i unieważniać wybraną pamięć podręczną (naruszenie integralności i dostępności). Wpływa to na bezpieczeństwo całego systemu.

Rekomendacja

Należy natychmiast zaktualizować sterownik do wersji zawierającej poprawkę, która używa funkcji qspi_nor_range_is_valid() z arytmetyką 64-bitową i odrzuca ujemne przesunięcia. Dodatkowo, jeśli to możliwe, ogranicz dostęp do urządzenia flash tylko dla zaufanych wątków.

Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS