CVE-2022-49873 Details
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix wrong reg type conversion in release_reference() Some helper functions will allocate memory. To avoid memory leaks, the verifier requires the eBPF program to release these memories by calling the corresponding helper functions. When a resource is released, all pointer registers corresponding to the resource should be invalidated. The verifier use release_references() to do this job, by apply __mark_reg_unknown() to each relevant register. It will give these registers the type of SCALAR_VALUE. A register that will contain a pointer value at runtime, but of type SCALAR_VALUE, which may allow the unprivileged user to get a kernel pointer by storing this register into a map. Using __mark_reg_not_init() while NOT allow_ptr_leaks can mitigate this problem.
A vulnerability in the Linux kernel's eBPF (extended Berkeley Packet Filter) implementation has been addressed. The issue stemmed from incorrect type conversion of register references in the 'release_reference()' function. When eBPF programs utilize certain helper functions that allocate memory, the verifier requires these programs to release the allocated memory to prevent leaks. This is done by invalidating pointer registers associated with the released resources. However, the flawed conversion allowed unprivileged users to potentially access kernel pointers by manipulating the registers and storing them in maps. The vulnerability could be mitigated by using specific verifier functions to properly manage pointer leaks.
Users can apply the latest kernel patches where this vulnerability has been fixed. Instructions for updating the kernel can typically be found in the documentation for the specific Linux distribution in use.
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 Oct 1, 2025References 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/466ce46f251dfb259a8cbaa895ab9edd6fb56240 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ae5ccad6c711db0f2ca1231be051935dd128b8f5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/cedd4f01f67be94735f15123158f485028571037 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f1db20814af532f85e091231223e5e4818e8464b | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-704 | Incorrect Type Conversion or Cast | [email protected] |
| CWE-704 | Incorrect Type Conversion or Cast | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.20, < 5.10.155 >= 5.11, < 5.15.79 >= 5.16, < 6.0.9 6.1 rc1 6.1 rc2 6.1 rc3 6.1 rc4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| May 7, 2025 | Initial Analysis | [email protected] |
| May 1, 2025 | New CVE Received | kernel.org |