CVE-2022-20420: Open Source Vulnerability in platform/frameworks/base

platform/frameworks/base Updated 02 Oct 2025

Summary

01/10/2022
Yes i
High
Not published

CVE-2022-20420: In getBackgroundRestrictionExemptionReason of AppRestrictionController.java, there is a possible way to bypass device policy restrictions due to a logic error in the code. Affects platform/frameworks/base versions >= 13:0, < 13:2022-10-01. Fixed in 13:2022-10-01. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The platform/frameworks/base package is a fundamental component of the Android ecosystem. It provides core functionalities and services for the Android operating system. This package is responsible for managing various system-level tasks, including battery optimization. It includes the FGS Task Manager, which allows users to control background restrictions for different apps.

Vulnerability Detail

The FGS Task Manager in the platform/frameworks/base package has a logic error in the code that allows bypassing device policy restrictions. Specifically, the getBackgroundRestrictionExemptionReason function in AppRestrictionController.java incorrectly displays a Stop button for apps that have been whitelisted to be exempt from battery optimization. This vulnerability can be exploited locally, leading to a local escalation of privilege without requiring additional execution privileges. It is important to note that user interaction is not needed for exploitation.

How To Fix

Minimum fixed version

13:2022-10-01

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The platform/frameworks/base package in Android is vulnerable to a logic error that allows bypassing device policy restrictions. This can lead to a local escalation of privilege without requiring additional execution privileges. It is crucial to apply the provided fix to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for platform/frameworks/base →

Share this vulnerability

FAQ

This vulnerability allows an attacker to bypass device policy restrictions and escalate privileges locally. It can potentially lead to unauthorized access and control over the affected device.

No, user interaction is not needed for exploitation of this vulnerability.

No, the vulnerability was introduced in version 13:0 and fixed in version 13:2022-10-01 of the package.

There is no known exploit available at the moment.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

Related vulnerabilities

Recent vulnerabilities recorded for platform/frameworks/base.

How To Fix

Minimum fixed version

13:2022-10-01

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback