Description
In the ServiceManager::add function in the hardware service manager, there is an insecure permissions check based on the PID of the caller which could allow an application or service to replace a HAL service with its own service. This could lead to a local elevation of privilege enabling code execution as a privileged process with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android. Versions: 8.0, 8.1. Android ID: A-68217907.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Android | 8.0, 8.1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Android - Hardware Service Manager Arbitrary Service Replacement due to getpidcon EDB-43513 · dos · Jan 11, 2018 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://source.android.com/security/bulletin/2018-01-01
- 102415 vdb-entry
- 1040106 vdb-entry
- 43513 exploit