{"schema_version":"1.9.0","id":"ASB-A-173843328","published":"2021-06-01T00:00:00Z","modified":"2026-09-08T15:39:03.104189951Z","aliases":["A-173843328","CVE-2021-0512"],"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.","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"],"severity":"High","spl":"2021-06-05","types":["EoP"],"vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["64172623948679431862695036564881337570","230322923680330925781675870885726230223","73286516744473844380015392446427705097","293456225840463785337273309951273610513","11128501197009355598728923510973756556","335757447315112755393438664235372062808","146218055446280286295684917460199110093","301141878020790822428530349509229756206","242138640585035497746803189197857880978","161875519836883478060347295119497678447","212398614602379463200403196736122486715","180491694572876725766639759176693244371"],"threshold":0.9},"id":"ASB-A-173843328-2dcb667c","signature_type":"Line","signature_version":"v1","source":"https://android.googlesource.com/kernel/common/+/ed9be64eefe2","target":{"file":"drivers/hid/hid-core.c","truncated_path_level":1}},{"deprecated":false,"digest":{"function_hash":"311767138473691601837923316870499384784","length":2397},"id":"ASB-A-173843328-6518a134","signature_type":"Function","signature_version":"v1","source":"https://android.googlesource.com/kernel/common/+/ed9be64eefe2","target":{"file":"drivers/hid/hid-core.c","function":"hid_add_field","truncated_path_level":1}},{"deprecated":false,"digest":{"function_hash":"12225022636308020832768294636884845774","length":581},"id":"ASB-A-173843328-e547965c","signature_type":"Function","signature_version":"v1","source":"https://android.googlesource.com/kernel/common/+/ed9be64eefe2","target":{"file":"drivers/hid/hid-core.c","function":"hid_register_field","truncated_path_level":1}}]},"database_specific":{"source":"https://storage.googleapis.com/android-osv/ASB-A-173843328.json"}}],"references":[{"type":"ADVISORY","url":"https://source.android.com/security/bulletin/2021-06-01"},{"type":"FIX","url":"https://android.googlesource.com/kernel/common/+/ed9be64eefe2"}]}