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

published high CVSS 3.1 · 7.8

bpf: Fix reference state management for synchronous callbacks

Published
09 Dec 2025, 00:00:24 UTC
Updated
15 Oct 2026, 21:41:22 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux69c087ba6225b574afb6e505b72cb75242a3d844 to < 4ed5155043c97ac8912bcf67331df87c833fb067 · 69c087ba6225b574afb6e505b72cb75242a3d844 to < caa176c0953cdfd5ce500fb517ce1ea924a8bc4c · 69c087ba6225b574afb6e505b72cb75242a3d844 to < aed931fd3b6e28f19cc140ff90aa5046ee2aa4e1 · 69c087ba6225b574afb6e505b72cb75242a3d844 to < 9d9d00ac29d0ef7ce426964de46fa6b380357d0a · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.13 (affected) · 0 to < 5.13 (unaffected · semver) · 5.15.75 through 5.15.* (unaffected · semver) · 5.19.17 through 5.19.* (unaffected · semver) · 6.0.3 through 6.0.* (unaffected · semver) · 6.1 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.15-2025-090 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Red Hat Enterprise Linux RHEL-9 bpftoolaarch64 Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 bpftoolppc64le Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 bpftools390x Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat Enterprise Linux RHEL-9 bpftoolx86_64 Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfoaarch64 Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfoppc64le Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfos390x Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfox86_64 Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernelaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernelppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernels390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernelsrc Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernelx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64kaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-coreaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-debugaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-coreaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-debuginfoaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-develaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-devel-matchedaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modulesaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modules-coreaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modules-extraaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-debuginfoaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-develaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-devel-matchedaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-modulesaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-modules-coreaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-64k-modules-extraaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-abi-stablelistsnoarch Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-coreaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-coreppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-cores390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-corex86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debugaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debugppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debugs390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debugx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-coreaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-coreppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-cores390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-corex86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfoaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfoppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfos390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfox86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-develaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-develppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-devels390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-develx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matcheds390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-moduless390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-coreaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-coreppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-cores390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-corex86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extraaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extrappc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extras390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extrax86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debug-uki-virtx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debuginfoaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debuginfoppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debuginfos390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debuginfox86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-aarch64aarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-ppc64leppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-s390xs390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-x86_64x86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-develaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-develppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-devels390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-develx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-devel-matchedaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-devel-matchedppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-devel-matcheds390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-devel-matchedx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-docnoarch Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modulesaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modulesppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-moduless390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modulesx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modules-coreaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modules-coreppc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modules-cores390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modules-corex86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modules-extraaarch64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modules-extrappc64le Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modules-extras390x Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-modules-extrax86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-rtx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-rt-corex86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-rt-debugx86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 kernel-rt-debug-corex86_64 Advisory build 5.14.0-362.8.1.el9_3 RHSA-2023:6583

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix reference state management for synchronous callbacks Currently, verifier verifies callback functions (sync and async) as if they will be executed once, (i.e. it explores execution state as if the function was being called once). The next insn to explore is set to start of subprog and the exit from nested frame is handled using curframe > 0 and prepare_func_exit. In case of async callback it uses a customized variant of push_stack simulating a kind of branch to set up custom state and execution context for the async callback. While this approach is simple and works when callback really will be executed only once, it is unsafe for all of our current helpers which are for_each style, i.e. they execute the callback multiple times. A callback releasing acquired references of the caller may do so multiple times, but currently verifier sees it as one call inside the frame, which then returns to caller. Hence, it thinks it released some reference that the cb e.g. got access through callback_ctx (register filled inside cb from spilled typed register on stack). Similarly, it may see that an acquire call is unpaired inside the callback, so the caller will copy the reference state of callback and then will have to release the register with new ref_obj_ids. But again, the callback may execute multiple times, but the verifier will only account for acquired references for a single symbolic execution of the callback, which will cause leaks. Note that for async callback case, things are different. While currently we have bpf_timer_set_callback which only executes it once, even for multiple executions it would be safe, as reference state is NULL and check_reference_leak would force program to release state before BPF_EXIT. The state is also unaffected by analysis for the caller frame. Hence async callback is safe. Since we want the reference state to be accessible, e.g. for pointers loaded from stack through callback_ctx's PTR_TO_STACK, we still have to copy caller's reference_state to callback's bpf_func_state, but we enforce that whatever references it adds to that reference_state has been released before it hits BPF_EXIT. This requires introducing a new callback_ref member in the reference state to distinguish between caller vs callee references. Hence, check_reference_leak now errors out if it sees we are in callback_fn and we have not released callback_ref refs. Since there can be multiple nested callbacks, like frame 0 -> cb1 -> cb2 etc. we need to also distinguish between whether this particular ref belongs to this callback frame or parent, and only error for our own, so we store state->frameno (which is always non-zero for callbacks). In short, callbacks can read parent reference_state, but cannot mutate it, to be able to use pointers acquired by the caller. They must only undo their changes (by releasing their own acquired_refs before BPF_EXIT) on top of caller reference_state before returning (at which point the caller and callback state will match anyway, so no need to copy it back to caller).

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

