preallocelemsand_freelist in kernel/bpf/stackmap.c in the Linux kernel before 5.14.12 allows unprivileged users to trigger an eBPF multiplication integer overflow with a resultant out-of-bounds write.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41864.json"
[
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/30e29a9a2bc6a4888335a6ede968b75cd329657a",
"digest": {
"function_hash": "78331623464240500637050481890227317480",
"length": 472.0
},
"id": "CVE-2021-41864-2f0e15c3",
"deprecated": false,
"target": {
"file": "kernel/bpf/stackmap.c",
"function": "prealloc_elems_and_freelist"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/30e29a9a2bc6a4888335a6ede968b75cd329657a",
"digest": {
"line_hashes": [
"138355671117931060601386443469335038030",
"21078963703448784961734780795509455909",
"307878453625655919730588976003179522762",
"90440858909143805989969151470339403945"
],
"threshold": 0.9
},
"id": "CVE-2021-41864-39de1582",
"deprecated": false,
"target": {
"file": "kernel/bpf/stackmap.c"
}
}
]