CVE-2024-13942

Secure BootROM of RK3588s SoC is vulnerable to a time-of-check to time-of-use attack in case of booting from external media (SPI NOR or NAND, EMMC or SD). The code reads the header of the next-stage loader twice. The header contains hashes of the executable modules and is signed with a private key, the public part of which is verified against the SHA256 digest blown in the OTP. The first read is only partial and contains only the hashes of the executable modules. The second is complete, including the header signature. Although the header is verified based on the fully read data, the authenticity of the executable modules is checked against the partial data from the first read. An attacker with physical access to a device containing RK3588s SoC can easily modify the next-stage loader data on-the-fly using a low-cost SD-card or SPI NOR/NAND or EMMC emulator. Even a simple ultra low-cost circuit comprising two memory chips (containing the same data but different headers - the original and the modified one) and a multiplexer can be used to carry out an attack. This can lead to arbitrary code execution with the highest privileges available (EL3). This issue affects RK3588s: RK3588s SoC BootROM (secure) 350B20210512V100 and possibly others. As remediation apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable https://www.rock-chips.com/a/en/products/RK35_Series/2022/0926/1660.html
Configurations

No configuration.

History

01 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) El BootROM seguro del SoC RK3588s es vulnerable a un ataque de tiempo de verificación a tiempo de uso en caso de arranque desde medios externos (SPI NOR o NAND, EMMC o SD). El código lee el encabezado del cargador de siguiente etapa dos veces. El encabezado contiene hashes de los módulos ejecutables y está firmado con una clave privada, cuya parte pública se verifica contra el resumen SHA256 grabado en la OTP. La primera lectura es solo parcial y contiene solo los hashes de los módulos ejecutables. La segunda es completa, incluyendo la firma del encabezado. Aunque el encabezado se verifica basándose en los datos leídos completamente, la autenticidad de los módulos ejecutables se verifica contra los datos parciales de la primera lectura. Un atacante con acceso físico a un dispositivo que contiene el SoC RK3588s puede modificar fácilmente los datos del cargador de siguiente etapa sobre la marcha utilizando un emulador de tarjeta SD o SPI NOR/NAND o EMMC de bajo costo. Incluso un circuito simple de ultra bajo costo que comprende dos chips de memoria (que contienen los mismos datos pero diferentes encabezados - el original y el modificado) y un multiplexor puede usarse para llevar a cabo un ataque. Esto puede llevar a la ejecución de código arbitrario con los privilegios más altos disponibles (EL3). Este problema afecta a RK3588s: RK3588s SoC BootROM (seguro) 350B20210512V100 y posiblemente a otros. Como remediación, aplique mitigaciones según las instrucciones del proveedor o descontinúe el uso del producto si las mitigaciones no están disponibles https://www.rock-chips.com/a/en/products/RK35_Series/2022/0926/1660.html

Information

Published : 2026-08-19 17:18

Updated : 2026-10-01 23:10


NVD link : CVE-2024-13942

Mitre link : CVE-2024-13942

CVE.ORG link : CVE-2024-13942


JSON object : View

Products Affected

No product.

CWE
CWE-367

Time-of-check Time-of-use (TOCTOU) Race Condition