CVE-2021-0306
NixOS vulnerability analysis and mitigation

Overview

In the Android operating system's PermissionManagerService.java component, specifically in the addAllPermissions function, a vulnerability was discovered that could allow unauthorized permission access during major Android version upgrades. The vulnerability, identified as CVE-2021-0306, affects Android versions 8.0, 8.1, 9, 10, and 11. This security flaw enables applications to gain the android.permission.ACTIVITY_RECOGNITION permission without requiring user confirmation (Android Bulletin).

Technical details

The vulnerability exists in the permission management system of Android, specifically affecting the addAllPermissions functionality within PermissionManagerService.java. It allows for a permissions bypass during major Android version upgrades, potentially leading to unauthorized access to the ACTIVITY_RECOGNITION permission. The vulnerability requires no additional execution privileges and can be exploited without user interaction (CVE Mitre).

Impact

The vulnerability could lead to local privilege escalation, allowing malicious applications to gain sensitive permissions without user consent. This bypass specifically targets the ACTIVITY_RECOGNITION permission, which could potentially allow unauthorized access to user activity data (Android Bulletin).

Exploitability

The vulnerability can be exploited without requiring user interaction or additional execution privileges. The exploit can be triggered during the process of upgrading between major Android versions (CVE Mitre).

Mitigation and workarounds

The vulnerability was addressed in the January 2021 Android security bulletin. Users should ensure their Android devices are updated with the latest security patches to mitigate this vulnerability (Android Bulletin).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2025-49506HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management