Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 336A94ED187 for ; Thu, 17 Sep 2026 16:13:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661584; cv=none; b=Y5ukO67NEfSwW5Bt4yl1R72bMg+jcCVKNeMGS2U0+dN9bqGwQ6MBStclLJAYbfjXYowfCEt3rdeKyRyjPHDbpNodKtuN6Jpuwz4H25xKHUbRTzDr/sGAwAGi+EFCIqxvuQ1i9LcB3mUgGvEYgBhrCsQ7SRAyHoaXdS2qGMbCKDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661584; c=relaxed/simple; bh=BvWr6vvbrv7v1//ibC/54pHVMT8uLoz+8CbP2ZwQgxY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FMeEqX0Sjw02DJ6XuUUjnfGdLU4m4osl1qMzGizvNb1Tt6YDo8+siSJqqMS3I4iyEcj0mQoU9GI7vt6B6fnCdfXmF42lKApexw8Xt/S2WF7MM8fwAWrdx5GXa+2Lt44M83YJLsRDAGR+hg7CRify9OJHclrtaGrx9viaRyaL9ZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VUxAkg6V; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VUxAkg6V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A60931F000FF; Thu, 17 Sep 2026 16:13:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661583; bh=IGeJUgTKZ0UF50FxkmqWUPex/EnY9wkDD4RzUZhru/c=; h=From:To:Cc:Subject:Date:Reply-To; b=VUxAkg6V6RAUD0YRTpJZQgSIQtj5Cqsu8slcR081U3m+3bb2k7U33b/yRNB3mjhSe /7dl6Hsloxg9vDMW7R/80HOS/2frON204HsW6U6bji4bmI0JX2VLFQA2WDQckFOe2n v56fKJbCFArMEDJK4a+RPUnzHlslM15MmcW1mlCk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90052: dm-integrity: fix buffer overflow with keyed discard Date: Thu, 17 Sep 2026 17:08:02 +0100 Message-ID: <2026091703-CVE-2026-90052-d0e5@gregkh> X-Mailer: git-send-email 2.55.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=2308; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=paxKIofwD1Q8BFGXyZ4/tneo+9PPHDr0PK+adId7HB0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBJJnTlu5fo7yp6LbO5L+mnDpdj3ST18vluz/IOTAo qa3PAc/d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBESosZ5mdz/7dYcsloKqv3 qRa9v2tmCx3ibGCYH1W8eKZc39YXvkonTq6LDZwQJeNTBAA= 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 buffer overflow with keyed discard Since commit 68c5c42567bc ("dm-integrity: replace forgeable discard filler with a keyed sector marker"), integrity_metadata computes a checksum for every discarded block into the "checksums" buffer. integrity_sector_checksum always writes the whole digest. So if the tag size is smaller than the digest size, the checksum of the last block that fits into the buffer is written past the end of it. For example, with hmac(sha256) and tag size 16, a 4MiB discard writes 16 bytes past the kmalloc'ed page. Fix this by subtracting extra_space from the buffer size when computing max_blocks, like we do for writes. The Linux kernel CVE team has assigned CVE-2026-90052 to this issue. Affected and fixed versions =========================== Issue introduced in 7.3-rc1 with commit 68c5c42567bc462139128968ebbfadd0aefff519 and fixed in 7.3-rc2 with commit 59e6f919d77d72ec79cbf171256f2f7819737580 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-90052 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/9988c1c9e0d1c78391e3d8e2817beb667470c76f https://git.kernel.org/stable/c/dd08a645195f410f2dcaa40de379a45ce110e873 https://git.kernel.org/stable/c/59e6f919d77d72ec79cbf171256f2f7819737580