BPF JIT compilers in the Linux kernel through 5.11.12 have incorrect computation of branch displacements, allowing them to execute arbitrary code within the kernel context. This affects arch/x86/net/bpfjitcomp.c and arch/x86/net/bpfjitcomp32.c.
[
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@e4d4d456436bfb2fe412ee2cd489f7658449b098",
"id": "CVE-2021-29154-2103046f",
"target": {
"file": "arch/x86/net/bpf_jit_comp.c"
},
"digest": {
"line_hashes": [
"229029175916732622870564529382454158085",
"151414746131622491765211184064389036271",
"228551822935023906638691231672128382905",
"121860422377742664265843557268728585401"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@26f55a59dc65ff77cd1c4b37991e26497fc68049",
"id": "CVE-2021-29154-85baf189",
"target": {
"file": "arch/x86/net/bpf_jit_comp32.c",
"function": "do_jit"
},
"digest": {
"function_hash": "205606010363777671554499096369963481175",
"length": 18321.0
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@26f55a59dc65ff77cd1c4b37991e26497fc68049",
"id": "CVE-2021-29154-a2f3b77c",
"target": {
"file": "arch/x86/net/bpf_jit_comp32.c"
},
"digest": {
"line_hashes": [
"229029175916732622870564529382454158085",
"151414746131622491765211184064389036271",
"228551822935023906638691231672128382905",
"121860422377742664265843557268728585401"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@e4d4d456436bfb2fe412ee2cd489f7658449b098",
"id": "CVE-2021-29154-b2a9368e",
"target": {
"file": "arch/x86/net/bpf_jit_comp.c",
"function": "do_jit"
},
"digest": {
"function_hash": "215916552938993058718446290198780975363",
"length": 15850.0
},
"signature_type": "Function",
"signature_version": "v1"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29154.json"