{"id":"CVE-2024-13942","aliases":["CVE-2024-13942"],"related":[],"kind":"vulnerability","state":"published","title":"Rockchip RK3588s Secure BootROM TOCTOU (time-of-check to time-of-use) vulnerability leading to arbitrary code execution with highest privileges","summary":"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).\n\n\n\n\nThe 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.\n\n\n\n\nThe first read is only partial and contains only the hashes of the executable modules. The second is complete, including the header signature.\n\nAlthough 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.\n\n\n\n\nAn 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.\n\n\n\n\nThis can lead to arbitrary code execution with the highest privileges available (EL3). This issue affects RK3588s: RK3588s SoC BootROM (secure) 350B20210512V100 and possibly others.\nAs 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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).\n\n\n\n\nThe 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.\n\n\n\n\nThe first read is only partial and contains only the hashes of the executable modules. The second is complete, including the header signature.\n\nAlthough 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.\n\n\n\n\nAn 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.\n\n\n\n\nThis can lead to arbitrary code execution with the highest privileges available (EL3). This issue affects RK3588s: RK3588s SoC BootROM (secure) 350B20210512V100 and possibly others.\nAs 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","source":"cvelist"},{"lang":"es","text":"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).\n\nEl 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.\n\nLa primera lectura es solo parcial y contiene solo los hashes de los módulos ejecutables. La segunda es completa, incluyendo la firma del encabezado.\n\nAunque 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.\n\nUn 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.\n\nEsto 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.\nComo 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","source":"nvd"}],"published":"2026-08-19T16:40:18.082Z","modified":"2026-10-01T23:10:00.233Z","severity":{"scorer":"Kaspersky","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"Kaspersky","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":7.6,"rating":"HIGH"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"version":"350B20210512V100","status":"affected"}],"vendor":"Rockchip","product":"RK3588s","source":"cvelist"}],"references":[{"url":"https://github.com/klsecservices/Advisories/blob/master/KLSA-00230-Rockchip-RK3588s-Secure-BootROM-TOCTOU-vulnerability.md","tags":[],"sources":["cvelist","nvd"]},{"url":"https://www.rock-chips.com/a/en/products/RK35_Series/2022/0926/1660.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://www.rock-chips.com/a/en/psirt/vdp.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["The vulnerability was discovered by experts from Kaspersky (https://kaspersky.com)"],"assigner":"Kaspersky","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-19T19:08:57.606Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-13942","url":"https://www.cve.org/CVERecord?id=CVE-2024-13942","licence":"CVE Terms of Use","modified":"2026-08-19T19:10:15.374Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-13942","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-13942","licence":"Public domain","modified":"2026-10-01T23:10:00.233Z"}],"updatedAt":"2026-11-25T22:58:53.066Z","epss":{"score":0.00163,"percentile":0.05692,"date":"2026-12-01T12:00:22.000Z"}}