An issue was discovered in aspeedlpcctrl_mmap in drivers/soc/aspeed/aspeed-lpc-ctrl.c in the Linux kernel before 5.14.6. Local attackers able to access the Aspeed LPC control interface could overwrite memory in the kernel and potentially execute privileges, aka CID-b49a0e69a7b1. This occurs because a certain comparison uses values that are not memory sizes.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-42252.json"
[
{
"digest": {
"function_hash": "260437992584765077207801812853721500688",
"length": 442.0
},
"signature_version": "v1",
"target": {
"file": "drivers/soc/aspeed/aspeed-lpc-ctrl.c",
"function": "aspeed_lpc_ctrl_mmap"
},
"signature_type": "Function",
"id": "CVE-2021-42252-565ab537",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@b49a0e69a7b1a68c8d3f64097d06dabb770fec96",
"deprecated": false
},
{
"digest": {
"line_hashes": [
"295926529325227937722265882679567509151",
"103721637151669039788176045830436957963",
"306584042342762983874476069817494970540",
"169103526831355151915924002018515045851"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/soc/aspeed/aspeed-lpc-ctrl.c"
},
"signature_type": "Line",
"id": "CVE-2021-42252-d5a7ab87",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@b49a0e69a7b1a68c8d3f64097d06dabb770fec96",
"deprecated": false
}
]