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-0507

CVE-2021-0507: Google Android Bluetooth RCE Vulnerability

CVE-2021-0507 is a remote code execution vulnerability in Google Android Bluetooth that allows attackers to execute code over Bluetooth without user interaction. This post covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-0507 Overview

CVE-2021-0507 is an out-of-bounds write vulnerability in the Android Bluetooth stack, specifically in the handle_rc_metamsg_cmd function of btif_rc.cc. This memory corruption flaw stems from a missing bounds check that can be exploited to achieve remote code execution over Bluetooth without requiring any user interaction or additional execution privileges.

Critical Impact

This vulnerability enables remote code execution over Bluetooth on affected Android devices without user interaction, potentially allowing attackers within Bluetooth range to fully compromise the device.

Affected Products

  • Google Android 8.1
  • Google Android 9.0
  • Google Android 10.0
  • Google Android 11.0

Discovery Timeline

  • 2021-06-21 - CVE-2021-0507 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-0507

Vulnerability Analysis

The vulnerability resides in the Android Bluetooth Interface (BTIF) subsystem, specifically within the AVRCP (Audio/Video Remote Control Profile) message handling code. The handle_rc_metamsg_cmd function in btif_rc.cc processes metadata commands received over Bluetooth connections but fails to properly validate the bounds of incoming data before writing it to memory buffers.

This out-of-bounds write condition (CWE-787) occurs when the function processes specially crafted AVRCP metadata messages. Without proper validation, an attacker can supply malformed data that exceeds expected buffer boundaries, leading to memory corruption in the Bluetooth service process.

The vulnerability is particularly dangerous because it requires no user interaction and operates at the system level within the Bluetooth stack. An attacker within adjacent network range (Bluetooth proximity) can send malicious packets to trigger the vulnerability.

Root Cause

The root cause is a missing bounds check in the handle_rc_metamsg_cmd function when processing AVRCP remote control metadata commands. The function accepts incoming Bluetooth message data without validating that the data length falls within the expected buffer size, allowing writes beyond allocated memory regions. This is a classic out-of-bounds write vulnerability stemming from insufficient input validation in the Bluetooth protocol handling code.

Attack Vector

The attack is conducted over Bluetooth from an adjacent network position, meaning the attacker must be within Bluetooth radio range of the target device (typically within 10-100 meters depending on Bluetooth class). The attack requires:

  1. The attacker establishes or hijacks a Bluetooth connection with the target Android device
  2. The attacker sends specially crafted AVRCP metadata messages designed to trigger the out-of-bounds write
  3. The malformed data overwrites critical memory structures in the Bluetooth service
  4. Successful exploitation leads to arbitrary code execution with the privileges of the Bluetooth service

No user interaction is required, and no special privileges are needed on the attacker's side. The victim's device simply needs to have Bluetooth enabled and be within range.

Detection Methods for CVE-2021-0507

Indicators of Compromise

  • Unexpected crashes or restarts of the Bluetooth service (com.android.bluetooth)
  • Anomalous Bluetooth connection attempts from unknown devices
  • Unusual AVRCP metadata traffic patterns in Bluetooth logs
  • Memory corruption signatures in system crash dumps related to btif_rc.cc

Detection Strategies

  • Monitor Android system logs for Bluetooth service crashes with stack traces pointing to handle_rc_metamsg_cmd or btif_rc.cc
  • Implement Bluetooth traffic analysis to detect malformed AVRCP messages with abnormal payload sizes
  • Deploy endpoint detection solutions capable of monitoring Bluetooth stack integrity
  • Utilize Mobile Device Management (MDM) solutions to track device security patch levels

Monitoring Recommendations

  • Enable verbose Bluetooth logging on managed devices for forensic analysis capabilities
  • Implement network-level Bluetooth monitoring in high-security environments
  • Configure alerting for repeated Bluetooth service failures on enterprise devices
  • Maintain an inventory of device patch levels to identify vulnerable Android versions

How to Mitigate CVE-2021-0507

Immediate Actions Required

  • Apply the Android security update from the June 2021 Security Bulletin immediately
  • Disable Bluetooth on devices that cannot be immediately patched if they are in high-risk environments
  • Restrict Bluetooth pairing to known devices only using device management policies
  • Consider implementing Bluetooth discovery mode restrictions on vulnerable devices

Patch Information

Google addressed this vulnerability in the Android Security Bulletin June 2021. The patch adds proper bounds checking to the handle_rc_metamsg_cmd function to prevent out-of-bounds memory writes. The vulnerability is tracked internally by Google as Android ID A-181860042.

Organizations should ensure all Android devices are updated to security patch level 2021-06-01 or later. For devices that can no longer receive security updates, consider device replacement or implementing compensating controls.

Workarounds

  • Disable Bluetooth entirely on devices that cannot be patched
  • Enable Bluetooth only when actively needed and disable it immediately after use
  • Configure devices to be non-discoverable and reject pairing requests from unknown devices
  • Implement physical security controls to prevent proximity-based Bluetooth attacks in sensitive areas
  • Use MDM policies to enforce Bluetooth usage restrictions on managed devices
bash
# Android ADB command to disable Bluetooth (requires root or system access)
adb shell settings put global bluetooth_on 0

# Check current Android security patch level
adb shell getprop ro.build.version.security_patch

# Expected output for patched devices: 2021-06-01 or later

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGoogle Android

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability1.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Vendor Resources
  • Android Security Bulletin June 2021
  • Related CVEs
  • CVE-2026-0114: Google Android Modem RCE Vulnerability

  • CVE-2026-0116: Google Android RCE Vulnerability

  • CVE-2026-0120: Google Android Modem RCE Vulnerability

  • CVE-2026-0122: Google Android RCE Vulnerability
Default Legacy - Prefooter | 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