CVE-2021-39807

7.8 HIGH

📋 TL;DR

This vulnerability allows a user logged into the Guest account on Android devices to enable NFC functionality without proper permissions. It enables local privilege escalation from the Guest account without requiring user interaction. Affects Android 10 through 12L devices.

💻 Affected Systems

Products:
  • Android
Versions: Android 10, 11, 12, 12L
Operating Systems: Android
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects devices with Guest account functionality enabled and NFC hardware present.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Guest user gains unauthorized NFC access enabling data exfiltration, payment system manipulation, or physical access control bypass via NFC tags.

🟠

Likely Case

Guest user enables NFC to read/write data from NFC tags, potentially accessing sensitive information or performing unauthorized NFC transactions.

🟢

If Mitigated

Guest account remains restricted from NFC functionality as intended, maintaining proper security boundaries between user accounts.

🌐 Internet-Facing: LOW - This is a local privilege escalation requiring physical or local access to the device.
🏢 Internal Only: MEDIUM - In shared device environments, malicious guest users could exploit this to access NFC capabilities they shouldn't have.

🎯 Exploit Status

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

Exploitation requires Guest account access but no user interaction. The vulnerability is in the permission check logic of SecureNfcEnabler.java.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Android Security Bulletin April 2022 patches

Vendor Advisory: https://source.android.com/security/bulletin/2022-04-01

Restart Required: Yes

Instructions:

1. Apply April 2022 Android security patch. 2. Update device to latest Android version. 3. For enterprise devices, push updates via MDM. 4. For personal devices, check for system updates in Settings.

🔧 Temporary Workarounds

Disable Guest Account

android

Remove Guest account functionality to prevent exploitation

adb shell settings put global guest_user_enabled 0

Disable NFC

android

Turn off NFC functionality system-wide

adb shell settings put secure nfc_on 0

🧯 If You Can't Patch

  • Disable Guest account functionality on all affected devices
  • Implement device usage policies restricting Guest account access to sensitive devices

🔍 How to Verify

Check if Vulnerable:

Check Android version: Settings > About phone > Android version. If version is 10, 11, 12, or 12L without April 2022 patches, device is vulnerable.

Check Version:

adb shell getprop ro.build.version.release

Verify Fix Applied:

Verify Android security patch level includes April 2022 or later: Settings > About phone > Android security patch level.

📡 Detection & Monitoring

Log Indicators:

  • Guest account enabling NFC without proper permissions
  • Unexpected NFC activation events from Guest accounts

Network Indicators:

  • NFC-related network traffic from Guest accounts

SIEM Query:

source="android_logs" AND (event="nfc_enabled" OR event="secure_nfc") AND user="guest"

🔗 References

📤 Share & Export