CVE-2024-13942: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in Rockchip RK3588s
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
AI Analysis
Technical Summary
CVE-2024-13942 is a TOCTOU race condition in the Secure BootROM of Rockchip RK3588s SoC. The boot process reads the next-stage loader header twice: initially partially to obtain hashes of executable modules, and then fully to verify the header signature. The executable modules are authenticated against the partial read, creating a window for an attacker with physical access to modify the loader data on-the-fly using low-cost hardware emulators for SPI NOR/NAND, EMMC, or SD media. This manipulation can bypass signature verification and lead to arbitrary code execution at EL3 privilege. The vulnerability affects RK3588s BootROM version 350B20210512V100 and possibly others. No official fix or patch is currently documented; mitigation requires following vendor instructions or discontinuing use if no mitigation is available.
Potential Impact
An attacker with physical access to a device containing the vulnerable RK3588s SoC can exploit this TOCTOU race condition to execute arbitrary code with the highest privilege level (EL3). This compromises the secure boot process, potentially allowing full control over the device firmware and undermining device security and trust. The vulnerability affects devices booting from external media such as SPI NOR/NAND, EMMC, or SD cards.
Mitigation Recommendations
No official patch or fix is currently documented by the vendor. Users should apply any mitigations provided by Rockchip per their instructions. If no mitigations are available, discontinuing use of the affected product is recommended. Physical security controls to prevent attacker access to the device's external boot media may reduce risk. Monitor the vendor advisory at https://www.rock-chips.com/a/en/products/RK35_Series/2022/0926/1660.html for updates on remediation.
CVE-2024-13942: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in Rockchip RK3588s
Description
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
CVSS v3.1
Score 7.6high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-13942 is a TOCTOU race condition in the Secure BootROM of Rockchip RK3588s SoC. The boot process reads the next-stage loader header twice: initially partially to obtain hashes of executable modules, and then fully to verify the header signature. The executable modules are authenticated against the partial read, creating a window for an attacker with physical access to modify the loader data on-the-fly using low-cost hardware emulators for SPI NOR/NAND, EMMC, or SD media. This manipulation can bypass signature verification and lead to arbitrary code execution at EL3 privilege. The vulnerability affects RK3588s BootROM version 350B20210512V100 and possibly others. No official fix or patch is currently documented; mitigation requires following vendor instructions or discontinuing use if no mitigation is available.
Potential Impact
An attacker with physical access to a device containing the vulnerable RK3588s SoC can exploit this TOCTOU race condition to execute arbitrary code with the highest privilege level (EL3). This compromises the secure boot process, potentially allowing full control over the device firmware and undermining device security and trust. The vulnerability affects devices booting from external media such as SPI NOR/NAND, EMMC, or SD cards.
Mitigation Recommendations
No official patch or fix is currently documented by the vendor. Users should apply any mitigations provided by Rockchip per their instructions. If no mitigations are available, discontinuing use of the affected product is recommended. Physical security controls to prevent attacker access to the device's external boot media may reduce risk. Monitor the vendor advisory at https://www.rock-chips.com/a/en/products/RK35_Series/2022/0926/1660.html for updates on remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Kaspersky
- Date Reserved
- 2025-04-02T16:35:45.784Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85dfcaacd9273b49587f5f
Added to database: 08/19/2026, 16:54:34 UTC
Last enriched: 08/19/2026, 17:07:25 UTC
Last updated: 08/19/2026, 17:43:11 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.