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=1792759103; b=EXnwtO939GJnDKVXYGCSgnHXpcA4V6TNMJcZzYOYgyocAYWr9JUYboLYYNNeJb2/2WGn HWxA8O2ahwrAuQNxZOoazXOU5L0EW0oS+We63gPsZ+LOCH2vTZO4fUhZt4378UpliY4/T 9cYZGk6gF7rhjWi2XwCK9rdAzrNVQmzuUCBSXT1h5ZDjmTYphqMH8VPdqJz+LeE2+yKVV jRZWTAv6z7pRXsIT+h8LsVJFTRvS+XwKMnBmwWcVKaNF4Gn3/S2j8+WUX5l/ov8QmgI6u GEw/8jg9g5hqMSCqVBA8JS7sbr474ey6SkmEwVBTrRDIrBPJ8PaCDciKvScpXkYfB+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759103; 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=P63k77DxBucX+ax5nMB9DNhQD8nRN/ujRx9g10Y7Ov4=; b=L0spyZCwqpfsIUQzURlMaRfuEDykuCjO+yeol3yUGM2w7TGREK91TQlNah31iNNPXbby EyADFUN55rQiVVBGeEtzWTD/IZTjYjRWDlivxxxclm3/1uNtOWu7cty4V0d2LuV5v34zV 6270N67LmHjxF+hs6tLXvRQpQdA/UDJgP5pNO1mt1qrmQpHvLPdNVgHn2CF0N4OOCqNJD oP9H8PDOLaS+LEfYHE4+ocgu9K8uemPXmGWPobD93WrYEp0fvCNbKF0Q5yYedl7oQnZpw x0P43hvrRUYApi9Sjh7ykJu8ifWXgOv8ZIhKke5Txh54vFnFd2XCVPEGZTMkUX27iSQ== 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=OCkfvvOc; 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 24CE6606A31B for ; Fri, 23 Oct 2026 12:38:22 +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=OCkfvvOc Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA7B71F01825; Fri, 23 Oct 2026 12:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759102; bh=P63k77DxBucX+ax5nMB9DNhQD8nRN/ujRx9g10Y7Ov4=; h=From:To:Cc:Subject:Date:Reply-To; b=OCkfvvOcCH6BitgzVluYr9XWHBFQzFZT/eDFoHJnhez6TasPIuGLvkQngVCAatt7V dTHF4SFwJW0zAQlBJRWQUkRuOSHk0eaRGoZBNJkDBD2a1llSvodQbKIkT4qHa5UFAN Zl1ZfVwPloE12bXyABbfqnWt9D3LKEbthE/UGsbw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99037: dm-crypt: reject the lmk IV mode with AEAD ciphers Date: Fri, 23 Oct 2026 14:20:39 +0200 Message-ID: <2026102326-CVE-2026-99037-a40f@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=3178; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jJ4t3zPwgHV8aOEVMJJzuYEM7H5lOR23C4JzXymRbsY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A85ZvjnHYv2o6Lfx+45zGkw28RP+Oi9I23LX+su92 FZphrvPOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiKX0Mc8WWb09Mv/is7LfN /9IetneXDn5gimWYX3gpnD24he9CmGLqwoD/6VoPe4oUAA== 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: reject the lmk IV mode with AEAD ciphers A "capi:" table line that pairs an AEAD cipher with the lmk IV mode, for example "capi:gcm(aes)-lmk" with the integrity:28:aead option, causes an oops when it is loaded. lmk sets tfms_count to 64, but crypt_alloc_tfms_aead only allocates one transform, so crypt_setkey reads past the end of the tfms_aead array and calls crypto_aead_setkey on the values it finds there. lmk exists for compatibility with Loop-AES, which uses CBC, so refuse it with an AEAD cipher rather than allocate 64 AEAD transforms. The check cannot go in crypt_iv_lmk_ctr with the other lmk checks, because the IV constructor runs after crypt_set_key. Note that this is not a security bug because the memory corruption can only be triggered by root. The Linux kernel CVE team has assigned CVE-2026-99037 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit 33d2f09fcb357fd1861c4959d1d3505492bf91f8 and fixed in 6.6.160 with commit 9a0dab8a9d9975dec14a118b55cae2517aea5ca9 Issue introduced in 4.12 with commit 33d2f09fcb357fd1861c4959d1d3505492bf91f8 and fixed in 6.12.113 with commit 962ce265fbf5d87afeb78cf19c12e083ab0ffeb8 Issue introduced in 4.12 with commit 33d2f09fcb357fd1861c4959d1d3505492bf91f8 and fixed in 6.18.57 with commit a1a875614dae43b43d311bb9e7a7a70eed78efe6 Issue introduced in 4.12 with commit 33d2f09fcb357fd1861c4959d1d3505492bf91f8 and fixed in 7.2.11 with commit 40ea7dfa8cd5f9aed72a55c9ca3008aee5880e6f Issue introduced in 4.12 with commit 33d2f09fcb357fd1861c4959d1d3505492bf91f8 and fixed in 7.3 with commit 3195e0daf590683992edb4eed32269e569e04924 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-99037 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/9a0dab8a9d9975dec14a118b55cae2517aea5ca9 https://git.kernel.org/stable/c/962ce265fbf5d87afeb78cf19c12e083ab0ffeb8 https://git.kernel.org/stable/c/a1a875614dae43b43d311bb9e7a7a70eed78efe6 https://git.kernel.org/stable/c/40ea7dfa8cd5f9aed72a55c9ca3008aee5880e6f https://git.kernel.org/stable/c/3195e0daf590683992edb4eed32269e569e04924