Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-70387 Overview
CVE-2026-70387 is a local privilege escalation vulnerability in OnePlus OxygenOS on Android. The olc2 logging Hardware Abstraction Layer (HAL) exposes a binder method that forks and calls execl("/vendor/bin/sh", "sh", "-c", cmd, NULL) using a caller-supplied command string. The only authorization check is getCallingUid() == 0, which allows any uid-0 process in a permitted SELinux domain to execute arbitrary shell commands. The spawned shell runs in the u:r:vendor_qti_init_shell:s0 context, a domain that holds all Linux capabilities. The flaw is tracked as CWE-749: Exposed Dangerous Method or Function.
Critical Impact
Arbitrary command execution in a privileged SELinux domain holding all Linux capabilities, reachable from an unprivileged app when chained with a sibling dumpstate vulnerability.
Affected Products
- OnePlus OxygenOS 16.1.0 before 16.1.10.500
- OnePlus OxygenOS 16.0.0 before 16.0.5.1200
- OnePlus OxygenOS 15.0.0 before 15.0.0.2000
Discovery Timeline
- 2026-10-21 - CVE-2026-70387 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-70387
Vulnerability Analysis
The olc2 logging HAL implements a binder interface intended for internal diagnostic use. One method accepts an arbitrary command string from the binder caller. The implementation forks a child process and invokes execl("/vendor/bin/sh", "sh", "-c", cmd, NULL) without sanitizing or validating the command content.
The only gating logic is a uid comparison: getCallingUid() == 0. SELinux policy grants binder access to the HAL to a broad hal_client attribute. Any root-uid process in those permitted domains can reach the method. OxygenOS SELinux policy includes a type_transition that places the newly executed /vendor/bin/sh into the vendor_qti_init_shell domain, which retains the full Linux capability set.
Chained with a separate dumpstate vulnerability referenced in the researcher writeup, an unprivileged application can reach dumpstate (which runs as uid 0) and pivot into the olc2 interface to obtain arbitrary command execution with full capabilities.
Root Cause
The root cause is reliance on uid alone for authorization of a dangerous method. Exposing exec of caller-controlled strings via binder is not a safe primitive even when restricted to root callers. Multiple Android components run as uid 0 but are not themselves trusted to execute arbitrary shell commands in a maximally privileged SELinux domain.
Attack Vector
Exploitation is local. The attacker needs code execution in a uid-0 process whose SELinux domain is granted binder access to the olc2 HAL. The researcher chain uses an unprivileged Android application to trigger a dumpstate flaw and reach the HAL from u:r:dumpstate:s0. The resulting shell inherits vendor_qti_init_shell and can read or modify arbitrary files, load kernel modules, or persist privileged payloads. Technical details are documented in the NNS Blog Root Exploit Analysis.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-70387
Indicators of Compromise
- Unexpected child processes of the olc2 logging HAL spawning /vendor/bin/sh with -c arguments.
- SELinux audit entries showing processes transitioning into u:r:vendor_qti_init_shell:s0 outside of normal boot or vendor init paths.
- dumpstate invocations originating from third-party application UIDs.
Detection Strategies
- Audit binder transactions targeting the olc2 logging HAL from non-system domains using Android logcat and auditd records.
- Baseline the normal command-line arguments observed under vendor_qti_init_shell and alert on deviations such as sh -c with attacker-controlled payloads.
- Correlate dumpstate activation from untrusted app packages with subsequent HAL binder calls occurring in short time windows.
Monitoring Recommendations
- Forward Android security logs, SELinux denials, and binder traces to a central analytics platform for behavioral baselining.
- Monitor fleet OxygenOS build fingerprints and flag devices on 16.1.10.500, 16.0.5.1200, or 15.0.0.2000 predecessors.
- Track installations of unknown-source APKs on managed OnePlus devices and correlate with elevated-privilege shell activity.
How to Mitigate CVE-2026-70387
Immediate Actions Required
- Update OnePlus devices to OxygenOS 16.1.10.500, 16.0.5.1200, or 15.0.0.2000 or later as applicable to the branch.
- Restrict side-loading on managed OnePlus devices via Mobile Device Management (MDM) policy to limit delivery of chained exploits.
- Review enterprise mobility inventories for OnePlus models and prioritize firmware rollout on devices used for privileged access.
Patch Information
OnePlus addressed the issue in OxygenOS versions 16.1.10.500, 16.0.5.1200, and 15.0.0.2000. No separate vendor advisory URL is listed in the NVD record. Refer to the NNS Blog Root Exploit Analysis for the technical disclosure.
Workarounds
- No vendor-supplied workaround exists; apply the OxygenOS update as the primary remediation.
- Reduce exposure by removing untrusted applications and disabling developer options on devices that cannot be updated immediately.
- Where possible, limit the device to work-profile-only usage so that unmanaged app installation is blocked by policy.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

