CVE-2022-2785

published 23 Sep 2022 · updated 21 Apr 2025

Arbitrary Memory read in BPF Linux Kernel

6.7MediumCVSS 6.7EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel af2ac3e13e45 and Kernel b1d18a7574d0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=5.14 <af2ac3e13e45, >=5.18 <b1d18a7574d0af2ac3e13e45, b1d18a7574d0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-2785 severity on Zeptric[![CVE-2022-2785](https://zeptric.io/badge/cve/CVE-2022-2785.svg)](https://zeptric.io/cve/CVE-2022-2785)