{"id":"CVE-2025-68216","aliases":["CVE-2025-68216"],"related":[],"kind":"vulnerability","state":"published","title":"LoongArch: BPF: Disable trampoline for kernel module function trace","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: BPF: Disable trampoline for kernel module function trace\n\nThe current LoongArch BPF trampoline implementation is incompatible\nwith tracing functions in kernel modules. This causes several severe\nand user-visible problems:\n\n* The `bpf_selftests/module_attach` test fails consistently.\n* Kernel lockup when a BPF program is attached to a module function [1].\n* Critical kernel modules like WireGuard experience traffic disruption\n  when their functions are traced with fentry [2].\n\nGiven the severity and the potential for other unknown side-effects, it\nis safest to disable the feature entirely for now. This patch prevents\nthe BPF subsystem from allowing trampoline attachments to kernel module\nfunctions on LoongArch.\n\nThis is a temporary mitigation until the core issues in the trampoline\ncode for kernel module handling can be identified and fixed.\n\n[root@fedora bpf]# ./test_progs -a module_attach -v\nbpf_testmod.ko is already unloaded.\nLoading bpf_testmod.ko...\nSuccessfully loaded bpf_testmod.ko.\ntest_module_attach:PASS:skel_open 0 nsec\ntest_module_attach:PASS:set_attach_target 0 nsec\ntest_module_attach:PASS:set_attach_target_explicit 0 nsec\ntest_module_attach:PASS:skel_load 0 nsec\nlibbpf: prog 'handle_fentry': failed to attach: -ENOTSUPP\nlibbpf: prog 'handle_fentry': failed to auto-attach: -ENOTSUPP\ntest_module_attach:FAIL:skel_attach skeleton attach failed: -524\nSummary: 0/0 PASSED, 0 SKIPPED, 1 FAILED\nSuccessfully unloaded bpf_testmod.ko.\n\n[1]: https://lore.kernel.org/loongarch/CAK3+h2wDmpC-hP4u4pJY8T-yfKyk4yRzpu2LMO+C13FMT58oqQ@mail.gmail.com/\n[2]: https://lore.kernel.org/loongarch/CAK3+h2wYcpc+OwdLDUBvg2rF9rvvyc5amfHT-KcFaK93uoELPg@mail.gmail.com/","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: BPF: Disable trampoline for kernel module function trace\n\nThe current LoongArch BPF trampoline implementation is incompatible\nwith tracing functions in kernel modules. This causes several severe\nand user-visible problems:\n\n* The `bpf_selftests/module_attach` test fails consistently.\n* Kernel lockup when a BPF program is attached to a module function [1].\n* Critical kernel modules like WireGuard experience traffic disruption\n  when their functions are traced with fentry [2].\n\nGiven the severity and the potential for other unknown side-effects, it\nis safest to disable the feature entirely for now. This patch prevents\nthe BPF subsystem from allowing trampoline attachments to kernel module\nfunctions on LoongArch.\n\nThis is a temporary mitigation until the core issues in the trampoline\ncode for kernel module handling can be identified and fixed.\n\n[root@fedora bpf]# ./test_progs -a module_attach -v\nbpf_testmod.ko is already unloaded.\nLoading bpf_testmod.ko...\nSuccessfully loaded bpf_testmod.ko.\ntest_module_attach:PASS:skel_open 0 nsec\ntest_module_attach:PASS:set_attach_target 0 nsec\ntest_module_attach:PASS:set_attach_target_explicit 0 nsec\ntest_module_attach:PASS:skel_load 0 nsec\nlibbpf: prog 'handle_fentry': failed to attach: -ENOTSUPP\nlibbpf: prog 'handle_fentry': failed to auto-attach: -ENOTSUPP\ntest_module_attach:FAIL:skel_attach skeleton attach failed: -524\nSummary: 0/0 PASSED, 0 SKIPPED, 1 FAILED\nSuccessfully unloaded bpf_testmod.ko.\n\n[1]: https://lore.kernel.org/loongarch/CAK3+h2wDmpC-hP4u4pJY8T-yfKyk4yRzpu2LMO+C13FMT58oqQ@mail.gmail.com/\n[2]: https://lore.kernel.org/loongarch/CAK3+h2wYcpc+OwdLDUBvg2rF9rvvyc5amfHT-KcFaK93uoELPg@mail.gmail.com/","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nLoongArch: BPF: Deshabilitar el trampolín para el rastreo de funciones de módulos del kernel\n\nLa implementación actual del trampolín BPF de LoongArch es incompatible con el rastreo de funciones en módulos del kernel. Esto causa varios problemas graves y visibles para el usuario:\n\n* La prueba 'bpf_selftests/module_attach' falla consistentemente.\n* Bloqueo del kernel cuando un programa BPF se adjunta a una función de módulo [1].\n* Módulos críticos del kernel como WireGuard experimentan interrupción del tráfico cuando sus funciones son rastreadas con fentry [2].\n\nDada la gravedad y el potencial de otros efectos secundarios desconocidos, es más seguro deshabilitar la característica por completo por ahora. Este parche evita que el subsistema BPF permita adjuntos de trampolín a funciones de módulos del kernel en LoongArch.\n\nEsta es una mitigación temporal hasta que los problemas centrales en el código del trampolín para el manejo de módulos del kernel puedan ser identificados y corregidos.\n\n[root@fedora bpf]# ./test_progs -a module_attach -v\nbpf_testmod.ko ya está descargado.\nCargando bpf_testmod.ko...\nbpf_testmod.ko cargado exitosamente.\ntest_module_attach:PASS:skel_open 0 nsec\ntest_module_attach:PASS:set_attach_target 0 nsec\ntest_module_attach:PASS:set_attach_target_explicit 0 nsec\ntest_module_attach:PASS:skel_load 0 nsec\nlibbpf: prog 'handle_fentry': falló al adjuntar: -ENOTSUPP\nlibbpf: prog 'handle_fentry': falló al auto-adjuntar: -ENOTSUPP\ntest_module_attach:FAIL:skel_attach adjunto de esqueleto falló: -524\nSummary: 0/0 APROBADO, 0 SALTADO, 1 FALLIDO\nbpf_testmod.ko descargado exitosamente.\n\n[1]: https://lore.kernel.org/loongarch/CAK3+h2wDmpC-hP4u4pJY8T-yfKyk4yRzpu2LMO+C13FMT58oqQ@mail.gmail.com/\n[2]: https://lore.kernel.org/loongarch/CAK3+h2wYcpc+OwdLDUBvg2rF9rvvyc5amfHT-KcFaK93uoELPg@mail.gmail.com/","source":"nvd"}],"published":"2025-12-16T13:57:11.303Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f9b6b41f0cf31791541cea9644ddbedb46465801","fixed":"44eb3849378be5f72b8be03edbacbdcd6f5eade4","status":"affected"},{"type":"git","introduced":"f9b6b41f0cf31791541cea9644ddbedb46465801","fixed":"677e6123e3d24adaa252697dc89740f2ac07664e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.17.10","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/44eb3849378be5f72b8be03edbacbdcd6f5eade4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/677e6123e3d24adaa252697dc89740f2ac07664e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68216","url":"https://www.cve.org/CVERecord?id=CVE-2025-68216","licence":"CVE Terms of Use","modified":"2026-05-11T21:48:58.041Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68216","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68216","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.499Z","epss":{"score":0.00198,"percentile":0.10068,"date":"2026-12-01T12:00:22.000Z"}}