{"id":"CVE-2024-42072","published":"2024-07-29T15:52:35Z","modified":"2026-08-05T11:35:30Z","title":"bpf: Fix may_goto with negative offset.","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix may_goto with negative offset.\n\nZac's syzbot crafted a bpf prog that exposed two bugs in may_goto.\nThe 1st bug is the way may_goto is patched. When offset is negative\nit should be patched differently.\nThe 2nd bug is in the verifier:\nwhen current state may_goto_depth is equal to visited state may_goto_depth\nit means there is an actual infinite loop. It's not correct to prune\nexploration of the program at this point.\nNote, that this check doesn't limit the program to only one may_goto insn,\nsince 2nd and any further may_goto will increment may_goto_depth only\nin the queued state pushed for future exploration. The current state\nwill have may_goto_depth == 0 regardless of number of may_goto insns\nand the verifier has to explore the program until bpf_exit.","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.00226,"percentile":0.13609,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/175827e04f4be53f3dfb57edf12d0d49b18fd939","tags":[]},{"url":"https://git.kernel.org/stable/c/2b2efe1937ca9f8815884bd4dcd5b32733025103","tags":[]}],"priority":{"score":8.2,"factors":[{"name":"EPSS percentile","points":2.72},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 011832b97b311bb9e3c27945bc0d1089a14209c9, < 175827e04f4be53f3dfb57edf12d0d49b18fd939",">= 011832b97b311bb9e3c27945bc0d1089a14209c9, < 2b2efe1937ca9f8815884bd4dcd5b32733025103"]},{"vendor":"Linux","product":"Linux","versions":["6.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:19:39.749938Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39904","exploited":false,"provenance":"source"}}