{"api_version":"1","generated_at":"2026-07-23T20:19:41+00:00","cve":"CVE-2022-2785","urls":{"html":"https://cve.report/CVE-2022-2785","api":"https://cve.report/api/cve/CVE-2022-2785.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-2785","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-2785"},"summary":{"title":"CVE-2022-2785","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","state":"PUBLIC","assigner":"security@google.com","published_at":"2022-09-23 11:15:00","updated_at":"2023-11-07 03:46:00"},"problem_types":["CWE-125"],"metrics":[],"references":[{"url":"https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei@google.com/T/#t","name":"N/A","refsource":"CONFIRM","tags":[],"title":"[PATCH bpf 1/2] bpf: Restrict bpf_sys_bpf to CAP_PERFMON","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://git.kernel.org/bpf/bpf/c/86f44fcec22c","name":"N/A","refsource":"CONFIRM","tags":[],"title":"kernel/git/bpf/bpf.git - BPF kernel tree","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei%40google.com/T/#t","name":"https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei%40google.com/T/#t","refsource":"","tags":[],"title":"[PATCH bpf 1/2] bpf: Restrict bpf_sys_bpf to CAP_PERFMON","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-2785","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2785","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"2785","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-2785","qid":"184583","title":"Debian Security Update for linux (CVE-2022-2785)"},{"cve":"CVE-2022-2785","qid":"904048","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (11022)"},{"cve":"CVE-2022-2785","qid":"904052","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (11015)"},{"cve":"CVE-2022-2785","qid":"904191","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (11022-1)"},{"cve":"CVE-2022-2785","qid":"904723","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (11015-1)"},{"cve":"CVE-2022-2785","qid":"906236","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (11022-2)"},{"cve":"CVE-2022-2785","qid":"906489","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (11015-2)"}]},"source_records":{"cve_program":{"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":[{"refsource":"MISC","url":"https://git.kernel.org/bpf/bpf/c/86f44fcec22c","name":"https://git.kernel.org/bpf/bpf/c/86f44fcec22c"},{"refsource":"MISC","url":"https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei@google.com/T/#t","name":"https://lore.kernel.org/bpf/20220816205517.682470-1-zhuyifei@google.com/T/#t"}]},"source":{"discovery":"INTERNAL"}},"nvd":{"publishedDate":"2022-09-23 11:15:00","lastModifiedDate":"2023-11-07 03:46:00","problem_types":["CWE-125"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"2022-08-10","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}