{"id":"CVE-2022-2785","state":"PUBLISHED","title":"Arbitrary Memory read in BPF Linux Kernel","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","publishedAt":"2022-09-23T11:10:08.764Z","updatedAt":"2025-04-21T13:49:09.750Z","severity":{"score":6.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","source":"Google"},"assigner":"Google","products":["Linux Kernel Kernel"],"affected":[{"vendor":"Linux Kernel","product":"Kernel","versions":[{"version":"5.14","status":"affected","lessThan":"af2ac3e13e45","versionType":"custom"},{"version":"5.18","status":"affected","lessThan":"b1d18a7574d0","versionType":"custom"}]}],"references":["https://git.kernel.org/bpf/bpf/c/86f44fcec22c","https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei%40google.com/T/#t"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T19:50:01.354Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/2xxx/CVE-2022-2785.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-2785","state":"PUBLISHED","datePublished":"2022-09-23T11:10:08.764Z","dateUpdated":"2025-04-21T13:49:09.750Z","assignerShortName":"Google","assignerOrgId":"14ed7db2-1595-443d-9d34-6215bf890778","dateReserved":"2022-08-11T00:00:00.000Z"},"containers":{"cna":{"title":"Arbitrary Memory read in BPF Linux Kernel","descriptions":[{"lang":"en","value":"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":[{"vendor":"Linux Kernel","product":"Kernel","versions":[{"version":"5.14","status":"affected","lessThan":"af2ac3e13e45","versionType":"custom"},{"version":"5.18","status":"affected","lessThan":"b1d18a7574d0","versionType":"custom"}]}],"references":[{"url":"https://git.kernel.org/bpf/bpf/c/86f44fcec22c","tags":["x_refsource_MISC"]},{"url":"https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei%40google.com/T/#t","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.7,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Google","dateUpdated":"2022-09-23T11:10:08.000Z","orgId":"14ed7db2-1595-443d-9d34-6215bf890778"},"datePublic":"2022-08-07T00:00:00.000Z","source":{"discovery":"INTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@google.com","DATE_PUBLIC":"2022-08-07T22:00:00.000Z","ID":"CVE-2022-2785","STATE":"PUBLIC","TITLE":"Arbitrary Memory read in BPF Linux Kernel"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Kernel","version":{"version_data":[{"version_affected":"<","version_name":"5.14","version_value":"af2ac3e13e45"},{"version_affected":"<","version_name":"5.18","version_value":"b1d18a7574d0"}]}}]},"vendor_name":"Linux Kernel"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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"}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.7,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-125 Out-of-bounds Read"}]}]},"references":{"reference_data":[{"name":"https://git.kernel.org/bpf/bpf/c/86f44fcec22c","refsource":"MISC","url":"https://git.kernel.org/bpf/bpf/c/86f44fcec22c"},{"name":"https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei@google.com/T/#t","refsource":"MISC","url":"https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei@google.com/T/#t"}]},"source":{"discovery":"INTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/bpf/bpf/c/86f44fcec22c","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei%40google.com/T/#t","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T00:46:04.562Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-21T13:36:55.797146Z","id":"CVE-2022-2785","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-21T13:49:09.750Z"}}]}}}