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-40652 Overview
CVE-2024-40652 is a local privilege escalation vulnerability in the Android Settings application. The flaw resides in the onCreate method of SettingsHomepageActivity.java and stems from a missing permission check. An attacker with physical access to a device undergoing provisioning can reach the Settings app before setup completes. This bypass enables elevation of privilege without requiring additional execution rights. The issue affects Android versions 12, 12L, 13, and 14, and was addressed in the Android Security Bulletin for September 2024.
Critical Impact
A local attacker with physical access to a provisioning device can access Settings without authorization, enabling privilege escalation that undermines device setup controls and Factory Reset Protection.
Affected Products
- Google Android 12.0
- Google Android 12.1 (12L)
- Google Android 13.0
- Google Android 14.0
Discovery Timeline
- 2024-09-11 - CVE-2024-40652 published to the National Vulnerability Database (NVD)
- 2024-09-01 - Fix published in the Android Security Bulletin for September 2024
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-40652
Vulnerability Analysis
The vulnerability is classified as a Missing Authorization issue [CWE-862]. The SettingsHomepageActivity component is responsible for launching the primary Settings UI on Android devices. During the device provisioning phase, which runs after a factory reset or on first boot, access to Settings should be restricted to prevent circumvention of setup wizard checks such as Factory Reset Protection (FRP) and account enrollment.
Because onCreate does not verify the device's provisioning state before rendering the Settings homepage, an unauthenticated local actor can reach configuration surfaces that would normally be gated. From this entry point, an attacker can navigate to privileged configuration menus, modify system settings, or bypass setup wizard flows intended to validate ownership.
Root Cause
The root cause is the absence of a permission or state check at the entry point of SettingsHomepageActivity. The activity assumes that provisioning gating is enforced upstream by the launcher or setup wizard. When an attacker reaches the activity through an alternative intent path during provisioning, no authorization logic rejects the request. The fix, published in commit 2909433f7d59dcdd0c74044b1c8e9f48927193dc, introduces the missing check inside the activity's lifecycle.
Attack Vector
Exploitation requires local access to a device in the provisioning state and user interaction to trigger the vulnerable code path. The attack does not require privileges or valid credentials. A likely scenario involves a device recovered after a factory reset where Factory Reset Protection should bind access to the previous Google account. By invoking the Settings homepage activity through accessibility services, notifications, or crafted intents during setup, the attacker reaches configuration options that enable persistence, Wi-Fi reconfiguration, or disablement of security controls, resulting in local privilege escalation.
No public proof-of-concept exploit is listed in the enriched data, and the vulnerability is not tracked on the CISA Known Exploited Vulnerabilities catalog.
Detection Methods for CVE-2024-40652
Indicators of Compromise
- Unexpected launches of com.android.settings/.homepage.SettingsHomepageActivity while a device is in the DEVICE_PROVISIONED=0 state.
- Changes to Wi-Fi, account, or device administrator configuration recorded prior to the completion of the Setup Wizard.
- Factory-reset devices that enter a usable state without completing the expected Google account binding step.
Detection Strategies
- Review enterprise mobility management (EMM) and mobile device management (MDM) logs for post-reset enrollment anomalies, including devices that skip the setup wizard entirely.
- Correlate Android system logs for ActivityTaskManager events referencing SettingsHomepageActivity during the provisioning window.
- Audit fleet inventory for devices running Android 12 through 14 without the September 2024 security patch level (2024-09-01 or later).
Monitoring Recommendations
- Enforce MDM policies that alert when a managed device re-enrolls or deviates from the expected zero-touch provisioning sequence.
- Monitor for devices reporting a security patch level older than 2024-09-01 and flag them for update or quarantine.
- Track physical device custody for lost or stolen inventory, since exploitation requires hands-on access.
How to Mitigate CVE-2024-40652
Immediate Actions Required
- Apply the Android security patch level 2024-09-01 or later to all affected devices across Android 12, 12L, 13, and 14.
- Restrict physical access to provisioning-state devices, including returns, refurbished stock, and shared loaners.
- Validate that Factory Reset Protection is active and bound to a controlled account on all managed devices.
Patch Information
Google addressed CVE-2024-40652 in the Android Security Bulletin September 2024. The upstream code change is available in the AOSP commit 2909433f7d59dcdd0c74044b1c8e9f48927193dc, which adds the missing permission check to SettingsHomepageActivity. Device OEMs incorporate the fix into their monthly security maintenance releases.
Workarounds
- Complete the Setup Wizard on every provisioned device before releasing it to end users, closing the window in which the vulnerability is reachable.
- Deploy zero-touch enrollment or Android Enterprise provisioning to minimize manual intervention during setup.
- Decommission or re-image unpatched devices that cannot receive the September 2024 or later security update.
# Verify the Android security patch level on a connected device
adb shell getprop ro.build.version.security_patch
# Expected output: 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

