vendor:
KNOX
by:
Project Zero
8,8
CVSS
HIGH
Privilege Escalation
264
CWE
Product Name: KNOX
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Android
2018
Samsung KNOX RKP Security Hypervisor Vulnerability
Samsung phones include a security hypervisor called RKP (Real-time Kernel Protection), running in EL2. This hypervisor is meant to ensure that the HLOS kernel running in EL1 remains protected from exploits and aims to prevent privilege escalation attacks by 'shielding' certain data structures within the hypervisor. However, RKP provides commands which can be used in order to re-map regions in the stage 2 translation table. Most of these commands correctly perform a validation on the given address range using 'physmap'. However, the 'rkp_set_init_page_ro' command (command code 0x51) can be used to mark a region as read-only in stage 2, and performs no such validation.
Mitigation:
Ensure that the 'rkp_set_init_page_ro' command is not used without proper validation.