CVE-2021-0565

7.0 HIGH

📋 TL;DR

This vulnerability allows local privilege escalation on Android 11 devices through a race condition in the audio subsystem. Attackers can exploit a use-after-free bug in AudioStream.cpp to gain elevated privileges without user interaction. Only Android 11 devices with unpatched June 2021 security updates are affected.

💻 Affected Systems

Products:
  • Android
Versions: Android 11 only
Operating Systems: Android
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects Android 11; Pixel devices specifically mentioned in bulletins but likely affects all Android 11 implementations.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete device compromise allowing attackers to execute arbitrary code with system privileges, potentially installing persistent malware or accessing sensitive data.

🟠

Likely Case

Local privilege escalation allowing malicious apps to break out of sandbox and access other apps' data or system resources.

🟢

If Mitigated

No impact if patched with June 2021 Android security update; otherwise limited to local attackers with physical or app-based access.

🌐 Internet-Facing: LOW - Requires local access to device, cannot be exploited remotely over internet.
🏢 Internal Only: MEDIUM - Malicious apps or users with physical access could exploit locally, but requires specific conditions.

🎯 Exploit Status

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

Race condition exploitation requires precise timing; no public exploits known but technically sophisticated attackers could develop them.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Android Security Patch Level June 2021 or later

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

Restart Required: Yes

Instructions:

1. Check for Android updates in Settings > System > Advanced > System update. 2. Install June 2021 or later security update. 3. Reboot device after installation.

🔧 Temporary Workarounds

No effective workarounds

all

This is a kernel-level vulnerability requiring patching; no configuration changes can mitigate it.

🧯 If You Can't Patch

  • Replace affected devices with updated Android versions
  • Isolate vulnerable devices from sensitive networks and data

🔍 How to Verify

Check if Vulnerable:

Check Settings > About phone > Android version (must be 11) and Security patch level (must be before June 2021).

Check Version:

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

Verify Fix Applied:

Verify Security patch level shows June 2021 or later in Settings > About phone.

📡 Detection & Monitoring

Log Indicators:

  • Kernel crash logs mentioning AudioStream.cpp or wrapUserThread
  • Unexpected privilege escalation attempts in audit logs

Network Indicators:

  • None - purely local exploitation

SIEM Query:

Search for: 'AudioStream.cpp' OR 'wrapUserThread' OR 'A-174801970' in system logs

🔗 References

📤 Share & Export