The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-39793

CVE-2021-39793: Google Android Privilege Escalation Flaw

CVE-2021-39793 is a privilege escalation vulnerability in Google Android kernel affecting the Mali GPU driver. An out of bounds write flaw enables local attackers to gain elevated privileges. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 4, 2026

CVE-2021-39793 Overview

CVE-2021-39793 is an out-of-bounds write vulnerability in the ARM Mali GPU kernel driver affecting Android devices. The flaw exists in the kbase_jd_user_buf_pin_pages function within mali_kbase_mem.c, where a logic error in the code allows for memory corruption. This vulnerability enables local privilege escalation without requiring any additional execution privileges or user interaction.

Critical Impact

This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild. Attackers can leverage this flaw to gain elevated privileges on affected Android devices.

Affected Products

  • Google Android (all versions with vulnerable Mali GPU kernel driver)
  • Android devices using ARM Mali GPUs
  • Android kernel with affected Mali driver components

Discovery Timeline

  • 2022-03-16 - CVE-2021-39793 published to NVD
  • 2025-10-23 - Last updated in NVD database

Technical Details for CVE-2021-39793

Vulnerability Analysis

This vulnerability stems from a logic error in the Mali GPU kernel driver's memory management subsystem. The kbase_jd_user_buf_pin_pages function is responsible for pinning user buffer pages in memory for GPU operations. Due to a coding error in the bounds checking logic, the function can write data beyond the allocated buffer boundaries.

The out-of-bounds write condition occurs during the handling of user-supplied buffer requests. When processing these requests, the driver fails to properly validate the boundaries, allowing memory corruption in adjacent kernel memory regions. Since this vulnerability exists at the kernel driver level, successful exploitation grants attackers kernel-level privileges.

The local attack vector means that an attacker must have some level of access to the device, but the lack of required privileges and user interaction makes this vulnerability particularly dangerous for exploitation through malicious applications.

Root Cause

The root cause is a logic error (CWE-787: Out-of-bounds Write) in the kbase_jd_user_buf_pin_pages function within the Mali GPU kernel driver. The function improperly calculates buffer boundaries when pinning user pages for GPU operations. This calculation error allows writes to memory locations outside the intended buffer, leading to kernel memory corruption and potential code execution with elevated privileges.

Attack Vector

The attack vector is local, requiring an attacker to execute code on the target Android device. This can be achieved through:

  1. A malicious application installed on the device that interacts with the Mali GPU driver through standard Android APIs
  2. The application crafts specific GPU memory requests that trigger the vulnerable code path
  3. By exploiting the out-of-bounds write, the attacker can corrupt kernel memory structures
  4. This corruption can be leveraged to escalate privileges from a normal application context to kernel-level access

The vulnerability is particularly concerning because no special permissions are needed beyond what a standard Android application possesses, and no user interaction is required to trigger the exploit.

Detection Methods for CVE-2021-39793

Indicators of Compromise

  • Unusual GPU driver activity or crashes in system logs related to Mali kernel module
  • Unexpected privilege escalation events from standard applications
  • Anomalous memory access patterns in kernel space associated with mali_kbase_mem.c
  • Applications making suspicious ioctl calls to the Mali GPU driver

Detection Strategies

  • Monitor for applications attempting to interact with the Mali GPU driver in unusual patterns
  • Implement kernel-level monitoring for out-of-bounds memory access attempts
  • Deploy mobile threat detection solutions capable of identifying privilege escalation attempts
  • Analyze application behavior for signs of kernel exploitation techniques

Monitoring Recommendations

  • Enable detailed logging for GPU driver operations where available
  • Monitor for new applications requesting GPU access without apparent legitimate need
  • Implement behavioral analysis to detect post-exploitation activity such as unauthorized data access
  • Review security logs for evidence of kernel memory corruption or instability

How to Mitigate CVE-2021-39793

Immediate Actions Required

  • Update affected Android devices to the March 2022 security patch level or later immediately
  • Review installed applications and remove any suspicious or unnecessary apps
  • Enable automatic security updates on all Android devices
  • Consider restricting installation of applications from unknown sources

Patch Information

Google addressed this vulnerability in the Android Security Bulletin March 2022. The patch corrects the logic error in the kbase_jd_user_buf_pin_pages function to ensure proper bounds checking when pinning user buffer pages.

Organizations should verify that all Android devices in their environment are updated to at least the 2022-03-01 security patch level. This can be verified in device settings under "About phone" > "Android security patch level".

For additional information on this actively exploited vulnerability, refer to the CISA Known Exploited Vulnerabilities Catalog.

Workarounds

  • Limit application installation to trusted sources only (Google Play Store with Play Protect enabled)
  • Implement mobile device management (MDM) solutions to enforce security policies
  • Consider enterprise mobility management to restrict vulnerable devices from accessing sensitive resources
  • Isolate devices that cannot be immediately patched from critical network resources
bash
# Verify Android security patch level via ADB
adb shell getprop ro.build.version.security_patch
# Expected output should be 2022-03-01 or later

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechAndroid

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-787
  • Technical References
  • CISA Known Exploited Vulnerabilities Catalog
  • Vendor Resources
  • Android Security Bulletin March 2022
  • Related CVEs
  • CVE-2026-20990: Secure Folder Privilege Escalation Flaw

  • CVE-2023-21102: Google Android Privilege Escalation Flaw

  • CVE-2021-0799: Android Privilege Escalation Vulnerability

  • CVE-2020-0096: Google Android Privilege Escalation Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English