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.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29154.json"
[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"229029175916732622870564529382454158085",
"151414746131622491765211184064389036271",
"228551822935023906638691231672128382905",
"121860422377742664265843557268728585401"
]
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@e4d4d456436bfb2fe412ee2cd489f7658449b098",
"target": {
"file": "arch/x86/net/bpf_jit_comp.c"
},
"id": "CVE-2021-29154-2103046f"
},
{
"digest": {
"length": 18321.0,
"function_hash": "205606010363777671554499096369963481175"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@26f55a59dc65ff77cd1c4b37991e26497fc68049",
"target": {
"file": "arch/x86/net/bpf_jit_comp32.c",
"function": "do_jit"
},
"id": "CVE-2021-29154-85baf189"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"229029175916732622870564529382454158085",
"151414746131622491765211184064389036271",
"228551822935023906638691231672128382905",
"121860422377742664265843557268728585401"
]
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@26f55a59dc65ff77cd1c4b37991e26497fc68049",
"target": {
"file": "arch/x86/net/bpf_jit_comp32.c"
},
"id": "CVE-2021-29154-a2f3b77c"
},
{
"digest": {
"length": 15850.0,
"function_hash": "215916552938993058718446290198780975363"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@e4d4d456436bfb2fe412ee2cd489f7658449b098",
"target": {
"file": "arch/x86/net/bpf_jit_comp.c",
"function": "do_jit"
},
"id": "CVE-2021-29154-b2a9368e"
}
]