In getinbuf and controlworkhandler of virtioconsole.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.
{
"spl": "2022-06-05",
"severity": "Moderate",
"types": [
"ID"
],
"vanir_signatures": [
{
"id": "PUB-A-197154898-2e300d51",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "202670989844150806004207007092522554445",
"length": 593.0
},
"target": {
"file": "drivers/char/virtio_console.c",
"function": "control_work_handler"
},
"source": "https://android.googlesource.com/kernel/common/+/f6ec306b93dc6"
},
{
"id": "PUB-A-197154898-308c2cee",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"195362040112664097425367568813381090287",
"294500444727360624086595694464301006061",
"332693137376405820545055837063369286972",
"233484141920254455615093510129482763400",
"277125330095538739833328335747187820081",
"191470994714094816288619667126136557038",
"31383372575001076755560809231582600185",
"55476586781357655623533534113610196149"
],
"threshold": 0.9
},
"target": {
"file": "drivers/char/virtio_console.c"
},
"source": "https://android.googlesource.com/kernel/common/+/f6ec306b93dc6"
},
{
"id": "PUB-A-197154898-62a43f1b",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "75161918258965457135294462775099465414",
"length": 278.0
},
"target": {
"file": "drivers/char/virtio_console.c",
"function": "get_inbuf"
},
"source": "https://android.googlesource.com/kernel/common/+/f6ec306b93dc6"
}
],
"fixes": [
"https://android.googlesource.com/kernel/common/+/f6ec306b93dc6"
]
}