From mboxrd@z Thu Jan 1 00:00:00 1970 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 B4B6A15C15F for ; Thu, 27 Feb 2025 02:09:02 +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=1740622142; cv=none; b=he8Jz7zlIBpNmltoiCjivWHGxq9wVbj31Smvmtsx3fbKAnat7xBVB73c0ZEh32gRnhdl3vh28ADO9GmT9BAQ69d+iqdfJ6SXiXZDloPJVPPAU2LeQk1hKbHOnxkhJRRKxxXaKxcLq8ZzjL7TOx7PnPeqw/M5vSIxurOcmgcQudc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622142; c=relaxed/simple; bh=R+RsSs7Pwha4Dq7rfw4psjhDXiFKmBAue1wvDP62osU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ThuYrMea1H2DLmrQF3+CUSMCyDjmP7gtzB+h1cRyh2Y2hmyTU9ydvSF1WhTmJyxkDC5/puKU5Z0sWrT65H4VwaocIp8O8YUAif6bCRWsx1pn4FF3Fg3UnsKJrPul3Vlkxho35trcp6cCUpI4nIp87UlRUbWctwLLkUdWdE5CZhE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RKWY4eFy; 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="RKWY4eFy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86A8AC4CED6; Thu, 27 Feb 2025 02:09:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622142; bh=R+RsSs7Pwha4Dq7rfw4psjhDXiFKmBAue1wvDP62osU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RKWY4eFyvUugpDcMA+lEVQmV7fI9IpvOj7W05NUDIp+9aMjR9aL3Uymk+wVpSWn6c sW8IGV5/HyG03rIZLenrLlfXPUOQIF7L7Dc6yeP0uRHH0uYGGiAvmYunFX1dDRWnk1 v3tIKsv/Xd4sqDHctqlNTGmBZPRSFVSgleJHZS1Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21728: bpf: Send signals asynchronously if !preemptible Date: Wed, 26 Feb 2025 18:06:23 -0800 Message-ID: <2025022648-CVE-2025-21728-5da4@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2844; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R+RsSs7Pwha4Dq7rfw4psjhDXiFKmBAue1wvDP62osU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T9TcMDX4UeBUtu3+wz1Fqy3mPSvfOjGI90h7mLH2N g2e5QJaHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARwY8McwW1vM/wtmwO2Tw9 6thuleASJo4lPQwLNmyfV//01ZIt6VfubPwg82T2ix/c0QA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: bpf: Send signals asynchronously if !preemptible BPF programs can execute in all kinds of contexts and when a program running in a non-preemptible context uses the bpf_send_signal() kfunc, it will cause issues because this kfunc can sleep. Change `irqs_disabled()` to `!preemptible()`. The Linux kernel CVE team has assigned CVE-2025-21728 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 1bc7896e9ef44fd77858b3ef0b8a6840be3a4494 and fixed in 6.1.129 with commit be42a09fe898635b0093c0c8dac1bfabe225c240 Issue introduced in 5.6 with commit 1bc7896e9ef44fd77858b3ef0b8a6840be3a4494 and fixed in 6.6.76 with commit eeef8e65041a031bd8a747a392c14b76a123a12c Issue introduced in 5.6 with commit 1bc7896e9ef44fd77858b3ef0b8a6840be3a4494 and fixed in 6.12.13 with commit 78b97783496b454435639937db3303e900a24d3f Issue introduced in 5.6 with commit 1bc7896e9ef44fd77858b3ef0b8a6840be3a4494 and fixed in 6.13.2 with commit 092fc76b7ab4163e008f9cde596a58dad2108260 Issue introduced in 5.6 with commit 1bc7896e9ef44fd77858b3ef0b8a6840be3a4494 and fixed in 6.14-rc1 with commit 87c544108b612512b254c8f79aa5c0a8546e2cc4 Issue introduced in 5.4.33 with commit fd29a0242f86b2d95ad666aa9f92a3d0f7bfdab6 Issue introduced in 5.5.18 with commit 7930d01afb7281edd9782971e0cca6fe587c7a7b 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-21728 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: kernel/trace/bpf_trace.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/be42a09fe898635b0093c0c8dac1bfabe225c240 https://git.kernel.org/stable/c/eeef8e65041a031bd8a747a392c14b76a123a12c https://git.kernel.org/stable/c/78b97783496b454435639937db3303e900a24d3f https://git.kernel.org/stable/c/092fc76b7ab4163e008f9cde596a58dad2108260 https://git.kernel.org/stable/c/87c544108b612512b254c8f79aa5c0a8546e2cc4