{"id":"ASB-A-167244818","details":"In checkCallerIsSystemOr of CompanionDeviceManagerService.java, there is a possible way to get a nearby Bluetooth device's MAC address without appropriate permissions due to a permissions bypass. This could lead to local escalation of privilege that grants access to nearby MAC addresses, with User execution privileges needed. User interaction is needed for exploitation.","aliases":["A-167244818","CVE-2021-0319"],"modified":"2026-09-18T15:47:37.392928379Z","published":"2021-01-01T00:00:00Z","references":[{"type":"ADVISORY","url":"https://source.android.com/security/bulletin/2021-01-01"},{"type":"FIX","url":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a"}],"affected":[{"package":{"name":"platform/frameworks/base","ecosystem":"Android"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0:0"},{"fixed":"8.0:2021-01-01"}]}],"versions":["8.0"],"ecosystem_specific":{"types":["EoP"],"vanir_signatures":[{"id":"ASB-A-167244818-9cdc8120","signature_type":"Function","signature_version":"v1","source":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a","target":{"file":"services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java","function":"checkCallerIsSystemOr"},"deprecated":false,"digest":{"length":252,"function_hash":"215306438312018792716161680217895491558"}},{"deprecated":false,"digest":{"line_hashes":["46529484947656830240619870944293011565","115095491502154654554552142375869085291","222788478004123297660585722521648190590","131290711615601143351865950679854116077"],"threshold":0.9},"id":"ASB-A-167244818-f6aee0ea","signature_type":"Line","signature_version":"v1","source":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a","target":{"file":"services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java"}}],"fixes":["https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a"],"severity":"High","spl":"2021-01-01"},"database_specific":{"source":"https://storage.googleapis.com/android-osv/ASB-A-167244818.json"}},{"package":{"name":"platform/frameworks/base","ecosystem":"Android"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.1:0"},{"fixed":"8.1:2021-01-01"}]}],"versions":["8.1"],"ecosystem_specific":{"spl":"2021-01-01","types":["EoP"],"vanir_signatures":[{"id":"ASB-A-167244818-7a69eb42","signature_type":"Function","signature_version":"v1","source":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a","target":{"function":"checkCallerIsSystemOr","file":"services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java"},"deprecated":false,"digest":{"function_hash":"215306438312018792716161680217895491558","length":252}},{"id":"ASB-A-167244818-f2a0a3fb","signature_type":"Line","signature_version":"v1","source":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a","target":{"file":"services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java"},"deprecated":false,"digest":{"line_hashes":["46529484947656830240619870944293011565","115095491502154654554552142375869085291","222788478004123297660585722521648190590","131290711615601143351865950679854116077"],"threshold":0.9}}],"fixes":["https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a"],"severity":"High"},"database_specific":{"source":"https://storage.googleapis.com/android-osv/ASB-A-167244818.json"}},{"package":{"name":"platform/frameworks/base","ecosystem":"Android"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9:0"},{"fixed":"9:2021-01-01"}]}],"versions":["9"],"ecosystem_specific":{"spl":"2021-01-01","types":["EoP"],"vanir_signatures":[{"signature_type":"Line","signature_version":"v1","source":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a","target":{"file":"services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java"},"deprecated":false,"digest":{"line_hashes":["46529484947656830240619870944293011565","115095491502154654554552142375869085291","222788478004123297660585722521648190590","131290711615601143351865950679854116077"],"threshold":0.9},"id":"ASB-A-167244818-9db58b23"},{"id":"ASB-A-167244818-f1d5fbfa","signature_type":"Function","signature_version":"v1","source":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a","target":{"function":"checkCallerIsSystemOr","file":"services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java"},"deprecated":false,"digest":{"function_hash":"215306438312018792716161680217895491558","length":252}}],"fixes":["https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a"],"severity":"High"},"database_specific":{"source":"https://storage.googleapis.com/android-osv/ASB-A-167244818.json"}},{"package":{"name":"platform/frameworks/base","ecosystem":"Android"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10:0"},{"fixed":"10:2021-01-01"}]}],"versions":["10"],"ecosystem_specific":{"severity":"High","spl":"2021-01-01","types":["EoP"],"vanir_signatures":[{"signature_type":"Function","signature_version":"v1","source":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a","target":{"function":"checkCallerIsSystemOr","file":"services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java"},"deprecated":false,"digest":{"function_hash":"215306438312018792716161680217895491558","length":252},"id":"ASB-A-167244818-4adfd78f"},{"id":"ASB-A-167244818-b5eb6081","signature_type":"Line","signature_version":"v1","source":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a","target":{"file":"services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java"},"deprecated":false,"digest":{"line_hashes":["46529484947656830240619870944293011565","115095491502154654554552142375869085291","222788478004123297660585722521648190590","131290711615601143351865950679854116077"],"threshold":0.9}}],"fixes":["https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a"]},"database_specific":{"source":"https://storage.googleapis.com/android-osv/ASB-A-167244818.json"}},{"package":{"name":"platform/frameworks/base","ecosystem":"Android"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11:0"},{"fixed":"11:2021-01-01"}]}],"versions":["11"],"ecosystem_specific":{"spl":"2021-01-01","types":["EoP"],"vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["46529484947656830240619870944293011565","115095491502154654554552142375869085291","222788478004123297660585722521648190590","131290711615601143351865950679854116077"],"threshold":0.9},"id":"ASB-A-167244818-8777c428","signature_type":"Line","signature_version":"v1","source":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a","target":{"file":"services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java"}},{"target":{"file":"services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java","function":"checkCallerIsSystemOr"},"deprecated":false,"digest":{"function_hash":"215306438312018792716161680217895491558","length":252},"id":"ASB-A-167244818-d82a610c","signature_type":"Function","signature_version":"v1","source":"https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a"}],"fixes":["https://android.googlesource.com/platform/frameworks/base/+/0c17049d39b5a8867f030f6f36433564140e124a"],"severity":"High"},"database_specific":{"source":"https://storage.googleapis.com/android-osv/ASB-A-167244818.json"}}],"schema_version":"1.9.0"}