{"id":"CVE-2024-46754","aliases":["CVE-2024-46754"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Remove tst_run from lwt_seg6local_prog_ops.","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Remove tst_run from lwt_seg6local_prog_ops.\n\nThe syzbot reported that the lwt_seg6 related BPF ops can be invoked\nvia bpf_test_run() without without entering input_action_end_bpf()\nfirst.\n\nMartin KaFai Lau said that self test for BPF_PROG_TYPE_LWT_SEG6LOCAL\nprobably didn't work since it was introduced in commit 04d4b274e2a\n(\"ipv6: sr: Add seg6local action End.BPF\"). The reason is that the\nper-CPU variable seg6_bpf_srh_states::srh is never assigned in the self\ntest case but each BPF function expects it.\n\nRemove test_run for BPF_PROG_TYPE_LWT_SEG6LOCAL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Remove tst_run from lwt_seg6local_prog_ops.\n\nThe syzbot reported that the lwt_seg6 related BPF ops can be invoked\nvia bpf_test_run() without without entering input_action_end_bpf()\nfirst.\n\nMartin KaFai Lau said that self test for BPF_PROG_TYPE_LWT_SEG6LOCAL\nprobably didn't work since it was introduced in commit 04d4b274e2a\n(\"ipv6: sr: Add seg6local action End.BPF\"). The reason is that the\nper-CPU variable seg6_bpf_srh_states::srh is never assigned in the self\ntest case but each BPF function expects it.\n\nRemove test_run for BPF_PROG_TYPE_LWT_SEG6LOCAL.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf: eliminar tst_run de lwt_seg6local_prog_ops. El syzbot informó que las operaciones BPF relacionadas con lwt_seg6 se pueden invocar mediante bpf_test_run() sin ingresar primero input_action_end_bpf(). Martin KaFai Lau dijo que la autoprueba para BPF_PROG_TYPE_LWT_SEG6LOCAL probablemente no funcionó ya que se introdujo en el commit 04d4b274e2a (\"ipv6: sr: Agregar acción seg6local End.BPF\"). La razón es que la variable por CPU seg6_bpf_srh_states::srh nunca se asigna en el caso de la autoprueba, pero cada función BPF lo espera. Eliminar test_run para BPF_PROG_TYPE_LWT_SEG6LOCAL.","source":"nvd"}],"published":"2024-09-18T07:12:13.780Z","modified":"2026-09-02T13:16:48.143Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"004d4b274e2a1a895a0e5dc66158b90a7d463d44","fixed":"ea3fae6984ba0f054550e4da22219489c12cd8d4","status":"affected"},{"type":"git","introduced":"004d4b274e2a1a895a0e5dc66158b90a7d463d44","fixed":"a675524cfbe88fd49c05ff8807a08646983e687c","status":"affected"},{"type":"git","introduced":"004d4b274e2a1a895a0e5dc66158b90a7d463d44","fixed":"b05c2e25a5c168dbb46b6f7fcb741fd4e4f3b54a","status":"affected"},{"type":"git","introduced":"004d4b274e2a1a895a0e5dc66158b90a7d463d44","fixed":"e217492f6fa2228ad703ee3006d8fc4e5969fbd4","status":"affected"},{"type":"git","introduced":"004d4b274e2a1a895a0e5dc66158b90a7d463d44","fixed":"9cd15511de7c619bbd0f54bb3f28e6e720ded5d6","status":"affected"},{"type":"git","introduced":"004d4b274e2a1a895a0e5dc66158b90a7d463d44","fixed":"c13fda93aca118b8e5cd202e339046728ee7dddb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.18","status":"unaffected"},{"type":"semver","introduced":"5.10.269","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.220","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.187","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.156","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.10","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.18","fixed":"6.10.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ea3fae6984ba0f054550e4da22219489c12cd8d4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a675524cfbe88fd49c05ff8807a08646983e687c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b05c2e25a5c168dbb46b6f7fcb741fd4e4f3b54a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e217492f6fa2228ad703ee3006d8fc4e5969fbd4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9cd15511de7c619bbd0f54bb3f28e6e720ded5d6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c13fda93aca118b8e5cd202e339046728ee7dddb","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-29T14:46:48.262Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-46754","url":"https://www.cve.org/CVERecord?id=CVE-2024-46754","licence":"CVE Terms of Use","modified":"2026-09-02T12:49:13.346Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-46754","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46754","licence":"Public domain","modified":"2026-09-02T13:16:48.143Z"}],"updatedAt":"2026-11-25T22:58:45.556Z","epss":{"score":0.00247,"percentile":0.17126,"date":"2026-12-02T12:00:21.000Z"}}