CVE-2026-21123
Executive Summary
CVE-2026-21123 is an improper privilege management vulnerability in the Android Locksettings component, affecting devices prior to the October 2026 Security Maintenance Release (SMR). A local attacker with root privilege can exploit this flaw to access data belonging to a tied profile while the device is in the Before First Unlock (BFU) state. Successful exploitation results in unauthorized disclosure of sensitive user data that should remain inaccessible until the device is unlocked, undermining the security guarantees of Android's multi-profile and encryption architecture.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Technical Analysis
The vulnerability resides in the Locksettings subsystem, which manages device lock credentials, user authentication states, and profile‑tied data access policies. The NVD description explicitly states that the issue is an "Improper privilege management" flaw—categorized under CWE‑269 (Improper Privilege Management)—that allows a local attacker who already possesses root privileges to access data of a tied profile "in before first unlock."
In Android's security model, the Before First Unlock (BFU) state occurs after a device reboot but before the user enters their lock screen credential for the first time. During BFU, most user data is encrypted with keys derived from the user's credential and is intentionally inaccessible, even to privileged processes. The vulnerability indicates that the Locksettings component fails to enforce this access restriction correctly for tied profiles (e.g., a work profile managed by an enterprise or a secondary user profile linked to a primary account). A local root attacker can therefore bypass the intended privilege check and read data that should be protected by the BFU encryption state.
The attack surface is local: the attacker must already have root privileges on the device. No remote vector is described. The flaw class is a logic error in privilege management—likely a missing or incorrect access control check when handling profile‑tied data during the BFU window. No specific function names, class names, or file paths are provided in the NVD description, so the exact implementation detail cannot be confirmed. The vulnerability is patched in the SMR Oct‑2026 Release 1, indicating that Google addressed the improper privilege management logic in that monthly security update.
Exploitation Scenarios
Reconnaissance/target identification: An attacker gains local root access to an Android device through a separate vulnerability or by physical possession of an unlocked bootloader device. The attacker identifies that the device is in the BFU state (e.g., after a reboot but before the first unlock) and that a tied profile exists (work profile or secondary user).
Triggering the flaw class: The attacker, leveraging root privileges, interacts with the Locksettings component—likely by invoking a privileged system service or command that queries profile‑tied data. Due to improper privilege management, the component does not properly restrict access based on the BFU state or the caller's actual authorization level. The attacker bypasses the intended "before first unlock" access control.
Payload/execution method: At the vulnerability‑class level, the attacker executes a local command or script (e.g., via adb shell with root, or a malicious app with root) that requests access to the tied profile's data. Because the privilege check is flawed, the data is returned. No specific API endpoints or parameters are mentioned in the description; the attack relies on the component's failure to enforce privilege separation.
Post‑exploitation impact: The attacker gains unauthorized read access to the tied profile's data—potentially sensitive files, communications, or application data—while the device is in BFU. This bypasses the encryption protections that normally require user authentication, leading to a confidentiality breach. The attacker could exfiltrate this data for further intelligence gathering or lateral movement within an enterprise environment.
No public PoC or exploit code is available; the attack chain is inferred from the vulnerability class and the NVD description.
Impact Assessment
The vulnerability has a high confidentiality impact (C:H) as it allows unauthorized access to tied profile data. Integrity and availability impacts are not indicated (I:N, A:N). The attack requires local access and high privileges (PR:H) and does not require user interaction (UI:N). The scope is unchanged (S:U). The CVSS vector CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N yields a base score of 4.4 (Medium). However, the actual risk is elevated for enterprise environments because the flaw undermines the BFU encryption guarantee, which is a critical security boundary for lost or stolen devices. An attacker with root can extract work‑profile data that may contain corporate email, documents, and credentials. The blast radius is limited to the compromised device, but the data accessed could belong to an organization, leading to further breaches.
Detection Guidance
Sigma Rule
title: Android Locksettings BFU Profile Data Access Attempt
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects local root attempts to access tied profile data via Locksettings during BFU
author: Threat Intelligence
date: 2026-10-27
logsource:
product: android
service: auditd
detection:
selection:
EventID: 1400 # Example: Android audit log for privileged file access
process_name: 'locksettings'
user: 'root'
target_profile: 'tied'
condition: selection
falsepositives:
- Legitimate system processes during BFU (rare)
level: high
YARA Rule
rule Android_Locksettings_PrivEsc_CVE_2026_21123
{
meta:
description = "Detects binary patterns related to improper privilege management in Locksettings"
author = "Threat Intelligence"
date = "2026-10-27"
reference = "CVE-2026-21123"
hash = "unknown"
strings:
$s1 = "locksettings" ascii wide nocase
$s2 = "before first unlock" ascii wide nocase
$s3 = "tied profile" ascii wide nocase
$s4 = "BFU" ascii wide nocase
condition:
any of them
}
Suricata IDS Rule
alert tcp any any -> any any (msg:"CVE-2026-21123 Android Locksettings BFU Profile Data Access"; flow:to_server; content:"locksettings"; nocase; content:"before first unlock"; nocase; content:"tied profile"; nocase; classtype:attempted-user; sid:1000001; rev:1;)
Note: This is a conceptual rule; network‑based detection is limited because the attack is local. The rule may trigger on unusual local traffic if the data is exfiltrated.
Elastic Detection
process where process.name == "locksettings" and process.args : "*before first unlock*" and user.name == "root"
Splunk SPL Query
index=android_logs source="locksettings" user=root "before first unlock" "tied profile"
| stats count by host, user, process
| where count > 0
Wazuh OSSEC Rule
<rule id="100123" level="12">
<decoded_as>android</decoded_as>
<field name="process">locksettings</field>
<field name="user">root</field>
<match>before first unlock</match>
<description>CVE-2026-21123: Potential Locksettings BFU profile data access by root</description>
<group>privilege_escalation,</group>
</rule>
Mitigation & Patch Guidance
Patch confidence: 0/4 (UNPATCHED — no patch evidence from any tracked source).
Immediate mitigations:
- Restrict root access on Android devices; root should not be enabled on production or enterprise‑managed devices.
- Enforce device policies that require strong authentication and prevent bootloader unlocking.
- Monitor for anomalous BFU‑state data access using the detection rules above.
- Isolate sensitive work profiles in containers with additional encryption layers if possible.
Patch/upgrade steps:
- Apply the SMR Oct‑2026 Release 1 security update as soon as it becomes available from the device manufacturer or carrier.
- Verify the update level via Settings > About phone > Android security update.
- For enterprise‑managed devices, use MDM to enforce minimum patch levels.
Long‑term hardening:
- Implement a zero‑trust architecture that does not rely solely on BFU encryption for data protection.
- Regularly audit privileged components for improper privilege management flaws.
- Reduce the attack surface by minimizing the number of profiles and disabling unnecessary root capabilities.
References
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-21123
- Android Security Bulletin (October 2026): https://source.android.com/security/bulletin/2026-10-01
- CWE-269: Improper Privilege Management: https://cwe.mitre.org/data/definitions/269.html
- MITRE ATT&CK T1068: https://attack.mitre.org/techniques/T1068/
- Android BFU/After First Unlock explanation: https://source.android.com/security/encryption/file-based
No threat actor campaigns or exploit‑in‑the‑wild evidence are known at this time.
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.