CVE-2021-47300 (GCVE-0-2021-47300)
Vulnerability from cvelistv5 – Published: 2024-05-21 14:35 – Updated: 2026-05-11 13:51
VLAI
EPSS
VEX
Title
bpf: Fix tail_call_reachable rejection for interpreter when jit failed
Summary
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix tail_call_reachable rejection for interpreter when jit failed
During testing of f263a81451c1 ("bpf: Track subprog poke descriptors correctly
and fix use-after-free") under various failure conditions, for example, when
jit_subprogs() fails and tries to clean up the program to be run under the
interpreter, we ran into the following freeze:
[...]
#127/8 tailcall_bpf2bpf_3:FAIL
[...]
[ 92.041251] BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0x1b9d/0x2e20
[ 92.042408] Read of size 8 at addr ffff88800da67f68 by task test_progs/682
[ 92.043707]
[ 92.044030] CPU: 1 PID: 682 Comm: test_progs Tainted: G O 5.13.0-53301-ge6c08cb33a30-dirty #87
[ 92.045542] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1 04/01/2014
[ 92.046785] Call Trace:
[ 92.047171] ? __bpf_prog_run_args64+0xc0/0xc0
[ 92.047773] ? __bpf_prog_run_args32+0x8b/0xb0
[ 92.048389] ? __bpf_prog_run_args64+0xc0/0xc0
[ 92.049019] ? ktime_get+0x117/0x130
[...] // few hundred [similar] lines more
[ 92.659025] ? ktime_get+0x117/0x130
[ 92.659845] ? __bpf_prog_run_args64+0xc0/0xc0
[ 92.660738] ? __bpf_prog_run_args32+0x8b/0xb0
[ 92.661528] ? __bpf_prog_run_args64+0xc0/0xc0
[ 92.662378] ? print_usage_bug+0x50/0x50
[ 92.663221] ? print_usage_bug+0x50/0x50
[ 92.664077] ? bpf_ksym_find+0x9c/0xe0
[ 92.664887] ? ktime_get+0x117/0x130
[ 92.665624] ? kernel_text_address+0xf5/0x100
[ 92.666529] ? __kernel_text_address+0xe/0x30
[ 92.667725] ? unwind_get_return_address+0x2f/0x50
[ 92.668854] ? ___bpf_prog_run+0x15d4/0x2e20
[ 92.670185] ? ktime_get+0x117/0x130
[ 92.671130] ? __bpf_prog_run_args64+0xc0/0xc0
[ 92.672020] ? __bpf_prog_run_args32+0x8b/0xb0
[ 92.672860] ? __bpf_prog_run_args64+0xc0/0xc0
[ 92.675159] ? ktime_get+0x117/0x130
[ 92.677074] ? lock_is_held_type+0xd5/0x130
[ 92.678662] ? ___bpf_prog_run+0x15d4/0x2e20
[ 92.680046] ? ktime_get+0x117/0x130
[ 92.681285] ? __bpf_prog_run32+0x6b/0x90
[ 92.682601] ? __bpf_prog_run64+0x90/0x90
[ 92.683636] ? lock_downgrade+0x370/0x370
[ 92.684647] ? mark_held_locks+0x44/0x90
[ 92.685652] ? ktime_get+0x117/0x130
[ 92.686752] ? lockdep_hardirqs_on+0x79/0x100
[ 92.688004] ? ktime_get+0x117/0x130
[ 92.688573] ? __cant_migrate+0x2b/0x80
[ 92.689192] ? bpf_test_run+0x2f4/0x510
[ 92.689869] ? bpf_test_timer_continue+0x1c0/0x1c0
[ 92.690856] ? rcu_read_lock_bh_held+0x90/0x90
[ 92.691506] ? __kasan_slab_alloc+0x61/0x80
[ 92.692128] ? eth_type_trans+0x128/0x240
[ 92.692737] ? __build_skb+0x46/0x50
[ 92.693252] ? bpf_prog_test_run_skb+0x65e/0xc50
[ 92.693954] ? bpf_prog_test_run_raw_tp+0x2d0/0x2d0
[ 92.694639] ? __fget_light+0xa1/0x100
[ 92.695162] ? bpf_prog_inc+0x23/0x30
[ 92.695685] ? __sys_bpf+0xb40/0x2c80
[ 92.696324] ? bpf_link_get_from_fd+0x90/0x90
[ 92.697150] ? mark_held_locks+0x24/0x90
[ 92.698007] ? lockdep_hardirqs_on_prepare+0x124/0x220
[ 92.699045] ? finish_task_switch+0xe6/0x370
[ 92.700072] ? lockdep_hardirqs_on+0x79/0x100
[ 92.701233] ? finish_task_switch+0x11d/0x370
[ 92.702264] ? __switch_to+0x2c0/0x740
[ 92.703148] ? mark_held_locks+0x24/0x90
[ 92.704155] ? __x64_sys_bpf+0x45/0x50
[ 92.705146] ? do_syscall_64+0x35/0x80
[ 92.706953] ? entry_SYSCALL_64_after_hwframe+0x44/0xae
[...]
Turns out that the program rejection from e411901c0b77 ("bpf: allow for tailcalls
in BPF subprograms for x64 JIT") is buggy since env->prog->aux->tail_call_reachable
is never true. Commit ebf7d1f508a7 ("bpf, x64: rework pro/epilogue and tailcall
handling in JIT") added a tracker into check_max_stack_depth() which propagates
the tail_call_reachable condition throughout the subprograms. This info is then
assigned to the subprogram's
---truncated---
Severity
No CVSS data available.
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator (v2.0.3)
Assigner
References
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
ebf7d1f508a73871acf3b2bfbfa1323a477acdb3 , < 39f1735c8107ef43a53c4daf82f330d880488d8f
(git)
Affected: ebf7d1f508a73871acf3b2bfbfa1323a477acdb3 , < cbb086074dab631ac43f8645cbac1d7b148e05c4 (git) Affected: ebf7d1f508a73871acf3b2bfbfa1323a477acdb3 , < 5dd0a6b8582ffbfa88351949d50eccd5b6694ade (git) |
|
| Linux | Linux |
Affected:
5.10
Unaffected: 0 , < 5.10 (semver) Unaffected: 5.10.54 , ≤ 5.10.* (semver) Unaffected: 5.13.6 , ≤ 5.13.* (semver) Unaffected: 5.14 , ≤ * (original_commit_for_fix) |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2021-47300",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-07-24T17:11:18.549517Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-07-24T17:11:23.015Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-04T05:32:08.540Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/39f1735c8107ef43a53c4daf82f330d880488d8f"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/cbb086074dab631ac43f8645cbac1d7b148e05c4"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/5dd0a6b8582ffbfa88351949d50eccd5b6694ade"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"kernel/bpf/verifier.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "39f1735c8107ef43a53c4daf82f330d880488d8f",
"status": "affected",
"version": "ebf7d1f508a73871acf3b2bfbfa1323a477acdb3",
"versionType": "git"
},
{
"lessThan": "cbb086074dab631ac43f8645cbac1d7b148e05c4",
"status": "affected",
"version": "ebf7d1f508a73871acf3b2bfbfa1323a477acdb3",
"versionType": "git"
},
{
"lessThan": "5dd0a6b8582ffbfa88351949d50eccd5b6694ade",
"status": "affected",
"version": "ebf7d1f508a73871acf3b2bfbfa1323a477acdb3",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"kernel/bpf/verifier.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.10"
},
{
"lessThan": "5.10",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.54",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.13.*",
"status": "unaffected",
"version": "5.13.6",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "5.14",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.54",
"versionStartIncluding": "5.10",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.13.6",
"versionStartIncluding": "5.10",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.14",
"versionStartIncluding": "5.10",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix tail_call_reachable rejection for interpreter when jit failed\n\nDuring testing of f263a81451c1 (\"bpf: Track subprog poke descriptors correctly\nand fix use-after-free\") under various failure conditions, for example, when\njit_subprogs() fails and tries to clean up the program to be run under the\ninterpreter, we ran into the following freeze:\n\n [...]\n #127/8 tailcall_bpf2bpf_3:FAIL\n [...]\n [ 92.041251] BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0x1b9d/0x2e20\n [ 92.042408] Read of size 8 at addr ffff88800da67f68 by task test_progs/682\n [ 92.043707]\n [ 92.044030] CPU: 1 PID: 682 Comm: test_progs Tainted: G O 5.13.0-53301-ge6c08cb33a30-dirty #87\n [ 92.045542] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1 04/01/2014\n [ 92.046785] Call Trace:\n [ 92.047171] ? __bpf_prog_run_args64+0xc0/0xc0\n [ 92.047773] ? __bpf_prog_run_args32+0x8b/0xb0\n [ 92.048389] ? __bpf_prog_run_args64+0xc0/0xc0\n [ 92.049019] ? ktime_get+0x117/0x130\n [...] // few hundred [similar] lines more\n [ 92.659025] ? ktime_get+0x117/0x130\n [ 92.659845] ? __bpf_prog_run_args64+0xc0/0xc0\n [ 92.660738] ? __bpf_prog_run_args32+0x8b/0xb0\n [ 92.661528] ? __bpf_prog_run_args64+0xc0/0xc0\n [ 92.662378] ? print_usage_bug+0x50/0x50\n [ 92.663221] ? print_usage_bug+0x50/0x50\n [ 92.664077] ? bpf_ksym_find+0x9c/0xe0\n [ 92.664887] ? ktime_get+0x117/0x130\n [ 92.665624] ? kernel_text_address+0xf5/0x100\n [ 92.666529] ? __kernel_text_address+0xe/0x30\n [ 92.667725] ? unwind_get_return_address+0x2f/0x50\n [ 92.668854] ? ___bpf_prog_run+0x15d4/0x2e20\n [ 92.670185] ? ktime_get+0x117/0x130\n [ 92.671130] ? __bpf_prog_run_args64+0xc0/0xc0\n [ 92.672020] ? __bpf_prog_run_args32+0x8b/0xb0\n [ 92.672860] ? __bpf_prog_run_args64+0xc0/0xc0\n [ 92.675159] ? ktime_get+0x117/0x130\n [ 92.677074] ? lock_is_held_type+0xd5/0x130\n [ 92.678662] ? ___bpf_prog_run+0x15d4/0x2e20\n [ 92.680046] ? ktime_get+0x117/0x130\n [ 92.681285] ? __bpf_prog_run32+0x6b/0x90\n [ 92.682601] ? __bpf_prog_run64+0x90/0x90\n [ 92.683636] ? lock_downgrade+0x370/0x370\n [ 92.684647] ? mark_held_locks+0x44/0x90\n [ 92.685652] ? ktime_get+0x117/0x130\n [ 92.686752] ? lockdep_hardirqs_on+0x79/0x100\n [ 92.688004] ? ktime_get+0x117/0x130\n [ 92.688573] ? __cant_migrate+0x2b/0x80\n [ 92.689192] ? bpf_test_run+0x2f4/0x510\n [ 92.689869] ? bpf_test_timer_continue+0x1c0/0x1c0\n [ 92.690856] ? rcu_read_lock_bh_held+0x90/0x90\n [ 92.691506] ? __kasan_slab_alloc+0x61/0x80\n [ 92.692128] ? eth_type_trans+0x128/0x240\n [ 92.692737] ? __build_skb+0x46/0x50\n [ 92.693252] ? bpf_prog_test_run_skb+0x65e/0xc50\n [ 92.693954] ? bpf_prog_test_run_raw_tp+0x2d0/0x2d0\n [ 92.694639] ? __fget_light+0xa1/0x100\n [ 92.695162] ? bpf_prog_inc+0x23/0x30\n [ 92.695685] ? __sys_bpf+0xb40/0x2c80\n [ 92.696324] ? bpf_link_get_from_fd+0x90/0x90\n [ 92.697150] ? mark_held_locks+0x24/0x90\n [ 92.698007] ? lockdep_hardirqs_on_prepare+0x124/0x220\n [ 92.699045] ? finish_task_switch+0xe6/0x370\n [ 92.700072] ? lockdep_hardirqs_on+0x79/0x100\n [ 92.701233] ? finish_task_switch+0x11d/0x370\n [ 92.702264] ? __switch_to+0x2c0/0x740\n [ 92.703148] ? mark_held_locks+0x24/0x90\n [ 92.704155] ? __x64_sys_bpf+0x45/0x50\n [ 92.705146] ? do_syscall_64+0x35/0x80\n [ 92.706953] ? entry_SYSCALL_64_after_hwframe+0x44/0xae\n [...]\n\nTurns out that the program rejection from e411901c0b77 (\"bpf: allow for tailcalls\nin BPF subprograms for x64 JIT\") is buggy since env-\u003eprog-\u003eaux-\u003etail_call_reachable\nis never true. Commit ebf7d1f508a7 (\"bpf, x64: rework pro/epilogue and tailcall\nhandling in JIT\") added a tracker into check_max_stack_depth() which propagates\nthe tail_call_reachable condition throughout the subprograms. This info is then\nassigned to the subprogram\u0027s \n---truncated---"
}
],
"providerMetadata": {
"dateUpdated": "2026-05-11T13:51:49.342Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/39f1735c8107ef43a53c4daf82f330d880488d8f"
},
{
"url": "https://git.kernel.org/stable/c/cbb086074dab631ac43f8645cbac1d7b148e05c4"
},
{
"url": "https://git.kernel.org/stable/c/5dd0a6b8582ffbfa88351949d50eccd5b6694ade"
}
],
"title": "bpf: Fix tail_call_reachable rejection for interpreter when jit failed",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2021-47300",
"datePublished": "2024-05-21T14:35:22.040Z",
"dateReserved": "2024-05-21T13:27:52.132Z",
"dateUpdated": "2026-05-11T13:51:49.342Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2021-47300",
"date": "2026-07-22",
"epss": "0.00226",
"percentile": "0.13352"
},
"fkie_nvd": {
"configurations": "[{\"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"5.10\", \"versionEndExcluding\": \"5.10.54\", \"matchCriteriaId\": \"C9B526EA-4055-43C8-9B30-7E7067C9E43C\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"5.11\", \"versionEndExcluding\": \"5.13.6\", \"matchCriteriaId\": \"512C22FC-1524-4E6F-9E62-4F4B7B6E0576\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:5.14:rc1:*:*:*:*:*:*\", \"matchCriteriaId\": \"71268287-21A8-4488-AA4F-23C473153131\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:5.14:rc2:*:*:*:*:*:*\", \"matchCriteriaId\": \"23B9E5C6-FAB5-4A02-9E39-27C8787B0991\"}]}]}]",
"descriptions": "[{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nbpf: Fix tail_call_reachable rejection for interpreter when jit failed\\n\\nDuring testing of f263a81451c1 (\\\"bpf: Track subprog poke descriptors correctly\\nand fix use-after-free\\\") under various failure conditions, for example, when\\njit_subprogs() fails and tries to clean up the program to be run under the\\ninterpreter, we ran into the following freeze:\\n\\n [...]\\n #127/8 tailcall_bpf2bpf_3:FAIL\\n [...]\\n [ 92.041251] BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0x1b9d/0x2e20\\n [ 92.042408] Read of size 8 at addr ffff88800da67f68 by task test_progs/682\\n [ 92.043707]\\n [ 92.044030] CPU: 1 PID: 682 Comm: test_progs Tainted: G O 5.13.0-53301-ge6c08cb33a30-dirty #87\\n [ 92.045542] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1 04/01/2014\\n [ 92.046785] Call Trace:\\n [ 92.047171] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.047773] ? __bpf_prog_run_args32+0x8b/0xb0\\n [ 92.048389] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.049019] ? ktime_get+0x117/0x130\\n [...] // few hundred [similar] lines more\\n [ 92.659025] ? ktime_get+0x117/0x130\\n [ 92.659845] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.660738] ? __bpf_prog_run_args32+0x8b/0xb0\\n [ 92.661528] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.662378] ? print_usage_bug+0x50/0x50\\n [ 92.663221] ? print_usage_bug+0x50/0x50\\n [ 92.664077] ? bpf_ksym_find+0x9c/0xe0\\n [ 92.664887] ? ktime_get+0x117/0x130\\n [ 92.665624] ? kernel_text_address+0xf5/0x100\\n [ 92.666529] ? __kernel_text_address+0xe/0x30\\n [ 92.667725] ? unwind_get_return_address+0x2f/0x50\\n [ 92.668854] ? ___bpf_prog_run+0x15d4/0x2e20\\n [ 92.670185] ? ktime_get+0x117/0x130\\n [ 92.671130] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.672020] ? __bpf_prog_run_args32+0x8b/0xb0\\n [ 92.672860] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.675159] ? ktime_get+0x117/0x130\\n [ 92.677074] ? lock_is_held_type+0xd5/0x130\\n [ 92.678662] ? ___bpf_prog_run+0x15d4/0x2e20\\n [ 92.680046] ? ktime_get+0x117/0x130\\n [ 92.681285] ? __bpf_prog_run32+0x6b/0x90\\n [ 92.682601] ? __bpf_prog_run64+0x90/0x90\\n [ 92.683636] ? lock_downgrade+0x370/0x370\\n [ 92.684647] ? mark_held_locks+0x44/0x90\\n [ 92.685652] ? ktime_get+0x117/0x130\\n [ 92.686752] ? lockdep_hardirqs_on+0x79/0x100\\n [ 92.688004] ? ktime_get+0x117/0x130\\n [ 92.688573] ? __cant_migrate+0x2b/0x80\\n [ 92.689192] ? bpf_test_run+0x2f4/0x510\\n [ 92.689869] ? bpf_test_timer_continue+0x1c0/0x1c0\\n [ 92.690856] ? rcu_read_lock_bh_held+0x90/0x90\\n [ 92.691506] ? __kasan_slab_alloc+0x61/0x80\\n [ 92.692128] ? eth_type_trans+0x128/0x240\\n [ 92.692737] ? __build_skb+0x46/0x50\\n [ 92.693252] ? bpf_prog_test_run_skb+0x65e/0xc50\\n [ 92.693954] ? bpf_prog_test_run_raw_tp+0x2d0/0x2d0\\n [ 92.694639] ? __fget_light+0xa1/0x100\\n [ 92.695162] ? bpf_prog_inc+0x23/0x30\\n [ 92.695685] ? __sys_bpf+0xb40/0x2c80\\n [ 92.696324] ? bpf_link_get_from_fd+0x90/0x90\\n [ 92.697150] ? mark_held_locks+0x24/0x90\\n [ 92.698007] ? lockdep_hardirqs_on_prepare+0x124/0x220\\n [ 92.699045] ? finish_task_switch+0xe6/0x370\\n [ 92.700072] ? lockdep_hardirqs_on+0x79/0x100\\n [ 92.701233] ? finish_task_switch+0x11d/0x370\\n [ 92.702264] ? __switch_to+0x2c0/0x740\\n [ 92.703148] ? mark_held_locks+0x24/0x90\\n [ 92.704155] ? __x64_sys_bpf+0x45/0x50\\n [ 92.705146] ? do_syscall_64+0x35/0x80\\n [ 92.706953] ? entry_SYSCALL_64_after_hwframe+0x44/0xae\\n [...]\\n\\nTurns out that the program rejection from e411901c0b77 (\\\"bpf: allow for tailcalls\\nin BPF subprograms for x64 JIT\\\") is buggy since env-\u003eprog-\u003eaux-\u003etail_call_reachable\\nis never true. Commit ebf7d1f508a7 (\\\"bpf, x64: rework pro/epilogue and tailcall\\nhandling in JIT\\\") added a tracker into check_max_stack_depth() which propagates\\nthe tail_call_reachable condition throughout the subprograms. This info is then\\nassigned to the subprogram\u0027s \\n---truncated---\"}, {\"lang\": \"es\", \"value\": \"En el kernel de Linux, se resolvi\\u00f3 la siguiente vulnerabilidad: bpf: corrige el rechazo de tail_call_reachable para el int\\u00e9rprete cuando falla jit. Durante las pruebas de f263a81451c1 (\\\"bpf: rastrea correctamente los descriptores de inserci\\u00f3n del subprog y corrige el use after free\\\") bajo varias condiciones de fallo, por Por ejemplo, cuando jit_subprogs() falla e intenta limpiar el programa que se ejecutar\\u00e1 bajo el int\\u00e9rprete, nos encontramos con el siguiente congelamiento: [...] #127/8 tailcall_bpf2bpf_3:FAIL [...] [ 92.041251] ERROR: KASAN: slab fuera de los l\\u00edmites en ___bpf_prog_run+0x1b9d/0x2e20 [92.042408] Lectura de tama\\u00f1o 8 en la direcci\\u00f3n ffff88800da67f68 por tarea test_progs/682 [92.043707] [92.044030] CPU: 1 PID: 682 Comm: _progs Contaminado: GO 5.13. 0-53301-ge6c08cb33a30-dirty #87 [92.045542] Nombre del hardware: PC est\\u00e1ndar QEMU (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1 01/04/2014 [92.046785] Seguimiento de llamadas: [92.047171] ? __bpf_prog_run_args64+0xc0/0xc0 [92.047773]? __bpf_prog_run_args32+0x8b/0xb0 [92.048389]? __bpf_prog_run_args64+0xc0/0xc0 [92.049019]? ktime_get+0x117/0x130 [...] // \\u00bfunos cientos de l\\u00edneas [similares] m\\u00e1s [92.659025]? ktime_get+0x117/0x130 [92.659845]? __bpf_prog_run_args64+0xc0/0xc0 [92.660738]? __bpf_prog_run_args32+0x8b/0xb0 [92.661528]? __bpf_prog_run_args64+0xc0/0xc0 [92.662378]? print_usage_bug+0x50/0x50 [92.663221]? print_usage_bug+0x50/0x50 [92.664077]? bpf_ksym_find+0x9c/0xe0 [92.664887]? ktime_get+0x117/0x130 [92.665624]? kernel_text_address+0xf5/0x100 [92.666529]? __kernel_text_address+0xe/0x30 [ 92.667725] ? unwind_get_return_address+0x2f/0x50 [92.668854]? ___bpf_prog_run+0x15d4/0x2e20 [ 92.670185] ? ktime_get+0x117/0x130 [92.671130]? __bpf_prog_run_args64+0xc0/0xc0 [92.672020]? __bpf_prog_run_args32+0x8b/0xb0 [92.672860]? __bpf_prog_run_args64+0xc0/0xc0 [92.675159]? ktime_get+0x117/0x130 [92.677074]? lock_is_held_type+0xd5/0x130 [92.678662]? ___bpf_prog_run+0x15d4/0x2e20 [ 92.680046] ? ktime_get+0x117/0x130 [92.681285]? __bpf_prog_run32+0x6b/0x90 [92.682601]? __bpf_prog_run64+0x90/0x90 [92.683636]? lock_downgrade+0x370/0x370 [92.684647]? mark_held_locks+0x44/0x90 [92.685652]? ktime_get+0x117/0x130 [92.686752]? lockdep_hardirqs_on+0x79/0x100 [92.688004]? ktime_get+0x117/0x130 [92.688573]? __cant_migrate+0x2b/0x80 [ 92.689192] ? bpf_test_run+0x2f4/0x510 [92.689869]? bpf_test_timer_continue+0x1c0/0x1c0 [92.690856]? rcu_read_lock_bh_held+0x90/0x90 [92.691506]? __kasan_slab_alloc+0x61/0x80 [92.692128]? eth_type_trans+0x128/0x240 [92.692737]? __build_skb+0x46/0x50 [92.693252]? bpf_prog_test_run_skb+0x65e/0xc50 [92.693954]? bpf_prog_test_run_raw_tp+0x2d0/0x2d0 [92.694639]? __fget_light+0xa1/0x100 [ 92.695162] ? bpf_prog_inc+0x23/0x30 [92.695685]? __sys_bpf+0xb40/0x2c80 [92.696324]? bpf_link_get_from_fd+0x90/0x90 [92.697150]? mark_held_locks+0x24/0x90 [92.698007]? lockdep_hardirqs_on_prepare+0x124/0x220 [92.699045]? finish_task_switch+0xe6/0x370 [92.700072]? lockdep_hardirqs_on+0x79/0x100 [92.701233]? finish_task_switch+0x11d/0x370 [92.702264]? __switch_to+0x2c0/0x740 [ 92.703148] ? mark_held_locks+0x24/0x90 [92.704155]? __x64_sys_bpf+0x45/0x50 [92.705146]? do_syscall_64+0x35/0x80 [92.706953]? Entry_SYSCALL_64_after_hwframe+0x44/0xae [...] Resulta que el rechazo del programa de e411901c0b77 (\\\"bpf: permitir tailcalls en subprogramas BPF para x64 JIT\\\") tiene errores ya que env-\u0026gt;prog-\u0026gt;aux-\u0026gt;tail_call_reachable nunca es cierto. La confirmaci\\u00f3n ebf7d1f508a7 (\\\"bpf, x64: reelaboraci\\u00f3n de pro/ep\\u00edlogo y manejo de tailcall en JIT\\\") agreg\\u00f3 un rastreador en check_max_stack_ Depth() que propaga la condici\\u00f3n tail_call_reachable a trav\\u00e9s de los subprogramas. Esta informaci\\u00f3n luego se asigna al ---truncado--- del subprograma.\"}]",
"id": "CVE-2021-47300",
"lastModified": "2024-12-26T20:44:16.713",
"metrics": "{\"cvssMetricV31\": [{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"baseScore\": 5.5, \"baseSeverity\": \"MEDIUM\", \"attackVector\": \"LOCAL\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"LOW\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"NONE\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 1.8, \"impactScore\": 3.6}]}",
"published": "2024-05-21T15:15:17.820",
"references": "[{\"url\": \"https://git.kernel.org/stable/c/39f1735c8107ef43a53c4daf82f330d880488d8f\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/5dd0a6b8582ffbfa88351949d50eccd5b6694ade\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/cbb086074dab631ac43f8645cbac1d7b148e05c4\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/39f1735c8107ef43a53c4daf82f330d880488d8f\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/5dd0a6b8582ffbfa88351949d50eccd5b6694ade\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/cbb086074dab631ac43f8645cbac1d7b148e05c4\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}]",
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Analyzed",
"weaknesses": "[{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-125\"}]}]"
},
"nvd": "{\"cve\":{\"id\":\"CVE-2021-47300\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-05-21T15:15:17.820\",\"lastModified\":\"2026-06-17T04:17:08.393\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nbpf: Fix tail_call_reachable rejection for interpreter when jit failed\\n\\nDuring testing of f263a81451c1 (\\\"bpf: Track subprog poke descriptors correctly\\nand fix use-after-free\\\") under various failure conditions, for example, when\\njit_subprogs() fails and tries to clean up the program to be run under the\\ninterpreter, we ran into the following freeze:\\n\\n [...]\\n #127/8 tailcall_bpf2bpf_3:FAIL\\n [...]\\n [ 92.041251] BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0x1b9d/0x2e20\\n [ 92.042408] Read of size 8 at addr ffff88800da67f68 by task test_progs/682\\n [ 92.043707]\\n [ 92.044030] CPU: 1 PID: 682 Comm: test_progs Tainted: G O 5.13.0-53301-ge6c08cb33a30-dirty #87\\n [ 92.045542] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1 04/01/2014\\n [ 92.046785] Call Trace:\\n [ 92.047171] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.047773] ? __bpf_prog_run_args32+0x8b/0xb0\\n [ 92.048389] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.049019] ? ktime_get+0x117/0x130\\n [...] // few hundred [similar] lines more\\n [ 92.659025] ? ktime_get+0x117/0x130\\n [ 92.659845] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.660738] ? __bpf_prog_run_args32+0x8b/0xb0\\n [ 92.661528] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.662378] ? print_usage_bug+0x50/0x50\\n [ 92.663221] ? print_usage_bug+0x50/0x50\\n [ 92.664077] ? bpf_ksym_find+0x9c/0xe0\\n [ 92.664887] ? ktime_get+0x117/0x130\\n [ 92.665624] ? kernel_text_address+0xf5/0x100\\n [ 92.666529] ? __kernel_text_address+0xe/0x30\\n [ 92.667725] ? unwind_get_return_address+0x2f/0x50\\n [ 92.668854] ? ___bpf_prog_run+0x15d4/0x2e20\\n [ 92.670185] ? ktime_get+0x117/0x130\\n [ 92.671130] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.672020] ? __bpf_prog_run_args32+0x8b/0xb0\\n [ 92.672860] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.675159] ? ktime_get+0x117/0x130\\n [ 92.677074] ? lock_is_held_type+0xd5/0x130\\n [ 92.678662] ? ___bpf_prog_run+0x15d4/0x2e20\\n [ 92.680046] ? ktime_get+0x117/0x130\\n [ 92.681285] ? __bpf_prog_run32+0x6b/0x90\\n [ 92.682601] ? __bpf_prog_run64+0x90/0x90\\n [ 92.683636] ? lock_downgrade+0x370/0x370\\n [ 92.684647] ? mark_held_locks+0x44/0x90\\n [ 92.685652] ? ktime_get+0x117/0x130\\n [ 92.686752] ? lockdep_hardirqs_on+0x79/0x100\\n [ 92.688004] ? ktime_get+0x117/0x130\\n [ 92.688573] ? __cant_migrate+0x2b/0x80\\n [ 92.689192] ? bpf_test_run+0x2f4/0x510\\n [ 92.689869] ? bpf_test_timer_continue+0x1c0/0x1c0\\n [ 92.690856] ? rcu_read_lock_bh_held+0x90/0x90\\n [ 92.691506] ? __kasan_slab_alloc+0x61/0x80\\n [ 92.692128] ? eth_type_trans+0x128/0x240\\n [ 92.692737] ? __build_skb+0x46/0x50\\n [ 92.693252] ? bpf_prog_test_run_skb+0x65e/0xc50\\n [ 92.693954] ? bpf_prog_test_run_raw_tp+0x2d0/0x2d0\\n [ 92.694639] ? __fget_light+0xa1/0x100\\n [ 92.695162] ? bpf_prog_inc+0x23/0x30\\n [ 92.695685] ? __sys_bpf+0xb40/0x2c80\\n [ 92.696324] ? bpf_link_get_from_fd+0x90/0x90\\n [ 92.697150] ? mark_held_locks+0x24/0x90\\n [ 92.698007] ? lockdep_hardirqs_on_prepare+0x124/0x220\\n [ 92.699045] ? finish_task_switch+0xe6/0x370\\n [ 92.700072] ? lockdep_hardirqs_on+0x79/0x100\\n [ 92.701233] ? finish_task_switch+0x11d/0x370\\n [ 92.702264] ? __switch_to+0x2c0/0x740\\n [ 92.703148] ? mark_held_locks+0x24/0x90\\n [ 92.704155] ? __x64_sys_bpf+0x45/0x50\\n [ 92.705146] ? do_syscall_64+0x35/0x80\\n [ 92.706953] ? entry_SYSCALL_64_after_hwframe+0x44/0xae\\n [...]\\n\\nTurns out that the program rejection from e411901c0b77 (\\\"bpf: allow for tailcalls\\nin BPF subprograms for x64 JIT\\\") is buggy since env-\u003eprog-\u003eaux-\u003etail_call_reachable\\nis never true. Commit ebf7d1f508a7 (\\\"bpf, x64: rework pro/epilogue and tailcall\\nhandling in JIT\\\") added a tracker into check_max_stack_depth() which propagates\\nthe tail_call_reachable condition throughout the subprograms. This info is then\\nassigned to the subprogram\u0027s \\n---truncated---\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se resolvi\u00f3 la siguiente vulnerabilidad: bpf: corrige el rechazo de tail_call_reachable para el int\u00e9rprete cuando falla jit. Durante las pruebas de f263a81451c1 (\\\"bpf: rastrea correctamente los descriptores de inserci\u00f3n del subprog y corrige el use after free\\\") bajo varias condiciones de fallo, por Por ejemplo, cuando jit_subprogs() falla e intenta limpiar el programa que se ejecutar\u00e1 bajo el int\u00e9rprete, nos encontramos con el siguiente congelamiento: [...] #127/8 tailcall_bpf2bpf_3:FAIL [...] [ 92.041251] ERROR: KASAN: slab fuera de los l\u00edmites en ___bpf_prog_run+0x1b9d/0x2e20 [92.042408] Lectura de tama\u00f1o 8 en la direcci\u00f3n ffff88800da67f68 por tarea test_progs/682 [92.043707] [92.044030] CPU: 1 PID: 682 Comm: _progs Contaminado: GO 5.13. 0-53301-ge6c08cb33a30-dirty #87 [92.045542] Nombre del hardware: PC est\u00e1ndar QEMU (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1 01/04/2014 [92.046785] Seguimiento de llamadas: [92.047171] ? __bpf_prog_run_args64+0xc0/0xc0 [92.047773]? __bpf_prog_run_args32+0x8b/0xb0 [92.048389]? __bpf_prog_run_args64+0xc0/0xc0 [92.049019]? ktime_get+0x117/0x130 [...] // \u00bfunos cientos de l\u00edneas [similares] m\u00e1s [92.659025]? ktime_get+0x117/0x130 [92.659845]? __bpf_prog_run_args64+0xc0/0xc0 [92.660738]? __bpf_prog_run_args32+0x8b/0xb0 [92.661528]? __bpf_prog_run_args64+0xc0/0xc0 [92.662378]? print_usage_bug+0x50/0x50 [92.663221]? print_usage_bug+0x50/0x50 [92.664077]? bpf_ksym_find+0x9c/0xe0 [92.664887]? ktime_get+0x117/0x130 [92.665624]? kernel_text_address+0xf5/0x100 [92.666529]? __kernel_text_address+0xe/0x30 [ 92.667725] ? unwind_get_return_address+0x2f/0x50 [92.668854]? ___bpf_prog_run+0x15d4/0x2e20 [ 92.670185] ? ktime_get+0x117/0x130 [92.671130]? __bpf_prog_run_args64+0xc0/0xc0 [92.672020]? __bpf_prog_run_args32+0x8b/0xb0 [92.672860]? __bpf_prog_run_args64+0xc0/0xc0 [92.675159]? ktime_get+0x117/0x130 [92.677074]? lock_is_held_type+0xd5/0x130 [92.678662]? ___bpf_prog_run+0x15d4/0x2e20 [ 92.680046] ? ktime_get+0x117/0x130 [92.681285]? __bpf_prog_run32+0x6b/0x90 [92.682601]? __bpf_prog_run64+0x90/0x90 [92.683636]? lock_downgrade+0x370/0x370 [92.684647]? mark_held_locks+0x44/0x90 [92.685652]? ktime_get+0x117/0x130 [92.686752]? lockdep_hardirqs_on+0x79/0x100 [92.688004]? ktime_get+0x117/0x130 [92.688573]? __cant_migrate+0x2b/0x80 [ 92.689192] ? bpf_test_run+0x2f4/0x510 [92.689869]? bpf_test_timer_continue+0x1c0/0x1c0 [92.690856]? rcu_read_lock_bh_held+0x90/0x90 [92.691506]? __kasan_slab_alloc+0x61/0x80 [92.692128]? eth_type_trans+0x128/0x240 [92.692737]? __build_skb+0x46/0x50 [92.693252]? bpf_prog_test_run_skb+0x65e/0xc50 [92.693954]? bpf_prog_test_run_raw_tp+0x2d0/0x2d0 [92.694639]? __fget_light+0xa1/0x100 [ 92.695162] ? bpf_prog_inc+0x23/0x30 [92.695685]? __sys_bpf+0xb40/0x2c80 [92.696324]? bpf_link_get_from_fd+0x90/0x90 [92.697150]? mark_held_locks+0x24/0x90 [92.698007]? lockdep_hardirqs_on_prepare+0x124/0x220 [92.699045]? finish_task_switch+0xe6/0x370 [92.700072]? lockdep_hardirqs_on+0x79/0x100 [92.701233]? finish_task_switch+0x11d/0x370 [92.702264]? __switch_to+0x2c0/0x740 [ 92.703148] ? mark_held_locks+0x24/0x90 [92.704155]? __x64_sys_bpf+0x45/0x50 [92.705146]? do_syscall_64+0x35/0x80 [92.706953]? Entry_SYSCALL_64_after_hwframe+0x44/0xae [...] Resulta que el rechazo del programa de e411901c0b77 (\\\"bpf: permitir tailcalls en subprogramas BPF para x64 JIT\\\") tiene errores ya que env-\u0026gt;prog-\u0026gt;aux-\u0026gt;tail_call_reachable nunca es cierto. La confirmaci\u00f3n ebf7d1f508a7 (\\\"bpf, x64: reelaboraci\u00f3n de pro/ep\u00edlogo y manejo de tailcall en JIT\\\") agreg\u00f3 un rastreador en check_max_stack_ Depth() que propaga la condici\u00f3n tail_call_reachable a trav\u00e9s de los subprogramas. Esta informaci\u00f3n luego se asigna al ---truncado--- del subprograma.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"kernel/bpf/verifier.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"ebf7d1f508a73871acf3b2bfbfa1323a477acdb3\",\"lessThan\":\"39f1735c8107ef43a53c4daf82f330d880488d8f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ebf7d1f508a73871acf3b2bfbfa1323a477acdb3\",\"lessThan\":\"cbb086074dab631ac43f8645cbac1d7b148e05c4\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ebf7d1f508a73871acf3b2bfbfa1323a477acdb3\",\"lessThan\":\"5dd0a6b8582ffbfa88351949d50eccd5b6694ade\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"kernel/bpf/verifier.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.10\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.10\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.54\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.13.6\",\"lessThanOrEqual\":\"5.13.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.14\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2024-07-24T17:11:18.549517Z\",\"id\":\"CVE-2021-47300\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-125\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.10\",\"versionEndExcluding\":\"5.10.54\",\"matchCriteriaId\":\"C9B526EA-4055-43C8-9B30-7E7067C9E43C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.13.6\",\"matchCriteriaId\":\"512C22FC-1524-4E6F-9E62-4F4B7B6E0576\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.14:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"71268287-21A8-4488-AA4F-23C473153131\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.14:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"23B9E5C6-FAB5-4A02-9E39-27C8787B0991\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/39f1735c8107ef43a53c4daf82f330d880488d8f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/5dd0a6b8582ffbfa88351949d50eccd5b6694ade\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/cbb086074dab631ac43f8645cbac1d7b148e05c4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/39f1735c8107ef43a53c4daf82f330d880488d8f\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/5dd0a6b8582ffbfa88351949d50eccd5b6694ade\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/cbb086074dab631ac43f8645cbac1d7b148e05c4\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}",
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-02-02T10:48:27+00:00",
"cve": "CVE-2021-47300",
"id": "CVE-2021-47300",
"initial_release_date": "2021-01-01T00:00:00+00:00",
"product_status:known_affected": "44",
"product_status:known_not_affected": "154",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: bpf: Fix tail_call_reachable rejection for interpreter when jit failed",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-47300.json",
"version": "3"
},
"suse_vex": {
"aggregate_severity": "moderate",
"current_release_date": "2025-10-07T02:15:23Z",
"cve": "CVE-2021-47300",
"id": "CVE-2021-47300",
"initial_release_date": "2024-05-23T03:04:55Z",
"product_status:known_not_affected": "283",
"source": "SUSE CSAF VEX",
"status": "interim",
"title": "SUSE CVE CVE-2021-47300",
"url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2021-47300.json",
"version": "18"
},
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/39f1735c8107ef43a53c4daf82f330d880488d8f\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/cbb086074dab631ac43f8645cbac1d7b148e05c4\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/5dd0a6b8582ffbfa88351949d50eccd5b6694ade\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-04T05:32:08.540Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2021-47300\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-07-24T17:11:18.549517Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-23T19:13:52.358Z\"}}], \"cna\": {\"title\": \"bpf: Fix tail_call_reachable rejection for interpreter when jit failed\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"ebf7d1f508a73871acf3b2bfbfa1323a477acdb3\", \"lessThan\": \"39f1735c8107ef43a53c4daf82f330d880488d8f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"ebf7d1f508a73871acf3b2bfbfa1323a477acdb3\", \"lessThan\": \"cbb086074dab631ac43f8645cbac1d7b148e05c4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"ebf7d1f508a73871acf3b2bfbfa1323a477acdb3\", \"lessThan\": \"5dd0a6b8582ffbfa88351949d50eccd5b6694ade\", \"versionType\": \"git\"}], \"programFiles\": [\"kernel/bpf/verifier.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.10\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.10\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.10.54\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.13.6\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.13.*\"}, {\"status\": \"unaffected\", \"version\": \"5.14\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"kernel/bpf/verifier.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/39f1735c8107ef43a53c4daf82f330d880488d8f\"}, {\"url\": \"https://git.kernel.org/stable/c/cbb086074dab631ac43f8645cbac1d7b148e05c4\"}, {\"url\": \"https://git.kernel.org/stable/c/5dd0a6b8582ffbfa88351949d50eccd5b6694ade\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nbpf: Fix tail_call_reachable rejection for interpreter when jit failed\\n\\nDuring testing of f263a81451c1 (\\\"bpf: Track subprog poke descriptors correctly\\nand fix use-after-free\\\") under various failure conditions, for example, when\\njit_subprogs() fails and tries to clean up the program to be run under the\\ninterpreter, we ran into the following freeze:\\n\\n [...]\\n #127/8 tailcall_bpf2bpf_3:FAIL\\n [...]\\n [ 92.041251] BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0x1b9d/0x2e20\\n [ 92.042408] Read of size 8 at addr ffff88800da67f68 by task test_progs/682\\n [ 92.043707]\\n [ 92.044030] CPU: 1 PID: 682 Comm: test_progs Tainted: G O 5.13.0-53301-ge6c08cb33a30-dirty #87\\n [ 92.045542] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1 04/01/2014\\n [ 92.046785] Call Trace:\\n [ 92.047171] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.047773] ? __bpf_prog_run_args32+0x8b/0xb0\\n [ 92.048389] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.049019] ? ktime_get+0x117/0x130\\n [...] // few hundred [similar] lines more\\n [ 92.659025] ? ktime_get+0x117/0x130\\n [ 92.659845] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.660738] ? __bpf_prog_run_args32+0x8b/0xb0\\n [ 92.661528] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.662378] ? print_usage_bug+0x50/0x50\\n [ 92.663221] ? print_usage_bug+0x50/0x50\\n [ 92.664077] ? bpf_ksym_find+0x9c/0xe0\\n [ 92.664887] ? ktime_get+0x117/0x130\\n [ 92.665624] ? kernel_text_address+0xf5/0x100\\n [ 92.666529] ? __kernel_text_address+0xe/0x30\\n [ 92.667725] ? unwind_get_return_address+0x2f/0x50\\n [ 92.668854] ? ___bpf_prog_run+0x15d4/0x2e20\\n [ 92.670185] ? ktime_get+0x117/0x130\\n [ 92.671130] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.672020] ? __bpf_prog_run_args32+0x8b/0xb0\\n [ 92.672860] ? __bpf_prog_run_args64+0xc0/0xc0\\n [ 92.675159] ? ktime_get+0x117/0x130\\n [ 92.677074] ? lock_is_held_type+0xd5/0x130\\n [ 92.678662] ? ___bpf_prog_run+0x15d4/0x2e20\\n [ 92.680046] ? ktime_get+0x117/0x130\\n [ 92.681285] ? __bpf_prog_run32+0x6b/0x90\\n [ 92.682601] ? __bpf_prog_run64+0x90/0x90\\n [ 92.683636] ? lock_downgrade+0x370/0x370\\n [ 92.684647] ? mark_held_locks+0x44/0x90\\n [ 92.685652] ? ktime_get+0x117/0x130\\n [ 92.686752] ? lockdep_hardirqs_on+0x79/0x100\\n [ 92.688004] ? ktime_get+0x117/0x130\\n [ 92.688573] ? __cant_migrate+0x2b/0x80\\n [ 92.689192] ? bpf_test_run+0x2f4/0x510\\n [ 92.689869] ? bpf_test_timer_continue+0x1c0/0x1c0\\n [ 92.690856] ? rcu_read_lock_bh_held+0x90/0x90\\n [ 92.691506] ? __kasan_slab_alloc+0x61/0x80\\n [ 92.692128] ? eth_type_trans+0x128/0x240\\n [ 92.692737] ? __build_skb+0x46/0x50\\n [ 92.693252] ? bpf_prog_test_run_skb+0x65e/0xc50\\n [ 92.693954] ? bpf_prog_test_run_raw_tp+0x2d0/0x2d0\\n [ 92.694639] ? __fget_light+0xa1/0x100\\n [ 92.695162] ? bpf_prog_inc+0x23/0x30\\n [ 92.695685] ? __sys_bpf+0xb40/0x2c80\\n [ 92.696324] ? bpf_link_get_from_fd+0x90/0x90\\n [ 92.697150] ? mark_held_locks+0x24/0x90\\n [ 92.698007] ? lockdep_hardirqs_on_prepare+0x124/0x220\\n [ 92.699045] ? finish_task_switch+0xe6/0x370\\n [ 92.700072] ? lockdep_hardirqs_on+0x79/0x100\\n [ 92.701233] ? finish_task_switch+0x11d/0x370\\n [ 92.702264] ? __switch_to+0x2c0/0x740\\n [ 92.703148] ? mark_held_locks+0x24/0x90\\n [ 92.704155] ? __x64_sys_bpf+0x45/0x50\\n [ 92.705146] ? do_syscall_64+0x35/0x80\\n [ 92.706953] ? entry_SYSCALL_64_after_hwframe+0x44/0xae\\n [...]\\n\\nTurns out that the program rejection from e411901c0b77 (\\\"bpf: allow for tailcalls\\nin BPF subprograms for x64 JIT\\\") is buggy since env-\u003eprog-\u003eaux-\u003etail_call_reachable\\nis never true. Commit ebf7d1f508a7 (\\\"bpf, x64: rework pro/epilogue and tailcall\\nhandling in JIT\\\") added a tracker into check_max_stack_depth() which propagates\\nthe tail_call_reachable condition throughout the subprograms. This info is then\\nassigned to the subprogram\u0027s \\n---truncated---\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.54\", \"versionStartIncluding\": \"5.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.13.6\", \"versionStartIncluding\": \"5.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.14\", \"versionStartIncluding\": \"5.10\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-05-11T13:51:49.342Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2021-47300\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-05-11T13:51:49.342Z\", \"dateReserved\": \"2024-05-21T13:27:52.132Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-21T14:35:22.040Z\", \"assignerShortName\": \"Linux\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
Loading…
Loading…