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=1793187591; b=mSZvaW7N4iv25smb4MAErC5+jNt1Dvk+18HwyJHmSEURxQwindRWTe6ws5bGRPSd0VH2 yV4IbrEAuELD2Dfu+HpPbSwI95Fr/QmETmGCEXiKNsYYkyfJM+xEJG7Tb9MoSN6BgiCaq Sfd2cG6Ym47DNiJlef3TJ2uLm5aWuPjtyZdyucuDB3K0fcNd+f+Ykq+TC0uRPplx0/wld fAuBHVHCg4D69C/IDM9Zv7kRA/846+oh+7MSiLTFQo/X+jqYfK9P3KinLHro+cf9gzwwO ZKaVx7o/e3sH/9ivAAwrrAmv0rL5szfG4F1AYPCdX+e76iAvPbJNddtBYM7RkJKDQEA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187591; 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=en9jDU6sFDS9U+gwvraOPDPU35IjY0Do49GxmKkM3Zw=; b=0L2O/N9z+O9CRrB7jJfWT3HNYyDV0PBawwrWUC+v73WLSrPnYv2/w344iU2kkvERC2d5 QN2igGt+we0+OP0aVga/WWHWzt4vxHYxCs5DBD7VxsetEAQW6HGvDTgdPGaWYiOkrKeTT 6S2BiCvkXJYzGWTejXa3M36qh3t4F9iuH4UciiK+zDVdSpi8iFdGexc8lJdfcP6sdYrCK 1nLbG1YdPwMKAIep4NGnlg17yIl3emexxRgXfHqj/if/NRsxIopu2ztpF/harM6D+XCFu 54Rp1BIDlxcdJ1bAz19IoEzKc8uiqZrEzW4Vmw3GusIcoY3J9tUJIqPf8CxPo8g+gWQ== 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=wnpxTrMt; 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 63BFF606A31A for ; Wed, 28 Oct 2026 11:39:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=wnpxTrMt Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8192B1F01825; Wed, 28 Oct 2026 11:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187591; bh=en9jDU6sFDS9U+gwvraOPDPU35IjY0Do49GxmKkM3Zw=; h=From:To:Cc:Subject:Date:Reply-To; b=wnpxTrMt6oC44247NlbH1So5rtbk4S9YPywN9H0rcg0Iq3i+84tqsN/UbFSBdjh2C QZXcEEKKnW7zHXK/RWxwlEb8M4rQHUM2jf9J0i3B21+jwbTgUeqaByaGakKT6u0SW1 Wn4/m93EmZ4d8jmOyeau4t//pTGlSkFIMg7E6vW0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99136: dm-crypt: fix a tiny race condition in crypt_dec_pending Date: Wed, 28 Oct 2026 11:35:23 +0100 Message-ID: <2026102800-CVE-2026-99136-5b79@gregkh> X-Mailer: git-send-email 2.56.0 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=2883; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xJcLN1EN1RtbUcksE+uX5hDXRC/4nkCtd8DbJXU5uiA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz18J/yO9XDfZiTlStWdPzyzzqz85rSSy+/KfrDgtL VsnF/emI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaiVMGwoPvHEeFyhw2nzESK vzOJTttcqH7jCsOCmX+Uq8RW7cxVafgb1dHFZ/nn1DM9AA== 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: fix a tiny race condition in crypt_dec_pending crypt_dec_pending reads io->error before calling atomic_dec_and_test. Another context, for example crypt_endio called from an interrupt, may set io->error and drop its reference between the read and the decrement. crypt_dec_pending then drops the last reference and completes the bio with the stale status - so a read that failed and was never decrypted, or a write that failed, is reported as successful. The read was placed before the decrement by commit b35f8caa0890 ("dm crypt: wait for endio to complete before destruction"), because that commit freed dm_crypt_io before calling bio_endio. This is no longer the case, dm_crypt_io lives in the per-bio data now. Read io->error after atomic_dec_and_test instead. atomic_dec_and_test is fully ordered, so no additional barrier is needed. The Linux kernel CVE team has assigned CVE-2026-99136 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.29 with commit b35f8caa0890169000fec22902290d9a15274cbd and fixed in 6.18.59 with commit ac5d887ab93592fc5e3605fe30c1d8d232d609b3 Issue introduced in 2.6.29 with commit b35f8caa0890169000fec22902290d9a15274cbd and fixed in 7.2.13 with commit 4f16bb982b27b9f5a15301f622c318001fe521f8 Issue introduced in 2.6.29 with commit b35f8caa0890169000fec22902290d9a15274cbd and fixed in 7.3 with commit 148845aa1921d95ef5dc851c76e6a284f6657df6 Issue introduced in 2.6.28.9 with commit 9c8f3fcd3ffd3283cc0971c8919058356f20a963 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-99136 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/ac5d887ab93592fc5e3605fe30c1d8d232d609b3 https://git.kernel.org/stable/c/4f16bb982b27b9f5a15301f622c318001fe521f8 https://git.kernel.org/stable/c/148845aa1921d95ef5dc851c76e6a284f6657df6