Skip to main content
Vulnerability Database/CVE-2024-40654

CVE-2024-40654: Google Android Privilege Escalation Flaw

CVE-2024-40654 is a privilege escalation vulnerability in Google Android caused by a confused deputy issue that allows local attackers to bypass permissions. This article covers technical details, affected versions, exploitation requirements, and mitigation strategies.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-40654 Overview

CVE-2024-40654 is a local privilege escalation vulnerability affecting Google Android. The flaw stems from a confused deputy condition in multiple locations within the Android Settings application. An attacker with local access can bypass permission checks to gain elevated privileges without requiring additional execution rights. Exploitation requires user interaction, which limits remote weaponization but still enables malicious applications to escalate privileges once installed. The weakness is classified under [CWE-276: Incorrect Default Permissions]. Google addressed the issue in the September 2024 Android Security Bulletin with a patch to the Settings package.

Critical Impact

A local attacker can bypass Android permission enforcement through a confused deputy flaw in the Settings app, achieving privilege escalation with full confidentiality, integrity, and availability impact.

Affected Products

  • Google Android 12.0
  • Google Android 12.1
  • Google Android 13.0
  • Google Android 14.0

Discovery Timeline

  • 2024-09-11 - CVE-2024-40654 published to the National Vulnerability Database
  • 2024-09-01 - Fix published in Android Security Bulletin September 2024
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-40654

Vulnerability Analysis

The vulnerability is a confused deputy condition in the Android Settings application. A confused deputy occurs when a privileged component performs an action on behalf of a less-privileged caller without validating whether the caller has the authority to request that action. In this case, the Settings app acts on untrusted inputs and executes operations with its own elevated permissions, allowing a lower-privileged app to influence privileged behavior.

Because the Settings app runs with system-level privileges on Android, any flaw that allows an untrusted caller to coerce it into performing sensitive operations collapses the app sandbox boundary. The result is local privilege escalation with high confidentiality, integrity, and availability impact.

Root Cause

The root cause is improper permission enforcement [CWE-276] across multiple code paths in the Settings package. The affected flows did not verify that the originating caller held the permissions required for the privileged action being requested. Google's fix, published in commit f1d0079c91734168c150f839168544f407b17b06, adjusts the Settings app to properly validate caller authority before performing the sensitive operations.

Attack Vector

Exploitation is local and requires user interaction. A malicious application installed on the device constructs an intent or interaction that targets the vulnerable Settings flows. The user must perform an action, such as approving a dialog or tapping a UI element, that triggers the privileged operation. Once triggered, the Settings app performs the operation on behalf of the attacker without enforcing the required permissions, resulting in privilege escalation.

The vulnerability manifests in the Settings application's intent handling. See the Google Settings App Update and the Android Security Bulletin September 2024 for technical details.

Detection Methods for CVE-2024-40654

Indicators of Compromise

  • Unexpected changes to Settings-managed configuration such as device admin assignments, account state, or permission grants without clear user action.
  • Third-party applications issuing intents targeted at com.android.settings components outside normal usage patterns.
  • Mobile Device Management (MDM) alerts indicating privilege escalation or permission state changes on Android 12 through 14 devices lacking the September 2024 patch level.

Detection Strategies

  • Enforce a minimum Android security patch level of 2024-09-01 through MDM compliance policies and quarantine devices below that level.
  • Review installed applications on affected Android versions for apps requesting unusual intent extras directed at Settings activities.
  • Correlate mobile endpoint telemetry with authentication and access logs to identify sessions where elevated permissions appeared without a corresponding user grant.

Monitoring Recommendations

  • Monitor Android security patch level reporting across the mobile fleet and flag devices on Android 12.x, 13.0, or 14.0 that have not received the September 2024 bulletin fix.
  • Track installation of newly sideloaded or unknown-source applications on affected devices and correlate with subsequent configuration changes.
  • Ingest mobile endpoint and MDM telemetry into a centralized data lake to enable cross-device correlation of permission-change events.

How to Mitigate CVE-2024-40654

Immediate Actions Required

  • Apply the September 2024 Android security patch to all affected devices running Android 12.0, 12.1, 13.0, and 14.0.
  • Enforce patch compliance through MDM, blocking network and corporate resource access from devices below patch level 2024-09-01.
  • Restrict installation of applications from unknown sources on managed devices to reduce the local attack surface.
  • Audit installed applications for untrusted or unnecessary apps that request broad intent capabilities.

Patch Information

Google released the fix as part of the Android Security Bulletin September 2024. The source-level change is tracked in the Settings package commit f1d0079c91734168c150f839168544f407b17b06. Device manufacturers distribute the patch through their standard update channels; the exact rollout date varies by OEM and carrier. Confirm the device reports a security patch level of 2024-09-01 or later.

Workarounds

  • No vendor-supplied workaround exists; apply the official patch as soon as the OEM makes it available.
  • Limit user interaction with untrusted applications and prompts until the device is updated, since exploitation requires user interaction.
  • Use work profile separation on corporate devices to isolate sensitive data from potentially malicious personal applications.
bash
# Verify the Android security patch level on a managed device via ADB
adb shell getprop ro.build.version.security_patch
# Expected output for patched devices: 2024-09-01 or later

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.