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 01399314D0C for ; Wed, 14 Jan 2026 15:08:08 +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=1768403289; cv=none; b=rRS+n9AvIr27RnysD/fb2HA43J6Iu2QWio/qMw0k+QSDsgfWwdz2GcRo45d5CunrfNsWP0y/jDsBMkqF2s+k1FEr1S/kgGV/VYiPBM3/IIzhN2fa5m+H5OFgxXrc3wI26jmBrjVpy5xPDAnwhEtuw0ihCOnkajY9+YDID/7Q4xs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768403289; c=relaxed/simple; bh=q5pI+M3BZjBMFJBpZHoPbGyIFiz07hz/kFWERSvn3MA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cZPa8caq+Es9N2s4huioNfrOs0uGPQ9w8eGC7lUnwFS+rFQoY6g0sfQY4H7c4jybb2WFFR1iHrZOUymP1L44ulAGuBJm0frItMNBr0P4NNJ0zHqIBYIvQuVLXDq52bpo6eJ137hjAQ5ttLAI88a5i57/EeOXOW6nq7tYXMJ4gd4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mp7LcnQ4; 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="mp7LcnQ4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06792C4CEF7; Wed, 14 Jan 2026 15:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768403288; bh=q5pI+M3BZjBMFJBpZHoPbGyIFiz07hz/kFWERSvn3MA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=mp7LcnQ4c6AkdT/9a5aOY7iZfS/dKQI6Hu44wzL5YekAX88m2TrseF8Tz/+JxJexV VAlIQC3Fzp/NpjLWc2Q91rHlwmcHcHaK9HM7bC6oZbBrMDelsuUuEpvNGSJfWMlJ29 Xw/tnlD6EN1rZRNlMNL3cD8hx1m2ScFdd2Eihat0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71129: LoongArch: BPF: Sign extend kfunc call arguments Date: Wed, 14 Jan 2026 16:07:53 +0100 Message-ID: <2026011451-CVE-2025-71129-a6d5@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=2649; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BpgSQCquSUfkMw6Sr4l1B+jZDLavGJzYZmYJYCJS/Q8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnpG93/iaqqGemqyGp4f1STYtWYwnlQX/jyb6FMlYdrW m/KZQp0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETOSDLM9924ScOwvT3lQUrs x59HZ3xo21TDARTt+Xhljm2AMV/H832qU398Pu869zsA 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: Sign extend kfunc call arguments The kfunc calls are native calls so they should follow LoongArch calling conventions. Sign extend its arguments properly to avoid kernel panic. This is done by adding a new emit_abi_ext() helper. The emit_abi_ext() helper performs extension in place meaning a value already store in the target register (Note: this is different from the existing sign_extend() helper and thus we can't reuse it). The Linux kernel CVE team has assigned CVE-2025-71129 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 5dc615520c4dfb358245680f1904bad61116648e and fixed in 6.6.120 with commit fd43edf357a3a1f5ed1c4bf450b60001c9091c39 Issue introduced in 6.1 with commit 5dc615520c4dfb358245680f1904bad61116648e and fixed in 6.12.64 with commit 0d666db731e95890e0eda7ea61bc925fd2be90c6 Issue introduced in 6.1 with commit 5dc615520c4dfb358245680f1904bad61116648e and fixed in 6.18.4 with commit 321993a874f571a94b5a596f1132f798c663b56e Issue introduced in 6.1 with commit 5dc615520c4dfb358245680f1904bad61116648e and fixed in 6.19-rc4 with commit 3f5a238f24d7b75f9efe324d3539ad388f58536e 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-71129 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 arch/loongarch/net/bpf_jit.h 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/fd43edf357a3a1f5ed1c4bf450b60001c9091c39 https://git.kernel.org/stable/c/0d666db731e95890e0eda7ea61bc925fd2be90c6 https://git.kernel.org/stable/c/321993a874f571a94b5a596f1132f798c663b56e https://git.kernel.org/stable/c/3f5a238f24d7b75f9efe324d3539ad388f58536e