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 57A2431F98C for ; Sun, 29 Mar 2026 13:25:53 +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=1774790753; cv=none; b=JfRnsuMTgbL5lpfAag/voMvd84spbHlR7/XYX0NQkFsOjwy3w0mEj2+jrvvecHj2H7dGlLkKVvnKSqIzNyJre3k9Oe8mCuWwy+QdmXoRc524vJmsblLgBjRzcJfobfenyZSiMrLgcnd7chdh6okUhFUg2gqwQP2e+iYNGKUJD0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774790753; c=relaxed/simple; bh=xljoyp/Xka74o2atY0n8wz4gzW0VamVf5U/kqmz8PIU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IoPtjjp6sxCYSqXvTOMFAV1ZJmU++IU1l2l2c1Y7uos+Mm96p1/MQQzAFKkF1LW8loCEIntdfvhrhb85GBd82/11z7sxAYb/+TaZkENckh9ZKb6u7qTlzLePTstZ2NqCh29VNETPkzI9kUaGjBUGNUyoTCHrXAT0/GnCtgbFD0c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hDtNheYI; 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="hDtNheYI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC6BAC116C6; Sun, 29 Mar 2026 13:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774790753; bh=xljoyp/Xka74o2atY0n8wz4gzW0VamVf5U/kqmz8PIU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=hDtNheYIbQH9EDsfjNBvyRgLZz5MqiTp3q3Z4w6wdI5Yhbw9rnE9tTvgA1pSTC1gR ren5/Z3HvsQncJscsy/aFCV3ZlFp/wL7MhK0+YwQYdcDo2dFBd78HSfCMeNbkHYpqX LfO7uoWFXq5zyf6joI12+MKQwyPKnxfBtdGaHsFk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23400: rust_binder: call set_notification_done() without proc lock Date: Sun, 29 Mar 2026 14:55:54 +0200 Message-ID: <2026032953-CVE-2026-23400-b75a@gregkh> X-Mailer: git-send-email 2.53.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=3368; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=607ijGOXtz2e2uFQL8lcL7z4dA+K0+nQUOFFq401CEM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJknFSO9fxz+x8he21losnWJkrPYrz+Pbu37apXA+ulFy +wj+f+yO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiZd8Z5ue3ac/q0tfPO1nz JWWhVMVUQXcrOYZ51iv81T5rKTav+zjxw85VaypbX2aoAAA= 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: rust_binder: call set_notification_done() without proc lock Consider the following sequence of events on a death listener: 1. The remote process dies and sends a BR_DEAD_BINDER message. 2. The local process invokes the BC_CLEAR_DEATH_NOTIFICATION command. 3. The local process then invokes the BC_DEAD_BINDER_DONE. Then, the kernel will reply to the BC_DEAD_BINDER_DONE command with a BR_CLEAR_DEATH_NOTIFICATION_DONE reply using push_work_if_looper(). However, this can result in a deadlock if the current thread is not a looper. This is because dead_binder_done() still holds the proc lock during set_notification_done(), which called push_work_if_looper(). Normally, push_work_if_looper() takes the thread lock, which is fine to take under the proc lock. But if the current thread is not a looper, then it falls back to delivering the reply to the process work queue, which involves taking the proc lock. Since the proc lock is already held, this is a deadlock. Fix this by releasing the proc lock during set_notification_done(). It was not intentional that it was held during that function to begin with. I don't think this ever happens in Android because BC_DEAD_BINDER_DONE is only invoked in response to BR_DEAD_BINDER messages, and the kernel always delivers BR_DEAD_BINDER to a looper. So there's no scenario where Android userspace will call BC_DEAD_BINDER_DONE on a non-looper thread. The Linux kernel CVE team has assigned CVE-2026-23400 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit eafedbc7c050c44744fbdf80bdf3315e860b7513 and fixed in 6.18.19 with commit dd109e3442817bc03ad1f3ffd541092f8c428141 Issue introduced in 6.18 with commit eafedbc7c050c44744fbdf80bdf3315e860b7513 and fixed in 6.19.9 with commit 3be72099067d2cd4a0e089696f19780f75b2b88a Issue introduced in 6.18 with commit eafedbc7c050c44744fbdf80bdf3315e860b7513 and fixed in 7.0-rc4 with commit 2e303f0febb65a434040774b793ba8356698802b 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-2026-23400 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: drivers/android/binder/process.rs 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/dd109e3442817bc03ad1f3ffd541092f8c428141 https://git.kernel.org/stable/c/3be72099067d2cd4a0e089696f19780f75b2b88a https://git.kernel.org/stable/c/2e303f0febb65a434040774b793ba8356698802b