{"id":"ASB-A-173843328","details":"In __hidinput_change_resolution_multipliers of hid-input.c, there is a possible out of bounds write due to a heap buffer overflow. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.","aliases":["A-173843328","CVE-2021-0512"],"modified":"2026-03-11T06:00:19.635667Z","published":"2021-06-01T00:00:00Z","references":[{"type":"ADVISORY","url":"https://source.android.com/security/bulletin/2021-06-01"},{"type":"FIX","url":"https://android.googlesource.com/kernel/common/+/ed9be64eefe2"}],"affected":[{"package":{"name":":linux_kernel:","ecosystem":"Android"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":":0"},{"fixed":":2021-06-05"}]}],"versions":["Kernel"],"ecosystem_specific":{"fixes":["https://android.googlesource.com/kernel/common/+/ed9be64eefe2"],"spl":"2021-06-05","vanir_signatures":[{"id":"ASB-A-173843328-2dcb667c","deprecated":false,"source":"https://android.googlesource.com/kernel/common/+/ed9be64eefe2","target":{"file":"drivers/hid/hid-core.c","truncated_path_level":1},"digest":{"line_hashes":["64172623948679431862695036564881337570","230322923680330925781675870885726230223","73286516744473844380015392446427705097","293456225840463785337273309951273610513","11128501197009355598728923510973756556","335757447315112755393438664235372062808","146218055446280286295684917460199110093","301141878020790822428530349509229756206","242138640585035497746803189197857880978","161875519836883478060347295119497678447","212398614602379463200403196736122486715","180491694572876725766639759176693244371"],"threshold":0.9},"signature_version":"v1","signature_type":"Line"},{"id":"ASB-A-173843328-6518a134","deprecated":false,"source":"https://android.googlesource.com/kernel/common/+/ed9be64eefe2","target":{"function":"hid_add_field","file":"drivers/hid/hid-core.c","truncated_path_level":1},"digest":{"function_hash":"311767138473691601837923316870499384784","length":2397},"signature_version":"v1","signature_type":"Function"},{"id":"ASB-A-173843328-e547965c","deprecated":false,"source":"https://android.googlesource.com/kernel/common/+/ed9be64eefe2","target":{"function":"hid_register_field","file":"drivers/hid/hid-core.c","truncated_path_level":1},"digest":{"function_hash":"12225022636308020832768294636884845774","length":581},"signature_version":"v1","signature_type":"Function"}],"severity":"High","types":["EoP"]},"database_specific":{"source":"https://storage.googleapis.com/android-osv-test/ASB-A-173843328.json"}}],"schema_version":"1.7.5"}