CVE-2021-1048 — Android Kernel Use-After-Free Vulnerability

CVE-2021-1048

Android Kernel — Use-After-Free Enabling Local Privilege Escalation from App to Kernel; Used in Targeted Exploit Chains Against Android Devices

What is the Android Kernel?

The Android operating system runs on a modified Linux kernel that manages hardware resources, process isolation, and security enforcement for all Android devices. The kernel implements Android's security boundaries including app sandboxing, SELinux enforcement, and privilege separation. Kernel use-after-free vulnerabilities are among the most serious Android security bugs because exploiting them allows an attacker to break out of the Android application sandbox and gain kernel-level code execution — bypassing all application-level security controls. Android kernel UAF vulnerabilities are typically used as the second stage in mobile exploit chains: a browser or app vulnerability provides initial code execution, then a kernel UAF is used for full device compromise.

Overview

CVE-2021-1048 is a use-after-free vulnerability (CWE-416) in the Android kernel that allows a local application with low privileges to escalate to kernel-level code execution. The vulnerability involves a kernel object being freed while a reference to it remains, allowing a controlled heap allocation to later occupy the freed memory and corrupt adjacent kernel structures. Google patched this in the December 2021 Android Security Bulletin. CISA added it to KEV in May 2022, reflecting confirmed in-the-wild exploitation in targeted attack chains — most likely commercial spyware chains or targeted espionage tooling.

Affected Versions

Product Vulnerable Fixed
Android devices before December 2021 security patch level Yes 2021-12-05 patch level or later

Technical Details

  • Root cause: Use-after-free (CWE-416) in the Android Linux kernel — a kernel subsystem frees a memory object while a reference to it persists in another kernel path, allowing heap spray techniques to place attacker-controlled data at the freed location
  • Local execution required: The attacker must have code execution in an Android application (AV:L, PR:L) — typically achieved by chaining with a browser/WebView zero-day or malicious app installation
  • No user interaction needed after initial execution — the privilege escalation operates silently once an app is running
  • Kernel code execution impact: A successful exploit gains arbitrary kernel read/write access, allowing: disabling SELinux, bypassing Android's app sandbox, installing persistent spyware, accessing the keystore, and achieving full device control
  • Chain position: Android kernel UAF bugs appear as the second stage in complete device exploit chains — the first stage provides app-level code execution, the second stage breaks out of the sandbox

Discovery

Reported to Google by security researchers. The CISA KEV addition in May 2022 (five months after the patch) indicates exploitation was discovered in the wild, likely in targeted surveillance tooling.

Exploitation Context

Android kernel privilege escalation bugs are highly valued by commercial mobile spyware vendors (Pegasus, Predator, Hermit, and others) and nation-state mobile exploitation teams because they enable full device control with persistence. The Local attack vector (AV:L) means this bug is used as the second stage in a chain — not a standalone remote exploit. Users most at risk are those targeted by government-sponsored surveillance: journalists, activists, dissidents, political figures.

Remediation

  1. Apply the December 2021 Android Security Bulletin patches — ensure device security patch level is 2021-12-05 or later
  2. Enable automatic security updates on Android devices via Settings → System → System Update
  3. For organizations managing Android fleets: enforce minimum security patch level via Android Enterprise/MDM policies
  4. If targeted surveillance is suspected: use Amnesty International's MVT or Google's Play Protect forensics capabilities to check for indicators of compromise

Key Details

PropertyValue
CVE ID CVE-2021-1048
Vendor / Product Android — Kernel
NVD Published2021-12-15
NVD Last Modified2025-10-23
CVSS 3.1 Score7.8
CVSS 3.1 VectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-416 find similar ↗
CISA KEV Added2022-05-23
CISA KEV Deadline2022-06-13
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-06-13. Apply updates per vendor instructions.

Timeline

DateEvent
2021-12-06Android Security Bulletin December 2021 published; CVE-2021-1048 patched
2021-12-15CVE published
2022-05-23Added to CISA Known Exploited Vulnerabilities catalog
2022-06-13CISA BOD 22-01 remediation deadline

References

ResourceType
Android Security Bulletin — December 2021 Vendor Advisory
NVD — CVE-2021-1048 Vulnerability Database
CISA KEV Catalog Entry US Government