2

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 in the BPF verifier’s handling of synchronous callbacks and is reached by loading a crafted eBPF program via the local bpf() syscall (then running/attaching it). Per kernel guidance, BPF verifier bugs are Local, not network-reachable. AC:L - The attacker fully controls the program, map contents, and callback logic; with a multi-element map (e.g. 16 entries), the callback deterministically releases the same acquired reference multiple times. No race or victim-dependent state is required. PR:L - Exercising bpf_for_each_map_elem/bpf_loop with referenced objects needs CAP_BPF (or equivalent BPF load rights), which is commonly available to non-root local users or delegated service accounts without full root. Consistent with other BPF verifier scores, the highest reasonable deployment is PR:L. UI:N - The attacker loads and executes the malicious BPF program themselves (e.g. via BPF_PROG_TEST_RUN or an attach point they control); no separate victim action is required. S:U - Impact is kernel memory corruption and privilege escalation within the same OS security authority. This is standard local kernel compromise, not a VM/IOMMU boundary escape. C:H - The verifier bug allows a callback to under-release-track a caller’s acquired reference so runtime multi-iteration release causes refcount underflow and UAF of sockets/kfunc objects, enabling arbitrary kernel memory disclosure. I:H - The same UAF of refcounted kernel objects is exploitable for heap reuse and arbitrary write / control-flow hijacking, as confirmed by the underflow_prog regression case that would release once per map element. A:H - Refcount underflow and use-after-free of kernel objects can oops/panic the kernel even without a full exploit, and the attacker can trigger the program repeatedly.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 69c087ba6225b574afb6e505b72cb75242a3d844 to < 4ed5155043c97ac8912bcf67331df87c833fb067 (affected · git)69c087ba6225b574afb6e505b72cb75242a3d844 to < caa176c0953cdfd5ce500fb517ce1ea924a8bc4c (affected · git)69c087ba6225b574afb6e505b72cb75242a3d844 to < aed931fd3b6e28f19cc140ff90aa5046ee2aa4e1 (affected · git)69c087ba6225b574afb6e505b72cb75242a3d844 to < 9d9d00ac29d0ef7ce426964de46fa6b380357d0a (affected · git)Default: unaffected Linux · cna
Linux Linux 5.13 (affected)0 to < 5.13 (unaffected · semver)5.15.75 through 5.15.* (unaffected · semver)5.19.17 through 5.19.* (unaffected · semver)6.0.3 through 6.0.* (unaffected · semver)6.1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

2

Linux · cna

bpf: Fix reference state management for synchronous callbacks

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
6c4f31231e41c42bf92201f6423523413df68dc32d49eebbad6f9ae5cd72133e
Ingested
15 Oct 2026, 23:26:24 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