From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796289704; b=RdIc5hYb8guR3odrUhXVfwReumJCapP+2zVw9Ewm8mggnuXZ99+OHLH/7BLSsQMbixlL hYQnwiQ2VDLIsg/coBozZikcQas94RAblA5e02/p2/WfJSfvVV/O3s81askkPzwDprpdp eWENvyHOMpd1Pz6gBScGG6yqOyjXe0c4J9Zi4YGnfx53d0R9OJvP1lnEn5rNncEn7T+Yy Trtoy4bzDUK2LHhqqAHGPWKUrEkkhm42GHXkCZ4oztCXJTlOzi7lK91GUm6/25YcFOaWJ aA9ljToFYJgwKSEJkE7neTB1d2ReuJ1Y7vbvQaMic2TSU57FrMZckVEnCm1uwTtTlJg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796289704; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=Gu7BwNXqotcMGbxloBQjccxjnhrbcojLJNDuK1mH5Kg=; b=J+I41T2HXqqS3FBbPL86vVvB+cW/2rRa4XPryJXYw/UegT195Duo8/cUUijRfKWnjVeB PYsyNCaYtgp6LOs1wz/MIlQKc72avigu9DsLkFeImL71BoHQN7A4faFcX2P2EnudMwF2o dVd5iJiBeHv4QnGZKCWhCHQagNRATF+kzeD/SSRxT3m+rFbbzS01CBMrIpXHrNzJu4amX HB2vuJnYqlfVnCTpDHeygI+Feehjwyul6a8bUoMxLiMtd7iparpec1cwLljUgo66P3bzV 5YrP2bDBQGYaLOGOEB/D5CiigMrlOiAp2L8dpvWSpgm4GSiF5DVsd3OmxdD0NCcHmcQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=V+sdpbEe; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90345606A32F for ; Thu, 3 Dec 2026 09:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=V+sdpbEe Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA7EC1F000C1; Thu, 3 Dec 2026 09:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796289704; bh=Gu7BwNXqotcMGbxloBQjccxjnhrbcojLJNDuK1mH5Kg=; h=From:To:Cc:Subject:Date:Reply-To; b=V+sdpbEes5J1mWx6O4wnI3R6oC2px8xJ3cD/6M/2+z5TyEf5mS7oTrR7oIIRBo2hZ KgUd8uJ0LjZm0YlZG5Xz1Wwek46lI8mvFlgFJU4QroemV4h7lI7uN6QoYtYNxEgNU7 FdGFqBvB78xKClpYj0OGVWSJxE/v4TpVt0HGapBw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-143014: dm-crypt: defer async write submission to write thread Date: Thu, 3 Dec 2026 10:17:30 +0100 Message-ID: <2026120340-CVE-2026-143014-e5d7@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3227; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GB5x4s8IvlEphQPDPizHgfJ6WLyKNDZ+RdhHvMAPPlw=; b=owGbwMvMwCRo6H6F97bub03G02pJDNmCxhXuL6b62lRzXVuTvOkD7+5POwU2Hnt+l/NpiG1s2 KdbaYujO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiuicY5grdZ/qX2i/m8vC9 pitv1WOdxu33bRgWbPNnWrdEZqZA/XzmE8e6NrXx/hLSAwA= 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: dm-crypt: defer async write submission to write thread With no_write_workqueue, kcryptd_crypt_write_io_submit() submits the bio directly, even when called from kcryptd_async_done(). An async cipher may run this callback in softirq or with BH disabled, where submit_bio_noacct() must not be called because it can sleep. Submit inline only when async is false. Async completions are sent to the write thread, as is already done for submit_from_crypt_cpus. Use the async flag rather than in_interrupt(), since callback context depends on the cipher driver. Sync ciphers still submit inline. Tested with cryptd in QEMU (x86_64 and arm64) with CONFIG_DEBUG_ATOMIC_SLEEP, and on a P2020 running 6.18.55 without it. In QEMU: - 4k writes logging "sleeping function called from invalid context": 100/100 unpatched, 0/155 patched. - nr_requests=4 on a loop device: 0/6 unpatched runs completed, 4/4 patched runs completed. On the P2020, a warning in blk_mq_run_hw_queue() appeared in the 6th unpatched run and did not appear in 30 patched runs. The Linux kernel CVE team has assigned CVE-2026-143014 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 and fixed in 6.12.120 with commit 6eef2b2b0f6f8ea5b2988f932ad7fe2c279a85de Issue introduced in 5.9 with commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 and fixed in 6.18.66 with commit b21d25b0046d180095aecfa03b9805f38aae1d0a Issue introduced in 5.9 with commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 and fixed in 7.3.7 with commit 5d8858b8e0daf9323caa88e7093fdf97bad5673c Issue introduced in 5.9 with commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 and fixed in 7.4-rc3 with commit 6fed9e26810f0b466dbcebe35a73d1fd48793ff5 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-143014 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/md/dm-crypt.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/6eef2b2b0f6f8ea5b2988f932ad7fe2c279a85de https://git.kernel.org/stable/c/b21d25b0046d180095aecfa03b9805f38aae1d0a https://git.kernel.org/stable/c/5d8858b8e0daf9323caa88e7093fdf97bad5673c https://git.kernel.org/stable/c/6fed9e26810f0b466dbcebe35a73d1fd48793ff5