CVE-2022-2785

Arbitrary Memory read in BPF Linux Kernel

State
Published
Severity
6.7 Medium
Published
Sep 23, 2022
Updated
Apr 21, 2025
Reserved
Aug 11, 2022

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.16.7 MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HGoogle

Weaknesses

Affected Products

ProductVersions
KernelLinux Kernel
  • 5.14 to before af2ac3e13e45Affected
  • 5.18 to before b1d18a7574d0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.