{"id":"CVE-2024-50163","summary":"bpf: Make sure internal and UAPI bpf_redirect flags don't overlap","details":"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-\u003eflags\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.","modified":"2026-04-02T12:21:19.008960Z","published":"2024-11-07T09:31:40.146Z","related":["MGASA-2024-0368","MGASA-2024-0369","SUSE-SU-2025:01614-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:20343-1","SUSE-SU-2025:20344-1","SUSE-SU-2025:20354-1","SUSE-SU-2025:20355-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50163.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/09d88791c7cd888d5195c84733caf9183dcfbd16"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0fca5ed4be8e8bfbfb9bd97845af596bab7192d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/314dbee9fe4f5cee36435465de52c988d7caa466"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e1e428533845d48828bd3875c0e92e8565b9962"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cec288e05ceac9a0d3a3a1fd279534b11844c826"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50163.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50163"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e624d4ed4aa8cc3c69d1359b0aaea539203ed266"},{"fixed":"4e1e428533845d48828bd3875c0e92e8565b9962"},{"fixed":"314dbee9fe4f5cee36435465de52c988d7caa466"},{"fixed":"0fca5ed4be8e8bfbfb9bd97845af596bab7192d3"},{"fixed":"cec288e05ceac9a0d3a3a1fd279534b11844c826"},{"fixed":"09d88791c7cd888d5195c84733caf9183dcfbd16"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50163.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}