Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-47300

published high CVSS 3.1 · 7.8

bpf: Fix tail_call_reachable rejection for interpreter when jit failed

Published
21 May 2024, 14:35:22 UTC
Updated
05 Aug 2026, 08:47:09 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxebf7d1f508a73871acf3b2bfbfa1323a477acdb3 to < 39f1735c8107ef43a53c4daf82f330d880488d8f · ebf7d1f508a73871acf3b2bfbfa1323a477acdb3 to < cbb086074dab631ac43f8645cbac1d7b148e05c4 · ebf7d1f508a73871acf3b2bfbfa1323a477acdb3 to < 5dd0a6b8582ffbfa88351949d50eccd5b6694ade · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.10 (affected) · 0 to < 5.10 (unaffected · semver) · 5.10.54 through 5.10.* (unaffected · semver) · 5.13.6 through 5.13.* (unaffected · semver) · 5.14 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2022-004 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-004
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-004
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.10-2022-004
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-004

Description

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---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The bug is reached only via the local bpf() syscall (BPF_PROG_LOAD → verifier fixup_call_args, then program execution such as BPF_PROG_TEST_RUN), not by parsing remote network input; BPF is scored Local per kernel CNA guidance. AC:L - A CAP_BPF attacker fully controls the bpf2bpf+tailcall program and can force jit_subprogs() failure (e.g., exhausting executable/JIT allocations so bpf_int_jit_compile/bpf_prog_alloc fails), which deterministically falls through to the broken interpreter rejection path with no race required. PR:L - bpf-to-bpf calls require bpf_capable() (CAP_BPF/CAP_SYS_ADMIN in init_user_ns); per kernel CNA BPF scoring precedent CAP_BPF-gated loading is Low privilege, not full root/admin. UI:N - The attacker loads the crafted program and triggers execution themselves (e.g., BPF_PROG_TEST_RUN or an attach point they control); no separate victim action is required. S:U - Impact stays within the host kernel’s BPF/interpreter authority (local memory-safety failure and DoS/privilege escalation); it does not cross a VM, IOMMU, or other distinct security boundary. C:H - The fixed failure path produced a KASAN slab-out-of-bounds read in ___bpf_prog_run; per guidance an OOB read is Confidentiality High unless strictly bounded to a few bytes. I:H - Unsupported interpreter execution of bpf2bpf combined with tail calls causes unbounded recursive interpreter frames and kernel stack overflow/memory corruption, which under the overestimate rule is treated as Integrity High (exploitable corruption/control-flow impact). A:H - The commit documents a kernel freeze with hundreds of recursive ___bpf_prog_run frames and a KASAN-detected crash path, which is Availability High (hang/oops/panic).

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ebf7d1f508a73871acf3b2bfbfa1323a477acdb3 to < 39f1735c8107ef43a53c4daf82f330d880488d8f (affected · git)ebf7d1f508a73871acf3b2bfbfa1323a477acdb3 to < cbb086074dab631ac43f8645cbac1d7b148e05c4 (affected · git)ebf7d1f508a73871acf3b2bfbfa1323a477acdb3 to < 5dd0a6b8582ffbfa88351949d50eccd5b6694ade (affected · git)Default: unaffected Linux · cna
Linux Linux 5.10 (affected)0 to < 5.10 (unaffected · semver)5.10.54 through 5.10.* (unaffected · semver)5.13.6 through 5.13.* (unaffected · semver)5.14 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

3

Linux · cna

bpf: Fix tail_call_reachable rejection for interpreter when jit failed

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
4469a4a88d9ba2c4f56ca5446aa7974ff154e9895b826ce99b9f3ad7c2219156
Ingested
23 Sep 2026, 07:57:11 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected