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"
[
{
"events": [
{
"introduced": "0"
},
{
"fixed": "5.14.12"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "33"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "34"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "35"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "9.0"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "10.0"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"fixed": "5.14.12"
}
]
}
]
[
{
"signature_version": "v1",
"target": {
"file": "kernel/bpf/stackmap.c",
"function": "prealloc_elems_and_freelist"
},
"source": "https://github.com/torvalds/linux/commit/30e29a9a2bc6a4888335a6ede968b75cd329657a",
"deprecated": false,
"digest": {
"function_hash": "78331623464240500637050481890227317480",
"length": 472.0
},
"id": "CVE-2021-41864-2f0e15c3",
"signature_type": "Function"
},
{
"signature_version": "v1",
"target": {
"file": "kernel/bpf/stackmap.c"
},
"source": "https://github.com/torvalds/linux/commit/30e29a9a2bc6a4888335a6ede968b75cd329657a",
"deprecated": false,
"digest": {
"line_hashes": [
"138355671117931060601386443469335038030",
"21078963703448784961734780795509455909",
"307878453625655919730588976003179522762",
"90440858909143805989969151470339403945"
],
"threshold": 0.9
},
"id": "CVE-2021-41864-39de1582",
"signature_type": "Line"
}
]