In createSessionInternal of PackageInstallerService.java, there is a possible to update a Device Policy Controller (DPC) into an invalid directory due to a path traversal error. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.
A path traversal vulnerability in Android's PackageInstallerService allows local privilege escalation by manipulating Device Policy Controller (DPC) installation paths. Affecting Android 14-16, this vulnerability requires no user interaction and no additional execution privileges, making it a significant risk for enterprise deployments in Saudi Arabia. While no public exploit is currently available, the lack of a patch necessitates immediate compensating controls.
IMMEDIATE ACTIONS:
1. Inventory all Android 14-16 devices in your organization, particularly those with Device Policy Controller (DPC) deployments
2. Restrict physical access to devices and implement strict device unlock policies
3. Disable USB debugging and developer options across all managed devices via MDM/EMM
4. Monitor for suspicious DPC installation attempts and path traversal indicators
COMPENSATING CONTROLS (until patch available):
5. Implement SELinux enforcement at maximum level (enforcing mode)
6. Deploy application whitelisting to restrict package installation sources
7. Enable full-disk encryption (FDE) on all affected devices
8. Implement strict file system permissions monitoring
9. Use MDM/EMM solutions to enforce DPC integrity checks
10. Disable sideloading of applications (set to "Unknown sources" = OFF)
DETECTION RULES:
- Monitor /data/app/ directory for unauthorized DPC installations
- Alert on PackageInstallerService errors related to path validation
- Track SELinux denials related to package installation
- Monitor for rapid successive package installation attempts
- Flag any DPC installation outside standard system directories
PATCHING STRATEGY:
- Await Google security patch (expected in upcoming Android security bulletin)
- Plan immediate deployment upon patch availability
- Test patches in staging environment before production rollout
الإجراءات الفورية:
1. قم بحصر جميع أجهزة Android 14-16 في مؤسستك، خاصة تلك التي تحتوي على نشرات وحدة التحكم في سياسة الجهاز
2. قيد الوصول المادي للأجهزة وطبق سياسات فتح قوية
3. عطّل تصحيح الأخطاء عبر USB وخيارات المطورين عبر MDM/EMM
4. راقب محاولات تثبيت DPC المريبة ومؤشرات تجاوز المسار
الضوابط التعويضية (حتى توفر التصحيح):
5. طبق فرض SELinux على أعلى مستوى (وضع enforcing)
6. نشر قائمة بيضاء للتطبيقات لتقييد مصادر تثبيت الحزم
7. فعّل التشفير الكامل للقرص (FDE) على جميع الأجهزة المتأثرة
8. طبق مراقبة صارمة لأذونات نظام الملفات
9. استخدم حلول MDM/EMM لفرض فحوصات سلامة DPC
10. عطّل التثبيت الجانبي للتطبيقات
قواعد الكشف:
- راقب دليل /data/app/ للتثبيتات غير المصرح بها
- أصدر تنبيهات لأخطاء PackageInstallerService المتعلقة بالتحقق من المسار
- تتبع رفضات SELinux المتعلقة بتثبيت الحزم
- راقب محاولات التثبيت المتتالية السريعة
- علّم أي تثبيت DPC خارج الدلائل القياسية
استراتيجية التصحيح:
- انتظر تصحيح أمان Google (متوقع في النشرة الأمنية القادمة)
- خطط للنشر الفوري عند توفر التصحيح
- اختبر التصحيحات في بيئة التجريب قبل النشر الإنتاجي