CVE-2022-48929
Linux Kernel BPF Out-of-Bounds Access Vulnerability
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix crash due to out of bounds access into reg2btf_ids. When commit e6ac2450d6de ("bpf: Support bpf program calling kernel function") added kfunc support, it defined reg2btf_ids as a cheap way to translate the verifier reg type to the appropriate btf_vmlinux BTF ID, however commit c25b2ae13603 ("bpf: Replace PTR_TO_XXX_OR_NULL with PTR_TO_XXX | PTR_MAYBE_NULL") moved the __BPF_REG_TYPE_MAX from the last member of bpf_reg_type enum to after the base register types, and defined other variants using type flag composition. However, now, the direct usage of reg->type to index into reg2btf_ids may no longer fall into __BPF_REG_TYPE_MAX range, and hence lead to out of bounds access and kernel crash on dereference of bad pointer.
INFO
Published Date :
Aug. 22, 2024, 4:15 a.m.
Last Modified :
Aug. 23, 2024, 2 a.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-48929
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-48929
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-48929
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Aug. 23, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://git.kernel.org/stable/c/45ce4b4f9009102cd9f581196d480a59208690c1 No Types Assigned https://git.kernel.org/stable/c/45ce4b4f9009102cd9f581196d480a59208690c1 Patch Changed Reference Type https://git.kernel.org/stable/c/8c39925e98d498b9531343066ef82ae39e41adae No Types Assigned https://git.kernel.org/stable/c/8c39925e98d498b9531343066ef82ae39e41adae Patch Changed Reference Type https://git.kernel.org/stable/c/f0ce1bc9e0235dd7412240be493d7ea65ed9eadc No Types Assigned https://git.kernel.org/stable/c/f0ce1bc9e0235dd7412240be493d7ea65ed9eadc Patch Added CWE NIST CWE-125 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15.15 up to (excluding) 5.15.37 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16.1 up to (excluding) 5.16.12 -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 22, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: bpf: Fix crash due to out of bounds access into reg2btf_ids. When commit e6ac2450d6de ("bpf: Support bpf program calling kernel function") added kfunc support, it defined reg2btf_ids as a cheap way to translate the verifier reg type to the appropriate btf_vmlinux BTF ID, however commit c25b2ae13603 ("bpf: Replace PTR_TO_XXX_OR_NULL with PTR_TO_XXX | PTR_MAYBE_NULL") moved the __BPF_REG_TYPE_MAX from the last member of bpf_reg_type enum to after the base register types, and defined other variants using type flag composition. However, now, the direct usage of reg->type to index into reg2btf_ids may no longer fall into __BPF_REG_TYPE_MAX range, and hence lead to out of bounds access and kernel crash on dereference of bad pointer. Added Reference kernel.org https://git.kernel.org/stable/c/8c39925e98d498b9531343066ef82ae39e41adae [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/f0ce1bc9e0235dd7412240be493d7ea65ed9eadc [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/45ce4b4f9009102cd9f581196d480a59208690c1 [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-48929
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-48929
weaknesses.