# CVE-2022-2785: Arbitrary Memory read in BPF Linux Kernel

- Severity: Medium 6.7 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 19% of CVEs (2026-12-02)
- Published: 2022-09-23T11:10:08.764Z
- Modified: 2026-06-17T04:42:34.670Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Google

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

(As written by CVE List.)

## Affected

- Linux Kernel Kernel: from 5.14 before af2ac3e13e45; from 5.18 before b1d18a7574d0
- linux linux_kernel: before 5.19.4

## Every score

- Google: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://git.kernel.org/bpf/bpf/c/86f44fcec22c> (patch, vendor-advisory)
- <https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei%40google.com/T/#t> (vendor-advisory)

## Sources

- CVE List: [CVE-2022-2785](https://www.cve.org/CVERecord?id=CVE-2022-2785), CVE Terms of Use, modified 2025-04-21
- NVD: [CVE-2022-2785](https://nvd.nist.gov/vuln/detail/CVE-2022-2785), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-2785 · Whole record: https://cve.day/CVE-2022-2785.json · Rebuilt by cve.day 2026-11-25T22:58:15.223Z
