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=1793187588; b=gyfSL7VBiCvj5ckvxRUtqsPX4ynvA5ByQWUp+0G8bVBnQqHy2enBow+MAM+uaKm15/p1 KKtHkWcZe8rr+gsaRAVj7VFYts3e9ufKaCxcP0QCWSvt9eLLJch2200N7PCzBzEWKaPkH hHzYjPWK4TAiwBHBXpozD19HlbeUh2ABRJT9mjOXxjwaoB8fdTBgOe+7ythhtGkSKJ6jV lAVCT7Blz4N4FeUBfp03IMTSHsOVJkHDbp0jbjJGigA7oTO0ll5LpkoRYCPEMAhi3/aOn GPNqunkVJP9tuAJWNBZP434qPau2ZFJyT6Td1k1kbvgOrnH7+X3ehgjGleMiVuBHqMg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187588; 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=LePBuL1u7oInQk1EPy7KkR3pSGTaFcxt441urhAzQrU=; b=4/sU8+5fQfPCT6+rwol2A+i378UcKZncXlNeKeXpReDh/qUfgj0AxcJQftS0eGbH3XVq dd31RgTHG4Zh9uDB0fCPj/fqMR+MnVyw/5xfKuu+wGrzMVnYzeL//7IBkIdRfKYpWtz/l n8OLHw+BVdKlxT/91het7yU9iEBE7u8QQgRI+eEmfnRDc94qg7psYA9zoDbylMrZMVHSW guGbInYli+JduLoXcxbkHiBDntcnaspqmNfQtiNvA0lkqcmBKVILolCX41xu4E4JI0Fbm couU0eoUknNlD93wLEoVa+bKOMXddbSlQCsU3br71uowzO6wZAGaFlm2K8XJgpywh1Q== 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=JvUJ4A37; 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 F3278606A31A for ; Wed, 28 Oct 2026 11:39:47 +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=JvUJ4A37 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A2FB1F01825; Wed, 28 Oct 2026 11:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187587; bh=LePBuL1u7oInQk1EPy7KkR3pSGTaFcxt441urhAzQrU=; h=From:To:Cc:Subject:Date:Reply-To; b=JvUJ4A37xuSd7mmNIUS/C+9d84YO3v3Vf1Eg5simCtt1JvrrePVKKz2Z48Wwk0BHO 6wOhCTRVH0b+WMmy0Ol25y0yGpuBCAhm2rCVBFlS5WILMyjm8Izl7T/XO/t/C+61FH OmkQfdNDoow6i0Gbp8B/91dK5JGN41bxAheR9SFI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99135: dm-integrity: fix infinite loop on discard with large tag size Date: Wed, 28 Oct 2026 11:35:22 +0100 Message-ID: <2026102800-CVE-2026-99135-59f5@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=2602; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=631vu3f5+F2PhbgKgrt0xV9w5XT/yD8QU0QgAB99M44=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz1/xebrarJs/UnSViJoxp3HKmpCs3fUrGdLOcplvC 3mdv9i6I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSO4Fhfl7sq50ssl6p5w7+ vuZ3rcsgZ8WGRQyz2btXzAxTuZ0RrpnO8uIox5+knlWhAA== 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-integrity: fix infinite loop on discard with large tag size When integrity_metadata handles a discard, it fills a buffer with DISCARD_FILLER and writes it over the tags, max_blocks blocks at a time. If the kmalloc fails, the buffer is the on-stack array checksums_onstack and max_size is set to HASH_MAX_DIGESTSIZE. So if the tag size is larger than HASH_MAX_DIGESTSIZE, max_blocks is zero, bi_size is never decremented and the loop never terminates. Fix this by using sizeof(checksums_onstack) as max_size. The array has MAX_TAG_SIZE bytes since commit b93b6643e9b5 ("dm integrity: fix a crash with unusually large tag size"), so max_blocks is at least 1. The Linux kernel CVE team has assigned CVE-2026-99135 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 84597a44a9d86ac949900441cea7da0af0f2f473 and fixed in 6.18.59 with commit fc512700f1413fed652dac22fa1c4e837210b9c0 Issue introduced in 5.7 with commit 84597a44a9d86ac949900441cea7da0af0f2f473 and fixed in 7.2.13 with commit 251b44b424920df9204e88a81fb3f78fa48ddd99 Issue introduced in 5.7 with commit 84597a44a9d86ac949900441cea7da0af0f2f473 and fixed in 7.3 with commit 18d80c77b4c7dd20699e81cedfbbff4e9d198f28 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-99135 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-integrity.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/fc512700f1413fed652dac22fa1c4e837210b9c0 https://git.kernel.org/stable/c/251b44b424920df9204e88a81fb3f78fa48ddd99 https://git.kernel.org/stable/c/18d80c77b4c7dd20699e81cedfbbff4e9d198f28