{"id":"CVE-2025-22087","published":"2025-04-16T14:12:35Z","modified":"2026-08-05T11:56:41Z","title":"bpf: Fix array bounds error with may_goto","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix array bounds error with may_goto\n\nmay_goto uses an additional 8 bytes on the stack, which causes the\ninterpreters[] array to go out of bounds when calculating index by\nstack_size.\n\n1. If a BPF program is rewritten, re-evaluate the stack size. For non-JIT\ncases, reject loading directly.\n\n2. For non-JIT cases, calculating interpreters[idx] may still cause\nout-of-bounds array access, and just warn about it.\n\n3. For jit_requested cases, the execution of bpf_func also needs to be\nwarned. So move the definition of function __bpf_prog_ret0_warn out of\nthe macro definition CONFIG_BPF_JIT_ALWAYS_ON.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00338,"percentile":0.19666,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/19e6817f84000d0b06f09fd69ebd56217842c122","tags":[]},{"url":"https://git.kernel.org/stable/c/4524b7febdd55fb99ae2e1f48db64019fa69e643","tags":[]},{"url":"https://git.kernel.org/stable/c/1a86ae57b2600e5749f5f674e9d4296ac00c69a8","tags":[]},{"url":"https://git.kernel.org/stable/c/6ebc5030e0c5a698f1dd9a6684cddf6ccaed64a0","tags":[]}],"priority":{"score":9.4,"factors":[{"name":"EPSS percentile","points":3.93},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 011832b97b311bb9e3c27945bc0d1089a14209c9, < 19e6817f84000d0b06f09fd69ebd56217842c122",">= 011832b97b311bb9e3c27945bc0d1089a14209c9, < 4524b7febdd55fb99ae2e1f48db64019fa69e643",">= 011832b97b311bb9e3c27945bc0d1089a14209c9, < 1a86ae57b2600e5749f5f674e9d4296ac00c69a8",">= 011832b97b311bb9e3c27945bc0d1089a14209c9, < 6ebc5030e0c5a698f1dd9a6684cddf6ccaed64a0"]},{"vendor":"Linux","product":"Linux","versions":["6.9"]}],"euvd":{"id":"EUVD-2025-11201","exploited":false,"provenance":"source"}}