STM32MP2 experiment uncovers hardware flaw in PCIe access protection

The author of serd.es has described a hardware flaw discovered while running an STM32MP2 without Linux or external DDR memory. Using an STM32MP257F-EV1 development board, the author brought up custom firmware on the Cortex-M33 and Cortex-A35 cores, keeping code and data in on-chip SRAM. The experiment aimed to connect an FPGA over PCIe using standard compilers and no vendor SDK.
Debugging revealed that RISAF5, which protects the PCIe address space, detects prohibited access but still lets transactions reach peripherals. A blocked 32-bit read reaches the device and can trigger its normal side effects, although the processor receives zeros. A blocked 32-bit write sends zeros regardless of the requested data. The security violation notification arrives after the write has already been dispatched.
The author reported the issue to STMicroelectronics PSIRT through their employer’s disclosure team. According to the post, ST later published an advisory and documented the defect as erratum 2.3.33. Whether it can be exploited in real deployments remains unresolved, and the author has not confirmed whether other RISAF instances are affected.
The project also achieved approximately 1.77 Gbps through PCIe using software memory copying. An estimated DMA throughput of about 3.71 Gbps remains theoretical and has not yet been demonstrated in a benchmark.
Original source: serd.es ↗
Comments on source platforms
Rank is the maximum of the latest discussion counts. These are source metrics.
Hacker News
- Discussion ↗: 47
Measured: 9 Nov 2026, 17:58 UTC