Secure boot bypass via underflowed range checks
Published Jun 24, 2024 · Updated Aug 1, 2024
Integer underflow in Renesas R-Car Gen3 arm-trusted-firmware allows local users to write outside permitted memory while loading images. The check_load_area function in drivers/renesas/common/io/io_rcar.c subtracts an attacker-controlled image length from range endpoints without first ensuring the length does not exceed them, so unsigned wraparound can validate a prohibited destination. Exploitation requires the ability to write the bootloader's flash area and can bypass secure boot by loading image data at an arbitrary memory address.
Summary
What happened
Integer underflow in Renesas R-Car Gen3 arm-trusted-firmware allows local users to write outside permitted memory while loading images. The check_load_area function in drivers/renesas/common/io/io_rcar.c subtracts an attacker-controlled image length from range endpoints without first ensuring the length does not exceed them, so unsigned wraparound can validate a prohibited destination. Exploitation requires the ability to write the bootloader's flash area and can bypass secure boot by loading image data at an arbitrary memory address.
The record
- CVE
- CVE-2024-6285
- Published
- Jun 24, 2024
- Updated
- Aug 1, 2024
- Vendor
- Renesas Electronics
- Product
- R-Car Gen3
- Classifications
- CWE-191, CAPEC-578, T1542.003
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Jun 24, 2024CVE publishedPublication date reported by the CVE source.
- Aug 1, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=c2f286820471ed276c57e603762bd831873e5a17 <b596f580637bae919b0ac3a5471422a1f756db3b
- Affected versionversion=c2f286820471ed276c57e603762bd831873e5a17 <b596f580637bae919b0ac3a5471422a1f756db3b changes=[{"at":"b596f580637bae919b0ac3a5471422a1f756db3b","status":"unaffected"}]
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo