{"id":"CVE-2024-50163","published":"2024-11-07T09:31:40Z","modified":"2026-05-11T20:46:39Z","title":"bpf: Make sure internal and UAPI bpf_redirect flags don't overlap","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Make sure internal and UAPI bpf_redirect flags don't overlap\n\nThe bpf_redirect_info is shared between the SKB and XDP redirect paths,\nand the two paths use the same numeric flag values in the ri->flags\nfield (specifically, BPF_F_BROADCAST == BPF_F_NEXTHOP). This means that\nif skb bpf_redirect_neigh() is used with a non-NULL params argument and,\nsubsequently, an XDP redirect is performed using the same\nbpf_redirect_info struct, the XDP path will get confused and end up\ncrashing, which syzbot managed to trigger.\n\nWith the stack-allocated bpf_redirect_info, the structure is no longer\nshared between the SKB and XDP paths, so the crash doesn't happen\nanymore. However, different code paths using identically-numbered flag\nvalues in the same struct field still seems like a bit of a mess, so\nthis patch cleans that up by moving the flag definitions together and\nredefining the three flags in BPF_F_REDIRECT_INTERNAL to not overlap\nwith the flags used for XDP. It also adds a BUILD_BUG_ON() check to make\nsure the overlap is not re-introduced by mistake.","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.00216,"percentile":0.12287,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/4e1e428533845d48828bd3875c0e92e8565b9962","tags":[]},{"url":"https://git.kernel.org/stable/c/314dbee9fe4f5cee36435465de52c988d7caa466","tags":[]},{"url":"https://git.kernel.org/stable/c/0fca5ed4be8e8bfbfb9bd97845af596bab7192d3","tags":[]},{"url":"https://git.kernel.org/stable/c/cec288e05ceac9a0d3a3a1fd279534b11844c826","tags":[]},{"url":"https://git.kernel.org/stable/c/09d88791c7cd888d5195c84733caf9183dcfbd16","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":2.46},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, < 4e1e428533845d48828bd3875c0e92e8565b9962",">= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, < 314dbee9fe4f5cee36435465de52c988d7caa466",">= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, < 0fca5ed4be8e8bfbfb9bd97845af596bab7192d3",">= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, < cec288e05ceac9a0d3a3a1fd279534b11844c826",">= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, < 09d88791c7cd888d5195c84733caf9183dcfbd16"]},{"vendor":"Linux","product":"Linux","versions":["5.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T20:20:08.619838Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-44665","exploited":false,"provenance":"source"}}