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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-09-23 · Modified: 2025-04-21
- Aliases: UBUNTU-CVE-2022-2785, DEBIAN-CVE-2022-2785, CGA-273c-xx7m-329g, CGA-28fh-wrf9-x4r7, CGA-2qm3-2f3c-8gc9, CGA-38h8-pmw5-pqx8, CGA-3hf4-c5fq-8m2w, CGA-3m7h-x4xg-7956, CGA-3w5g-f2r5-wfph, CGA-44f2-m4f6-8p5x, CGA-45hg-q77j-xrh6, CGA-45hh-x7hv-hqrh, CGA-49j7-mjqp-79gc, CGA-4j4w-vrmp-xjfr, CGA-4mxw-m3vv-vq65, CGA-54mr-5x23-mvhr, CGA-5623-jcr5-xc4p, CGA-5m35-vwpc-5wjq, CGA-5x6f-qvgc-f862, CGA-63vp-wvwq-3pw5, CGA-6532-vm67-97c5, CGA-67ch-4xc7-pgmj, CGA-68xj-v24f-cq6v, CGA-6c7v-7wx3-4p6r, CGA-6jmq-j362-4qcc, CGA-6p94-gqxh-gmmv, CGA-6v24-4xm4-3vr8, CGA-6vh9-xv7v-8jc7, CGA-6xmr-4393-449r, CGA-7gm4-rp64-rppg, CGA-7gq9-2j8c-rj4q, CGA-8276-2343-wgx7, CGA-84jf-q77x-g5cf, CGA-86xw-72f2-rh5h, CGA-8p4c-62p9-vffw, CGA-8p8q-c749-7232, CGA-8qc3-68cq-cg3r, CGA-95xj-rvh6-8325, CGA-96f8-g9fm-cm82, CGA-9gwm-46jx-m7w2, CGA-9pfj-6hf4-cm97, CGA-9rmr-mw2w-r59w, CGA-9v7m-f5qr-fxgp, CGA-9xr7-mjvg-32rm, CGA-c5g8-3gc9-fr9h, CGA-c96h-f7p2-5qq5, CGA-cg8g-9p28-3jxx, CGA-cjcx-q993-vmgh, CGA-cvc5-77hm-gc86, CGA-f979-qjhg-x4gh, CGA-fh54-rqh4-89mv, CGA-fh9q-fqr7-vp72, CGA-fmr2-459f-h5h4, CGA-fp39-j73x-p6hv, CGA-fp9x-8pj5-26mr, CGA-fv67-23gv-r4pf, CGA-g55j-h4h9-6f7c, CGA-g5g5-vvqj-7f2c, CGA-g7q6-hpr6-8c85, CGA-g9w7-xhqw-222m, CGA-ghh4-wqvv-6879, CGA-ghjh-jqmq-vqp2, CGA-gww9-h2cr-6g39, CGA-h2mj-grmm-r96h, CGA-h2qf-gcvg-hjf9, CGA-h683-x4q9-qm58, CGA-hh55-x88h-wjjq, CGA-hh9j-m8pf-g47g, CGA-hjjc-fr26-xxpj, CGA-hr79-2cq4-cmcm, CGA-hxh7-m3pw-rpg7, CGA-jc39-w9f5-gqmp, CGA-jcx4-4f2w-wmp8, CGA-jp2h-6vwq-cjhm, CGA-jrcp-53gq-fc88, CGA-jwc3-2rxg-7v3g, CGA-m5wc-9x9q-9cv8, CGA-m66f-6pxf-7g72, CGA-m7g3-95f5-wm3x, CGA-m997-w256-22gg, CGA-mfmg-gppf-6f3c, CGA-mjg6-jfcp-53x3, CGA-mr94-qx4h-jw3h, CGA-mrpx-w486-7q4m, CGA-mvmj-jx83-6hhh, CGA-mwqm-5q6q-j95m, CGA-mxq3-r694-8ccx, CGA-p6r9-3252-mmg4, CGA-p9vw-85w4-gx39, CGA-pfmx-43vc-f4w7, CGA-pfrp-8q5g-8pgc, CGA-pgv2-9qwq-g7wx, CGA-pr3g-v6xv-3mm7, CGA-pv9f-mpqf-87gh, CGA-q33r-25mh-vmqc, CGA-q3gc-j865-87gg, CGA-q597-wmg3-4f7g, CGA-q737-hv66-m65m, CGA-qcjp-g6qh-5839, CGA-qhgc-9825-m69g, CGA-qv3r-rqw6-4h9w, CGA-r3mh-37xf-w325, CGA-r8hc-5gj5-vff9, CGA-rggm-f526-xr58, CGA-rhhh-rxm5-49rg, CGA-rx7c-chxq-6r94, CGA-v327-q549-83m6, CGA-v56f-47pm-cv62, CGA-v58g-v88w-752x, CGA-vcj5-vffq-6f6m, CGA-w2rv-428g-8qg9, CGA-w397-rm4v-rfgr, CGA-w3v5-2c8p-9j78, CGA-w96w-9x8f-xjh6, CGA-wmq4-pp6p-fw39, CGA-wr5c-63p8-cxhw, CGA-wrr8-2wp4-vmpq, CGA-wwp9-92vc-9cf4
- Record: https://cvemate.com/vulnerability/CVE-2022-2785 · JSON: https://cvemate.com/vulnerability/CVE-2022-2785/json

## Description

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

## Signals

- CVSS: 6.7 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.265%, percentile 19.557%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 93)

- chainguard hyperv-daemons-6.18 (Chainguard): All versions (No fix recorded)
- chainguard hyperv-daemons-generic (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.12 (Chainguard): All versions (No fix recorded) \| \< 6.12.65-r0
- chainguard linux-aws-6.12-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.12-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.12-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.12-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18 (Chainguard): \< 6.18.10-r0 \| All versions (No fix recorded)
- chainguard linux-aws-6.18-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-generic (Chainguard): All versions (No fix recorded) \| \< 6.18.5-r0
- chainguard linux-aws-generic-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-generic-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-generic-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-generic-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.12 (Chainguard): \< 6.12.65-r1 \| All versions (No fix recorded)
- chainguard linux-azure-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-boot-installed (Chainguard): All versions (No fix recorded)

## References

- <https://git.kernel.org/bpf/bpf/c/86f44fcec22c>
- <https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei%40google.com/T/#t>
- <https://ubuntu.com/security/CVE-2022-2785>
- <https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei@google.com/T/#t>
- <https://www.cve.org/CVERecord?id=CVE-2022-2785>
- <https://security-tracker.debian.org/tracker/CVE-2022-2785>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-2785>

---

Data as of 2026-12-05T14:22:52.295Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
