{"id":"PUB-A-197154898","details":"In get_inbuf and control_work_handler of virtio_console.c, there is a possible out of bounds read due to an incorrect bounds check. This could lead to local information disclosure with System execution privileges needed. User interaction is not needed for exploitation.","aliases":["A-197154898","CVE-2021-38160"],"modified":"2026-04-23T15:15:38.048727Z","published":"2022-06-01T00:00:00Z","references":[{"type":"ADVISORY","url":"https://source.android.com/security/bulletin/2022-06-01"},{"type":"FIX","url":"https://android.googlesource.com/kernel/common/+/f6ec306b93dc6"}],"affected":[{"package":{"name":":linux_kernel:","ecosystem":"Android"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":":0"},{"fixed":":2022-06-05"}]}],"versions":["Kernel"],"ecosystem_specific":{"types":["ID"],"severity":"Moderate","vanir_signatures":[{"id":"PUB-A-197154898-2e300d51","signature_version":"v1","source":"https://android.googlesource.com/kernel/common/+/f6ec306b93dc6","target":{"function":"control_work_handler","file":"drivers/char/virtio_console.c"},"signature_type":"Function","digest":{"length":593,"function_hash":"202670989844150806004207007092522554445"},"deprecated":false},{"id":"PUB-A-197154898-308c2cee","signature_version":"v1","source":"https://android.googlesource.com/kernel/common/+/f6ec306b93dc6","target":{"file":"drivers/char/virtio_console.c"},"signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["195362040112664097425367568813381090287","294500444727360624086595694464301006061","332693137376405820545055837063369286972","233484141920254455615093510129482763400","277125330095538739833328335747187820081","191470994714094816288619667126136557038","31383372575001076755560809231582600185","55476586781357655623533534113610196149"]},"deprecated":false},{"id":"PUB-A-197154898-62a43f1b","signature_version":"v1","source":"https://android.googlesource.com/kernel/common/+/f6ec306b93dc6","target":{"function":"get_inbuf","file":"drivers/char/virtio_console.c"},"signature_type":"Function","digest":{"length":278,"function_hash":"75161918258965457135294462775099465414"},"deprecated":false}],"spl":"2022-06-05","fixes":["https://android.googlesource.com/kernel/common/+/f6ec306b93dc6"]},"database_specific":{"source":"https://storage.googleapis.com/android-osv/PUB-A-197154898.json"}}],"schema_version":"1.7.5"}