CVE-2022-49873
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-05-01
- Last modified
- 2026-06-17
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.2 %
higher than 11 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Linux | Linux Kernel | 6.1 | Affected |
| Linux | Linux Kernel | ≥ 4.20, < 5.10.155 | Affected |
| Linux | Linux Kernel | ≥ 5.11, < 5.15.79 | Affected |
| Linux | Linux Kernel | ≥ 5.16, < 6.0.9 | Affected |
Weakness type
-
CWE-704: Incorrect Type Conversion or Cast
The product does not correctly convert an object, resource, or structure from one type to a different type.
References
- https://git.kernel.org/stable/c/466ce46f251dfb259a8cbaa895ab9edd6fb56240
- https://git.kernel.org/stable/c/ae5ccad6c711db0f2ca1231be051935dd128b8f5
- https://git.kernel.org/stable/c/cedd4f01f67be94735f15123158f485028571037
- https://git.kernel.org/stable/c/f1db20814af532f85e091231223e5e4818e8464b
Related at Berigo
Articles
-
Nine vulnerabilities entered the exploited catalogue in two days
Same product
2026-09-01
CISA catalogued three more vulnerabilities on 27 August 2026, a day after six others went in. The three cover ownCloud, the Linux kernel and JFrog Ar…
-
Five of the six new KEV entries date from 2015 to 2022
Same product
2026-08-27
CISA has added six vulnerabilities to its Known Exploited Vulnerabilities catalogue. Five were published between 2015 and 2022, and three grant nothi…
-
Almost a third of this week's listed vulnerabilities have no severity score
Same product
2026-08-25
The weekly vulnerability summary from CISA lists 3882 vulnerabilities for the week beginning 10 August. 1184 of them have no calculated severity scor…
-
An eighteen-year-old Linux kernel flaw hands ordinary users root
Same product
2026-08-08
Tencent Zhuque Lab has found a flaw in the SCTP part of the Linux kernel that has been there since 2008. An ordinary user can use it to gain root, an…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.