CVE-2021-39691: WindowManager.LayoutParams.FLAG_SLIPPERY allows for bypass of MotionEvent.FLAG_WINDOW_IS_PARTIALLY_OBSCURED

platform/frameworks/base Updated 02 Oct 2025

Summary

01/06/2022
Yes i
High
Not published

CVE-2021-39691: In WindowManager, there is a possible tapjacking attack due to an incorrect window flag when processing user input. Affects platform/frameworks/base across 3 version ranges.

>= 11:0, < 11:2022-06-01 >= 12:0, < 12:2022-06-01 >= 12L-next:0, < 12L-next:2022-06-01

Fixed in 12L-next:2022-06-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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The WindowManager is a class in the Android framework that provides access to the system window manager. It is responsible for managing the layout and appearance of windows on the screen. The WindowManager.LayoutParams.FLAG_SLIPPERY flag is used to indicate that a window should be slippery, which means that it can be dragged off the screen. This flag is typically used for system windows that are not meant to be interacted with by the user. However, due to an incorrect window flag when processing user input, a tapjacking attack is possible, allowing an attacker to manipulate user input and potentially escalate privileges.

Vulnerability Detail

The vulnerability (CVE-2021-39691) arises from an incorrect window flag in the WindowManager when processing user input. By exploiting this vulnerability, an attacker can perform a tapjacking attack, where they overlay a malicious window on top of a legitimate window and trick the user into interacting with the malicious window instead. This can lead to local escalation of privilege, as the attacker can perform actions on behalf of the user without their knowledge or consent. The vulnerability affects Android versions 10, 11, and 12.

How To Fix

Minimum fixed version

12L-next:2022-06-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 known workaround for this vulnerability. It is recommended to apply the fix provided by the Android security update.

Conclusion

The WindowManager vulnerability (CVE-2021-39691) allows for a tapjacking attack on Android devices running versions 10, 11, and 12. This can lead to local escalation of privilege and unauthorized actions performed on behalf of the user. It is crucial to update to the latest version of Android that includes the 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

WindowManager is a class in the Android framework that manages the layout and appearance of windows on the screen.

Tapjacking is a type of attack where an attacker overlays a malicious window on top of a legitimate window and tricks the user into interacting with the malicious window instead.

This vulnerability allows an attacker to perform a tapjacking attack and potentially escalate privileges on the affected Android device.

Android versions 10, 11, and 12 are affected by this vulnerability.

No, there is no known workaround for this vulnerability. It is recommended to apply the fix provided by the Android security update.

Related vulnerabilities

Recent vulnerabilities recorded for platform/frameworks/base.

How To Fix

Minimum fixed version

12L-next:2022-06-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