{"id":"CVE-2022-49873","published":"2025-05-01T14:10:23Z","modified":"2026-05-11T19:08:23Z","title":"bpf: Fix wrong reg type conversion in release_reference()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix wrong reg type conversion in release_reference()\n\nSome helper functions will allocate memory. To avoid memory leaks, the\nverifier requires the eBPF program to release these memories by calling\nthe corresponding helper functions.\n\nWhen a resource is released, all pointer registers corresponding to the\nresource should be invalidated. The verifier use release_references() to\ndo this job, by apply  __mark_reg_unknown() to each relevant register.\n\nIt will give these registers the type of SCALAR_VALUE. A register that\nwill contain a pointer value at runtime, but of type SCALAR_VALUE, which\nmay allow the unprivileged user to get a kernel pointer by storing this\nregister into a map.\n\nUsing __mark_reg_not_init() while NOT allow_ptr_leaks can mitigate this\nproblem.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00215,"percentile":0.12149,"provenance":"source"},"cwes":[{"id":"CWE-704","name":"Incorrect Type Conversion or Cast"}],"references":[{"url":"https://git.kernel.org/stable/c/cedd4f01f67be94735f15123158f485028571037","tags":[]},{"url":"https://git.kernel.org/stable/c/466ce46f251dfb259a8cbaa895ab9edd6fb56240","tags":[]},{"url":"https://git.kernel.org/stable/c/ae5ccad6c711db0f2ca1231be051935dd128b8f5","tags":[]},{"url":"https://git.kernel.org/stable/c/f1db20814af532f85e091231223e5e4818e8464b","tags":[]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":2.43},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < cedd4f01f67be94735f15123158f485028571037",">= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < 466ce46f251dfb259a8cbaa895ab9edd6fb56240",">= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < ae5ccad6c711db0f2ca1231be051935dd128b8f5",">= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < f1db20814af532f85e091231223e5e4818e8464b"]},{"vendor":"Linux","product":"Linux","versions":["4.20"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T16:03:43.287933Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-12906","exploited":false,"provenance":"source"}}