CVE-2023-21189

7.3 HIGH

📋 TL;DR

This vulnerability allows an attacker to bypass Android's lock task mode (kiosk mode) due to a logic error in the LockTaskController. An attacker could escalate privileges locally without needing additional execution privileges, potentially gaining unauthorized access to restricted device functions. Only Android 13 devices are affected.

💻 Affected Systems

Products:
  • Android
Versions: Android 13
Operating Systems: Android
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects devices using lock task mode (kiosk mode). Standard consumer devices not using this feature are not vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

An attacker could escape lock task mode restrictions, access sensitive apps/data, install malware, or take full control of the device.

🟠

Likely Case

Unauthorized access to apps and functions that should be restricted in kiosk mode, potentially compromising data or device functionality.

🟢

If Mitigated

Limited impact if proper application sandboxing and device management policies are enforced.

🌐 Internet-Facing: LOW - Requires local access and user interaction for exploitation.
🏢 Internal Only: MEDIUM - Could be exploited by malicious apps or users with physical access to corporate/managed devices.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires user interaction and local access. Exploitation involves triggering the logic error in lock task mode.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Android Security Patch June 2023 or later

Vendor Advisory: https://source.android.com/security/bulletin/pixel/2023-06-01

Restart Required: Yes

Instructions:

1. Check for Android system updates in Settings > System > System update. 2. Install the June 2023 security patch or later. 3. Reboot the device after installation.

🔧 Temporary Workarounds

Disable Lock Task Mode

android

Temporarily disable lock task/kiosk mode on affected devices until patched.

adb shell dpm set-device-owner com.example/.DeviceAdminReceiver (to modify device policy)

🧯 If You Can't Patch

  • Restrict physical access to devices using lock task mode
  • Implement additional application whitelisting and monitoring for kiosk devices

🔍 How to Verify

Check if Vulnerable:

Check Android version in Settings > About phone > Android version. If it's Android 13 without June 2023 security patch, device is vulnerable.

Check Version:

adb shell getprop ro.build.version.release && adb shell getprop ro.build.version.security_patch

Verify Fix Applied:

Verify Android version is 13 with security patch level June 5, 2023 or later in Settings > About phone > Android security update.

📡 Detection & Monitoring

Log Indicators:

  • Unexpected lock task mode exits
  • DevicePolicyManager logs showing unauthorized lock task changes

Network Indicators:

  • None - local vulnerability only

SIEM Query:

source="android_logs" AND ("LockTaskController" OR "startLockTaskMode") AND ("bypass" OR "unauthorized")

🔗 References

📤 Share & Export