CVE-2021-36995
📋 TL;DR
This vulnerability in Huawei smartphones allows attackers to access and modify files restored from backups by exploiting soft link manipulation. It affects Huawei smartphone users who restore data from backups. The attack requires local access to the device.
💻 Affected Systems
- Huawei smartphones
📦 What is this software?
Emui by Huawei
Emui by Huawei
Magic Ui by Huawei
Magic Ui by Huawei
⚠️ Risk & Real-World Impact
Worst Case
Attackers could tamper with critical system files, install malware, or steal sensitive user data from backup-restored files, potentially leading to complete device compromise.
Likely Case
Local attackers with physical access could modify user data or configuration files restored from backups, potentially enabling privilege escalation or data theft.
If Mitigated
With proper access controls and backup validation, impact is limited to unauthorized file access without broader system compromise.
🎯 Exploit Status
Requires local access to device and knowledge of backup file structure; involves symbolic link manipulation techniques
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: July 2021 security update and later
Vendor Advisory: https://consumer.huawei.com/en/support/bulletin/2021/7/
Restart Required: Yes
Instructions:
1. Go to Settings > System & updates > Software update. 2. Check for updates. 3. Install July 2021 or later security update. 4. Restart device after installation.
🔧 Temporary Workarounds
Disable automatic backup restoration
allPrevent automatic restoration of backups which could be exploited
Use trusted backup sources only
allOnly restore backups from known, trusted sources to prevent malicious file manipulation
🧯 If You Can't Patch
- Avoid restoring backups from untrusted sources
- Physically secure devices to prevent unauthorized local access
🔍 How to Verify
Check if Vulnerable:
Check if device has July 2021 security update installed via Settings > About phone > Build number
Check Version:
Settings > About phone > Build number (no CLI command available)
Verify Fix Applied:
Confirm July 2021 or later security patch is installed and device has been restarted
📡 Detection & Monitoring
Log Indicators:
- Unusual backup restoration activities
- File permission changes in backup directories
Network Indicators:
- Not applicable - local vulnerability only
SIEM Query:
Not applicable for mobile device local file access vulnerabilities