What’s Vulnerable › Vulnerabilities
CVE-2022-2785: Arbitrary Memory read in BPF Linux Kernel
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-09-23 · updated 2026-06-17
- Weakness: CWE-125
Description
There exists an arbitrary memory read within the Linux Kernel BPF - Constants provided to fill pointers in structs passed in to bpf_sys_bpf are not verified and can point anywhere, including memory not owned by BPF. An attacker with CAP_BPF can arbitrarily read memory from anywhere on the system. We recommend upgrading past commit 86f44fcec22c
Affected products
- Linux kernel: before 5.19.4 — fixed in 5.19.4
How to fix
Upgrade to a fixed version: Linux kernel 5.19.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/bpf/bpf/c/86f44fcec22c
- https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei%40google.com/T/#t
- https://git.kernel.org/bpf/bpf/c/86f44fcec22c
- https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei%40google.com/T/#t
Get alerted when CVE-2022-2785 or the next vulnerability affects your stack