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

Medium 6.7 Published Updated

An attacker with CAP_BPF privileges can read arbitrary system memory due to unverified pointer constants in the Linux Kernel BPF subsystem.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-2785?

CVE-2022-2785 is a medium-severity vulnerability in Linux kernel, published on 23 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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

Weakness: CWE-125

Which versions are affected by CVE-2022-2785?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-2785?

Apply the vendor's patch.

Is CVE-2022-2785 being exploited?

There is no known exploitation of CVE-2022-2785 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-11015, AZL-34860, DEBIAN-CVE-2022-2785, GHSA-xhpr-rjf3-gg6p, UBUNTU-CVE-2022-2785.

Is CVE-2022-2785 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free