CVE-2022-48929 Details
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.
A vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) subsystem has been identified, which can lead to a kernel crash. This issue arises from an out-of-bounds access in the reg2btf_ids array, which is used to translate BPF verifier register types to BPF Type Format (BTF) IDs. The vulnerability was introduced when the handling of certain pointer types in BPF was changed, leading to a situation where the register type could be used to index into reg2btf_ids in a way that caused an invalid memory access. As a result, a bad pointer could be dereferenced, causing a kernel crash.
Users can upgrade to the patched version of the Linux kernel where this vulnerability has been addressed. The specific commit that fixes this issue is 45ce4b4f9009102cd9f581196d480a59208690c1.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 10, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/45ce4b4f9009102cd9f581196d480a59208690c1 | kernel.org | Patch |
| https://git.kernel.org/stable/c/8c39925e98d498b9531343066ef82ae39e41adae | kernel.org | Patch |
| https://git.kernel.org/stable/c/f0ce1bc9e0235dd7412240be493d7ea65ed9eadc | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.15.15, < 5.15.37 >= 5.16.1, < 5.16.12 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 23, 2024 | Initial Analysis | [email protected] |
| Aug 22, 2024 | New CVE Received | kernel.org |