Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10ECD3A1E90 for ; Tue, 16 Dec 2025 13:58:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765893513; cv=none; b=gvdVRGsDOvIV3JUvsc76i2BeWeQHbo4Xo8U7qIx8ECefcpl01qrXPzGvQC+7mCRQ0hX5U1AjhPZ9Ak7TlZlI4wY3De69laZlg5AqUpwShLbpmrcD4SPaiaYsCSLQKI18yY44uG5w9VbETve1vqbK+nuTNZ4psQu8SgTtCvK7v1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765893513; c=relaxed/simple; bh=sEMWsrM6Elj6KN4JUIs5+knWYOTMaapmU0auvhrehak=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GpV0aLtuEojbSsM4vFYB6DhUWGVLogKKFTBzsr0QSU8OdzS1iYxYIUJdocfZCCTUZkM8yt15fyOZTzy5EUAQa11ucZ692+RRDF8VaBFQ2M19n9mMmPLB88H1IyZp9HSMeyjhjH0sIuI9xOpA5hq5xiwB1juA0pav4i0bRECI+Og= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PTl0JK7z; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PTl0JK7z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32AB8C4CEF1; Tue, 16 Dec 2025 13:58:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765893512; bh=sEMWsrM6Elj6KN4JUIs5+knWYOTMaapmU0auvhrehak=; h=From:To:Cc:Subject:Date:Reply-To:From; b=PTl0JK7zQUReSiz0NRNIprA22laK03jUMhZ+uFIylKVrBCRV36uQTUMpcYAY8+y75 SXg77WklDRr3APTzPH6Ei9G13tw5C0/IQ6etsA8+yFkffHtr/B3gLCtYeDgCZw6EET 0ir6DmaNrdOgyKozXhYzxVQ3wlbRs6+XG6quVE7Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68216: LoongArch: BPF: Disable trampoline for kernel module function trace Date: Tue, 16 Dec 2025 14:57:35 +0100 Message-ID: <2025121631-CVE-2025-68216-405a@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3425; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HG79gzPlmejj+K7Mmd/aGpzcm1GmTW2elU2q3ypYX0Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOqd5df4MtzfTd7GSN5tu6Grb37M69kXB3jSV/k40/t 6VO4IqOWBYGQSYGWTFFli/beI7urzik6GVoexpmDisTyBAGLk4BmEj5AoY5fEvv5SVabL9nm+fe 2ylt+6nOMtCPYX7K9evBt86rvzWdx/VNRet78NPK8NUA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: LoongArch: BPF: Disable trampoline for kernel module function trace The current LoongArch BPF trampoline implementation is incompatible with tracing functions in kernel modules. This causes several severe and user-visible problems: * The `bpf_selftests/module_attach` test fails consistently. * Kernel lockup when a BPF program is attached to a module function [1]. * Critical kernel modules like WireGuard experience traffic disruption when their functions are traced with fentry [2]. Given the severity and the potential for other unknown side-effects, it is safest to disable the feature entirely for now. This patch prevents the BPF subsystem from allowing trampoline attachments to kernel module functions on LoongArch. This is a temporary mitigation until the core issues in the trampoline code for kernel module handling can be identified and fixed. [root@fedora bpf]# ./test_progs -a module_attach -v bpf_testmod.ko is already unloaded. Loading bpf_testmod.ko... Successfully loaded bpf_testmod.ko. test_module_attach:PASS:skel_open 0 nsec test_module_attach:PASS:set_attach_target 0 nsec test_module_attach:PASS:set_attach_target_explicit 0 nsec test_module_attach:PASS:skel_load 0 nsec libbpf: prog 'handle_fentry': failed to attach: -ENOTSUPP libbpf: prog 'handle_fentry': failed to auto-attach: -ENOTSUPP test_module_attach:FAIL:skel_attach skeleton attach failed: -524 Summary: 0/0 PASSED, 0 SKIPPED, 1 FAILED Successfully unloaded bpf_testmod.ko. [1]: https://lore.kernel.org/loongarch/CAK3+h2wDmpC-hP4u4pJY8T-yfKyk4yRzpu2LMO+C13FMT58oqQ@mail.gmail.com/ [2]: https://lore.kernel.org/loongarch/CAK3+h2wYcpc+OwdLDUBvg2rF9rvvyc5amfHT-KcFaK93uoELPg@mail.gmail.com/ The Linux kernel CVE team has assigned CVE-2025-68216 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit f9b6b41f0cf31791541cea9644ddbedb46465801 and fixed in 6.17.10 with commit 44eb3849378be5f72b8be03edbacbdcd6f5eade4 Issue introduced in 6.17 with commit f9b6b41f0cf31791541cea9644ddbedb46465801 and fixed in 6.18 with commit 677e6123e3d24adaa252697dc89740f2ac07664e Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-68216 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/loongarch/net/bpf_jit.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/44eb3849378be5f72b8be03edbacbdcd6f5eade4 https://git.kernel.org/stable/c/677e6123e3d24adaa252697dc89740f2ac07664e