Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 019B712CD91 for ; Wed, 17 Apr 2024 10:28:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713349740; cv=none; b=YRWHrTpaUUj3sSKcn7bw4m+CpWvhwh4hDocMuDUv6bGPQ70vazqxxP3mk6hMCMfo7Na5gjM1nAoDM1SILPykyuJgaG7uoV2sCXKR4Nr2ZY357B64yZAtnjhVOeAMSaXHNJMoLEJPtfyFY4JAJFAJantatYD9XGuaegiYBsBRDII= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713349740; c=relaxed/simple; bh=69TDb8JfV8fgyD2rcPVGXOmd1h+fcTh3M0CWl+FnWZ0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t5Cd0gYxGS3fW7UxA0iW0YVm7G0dZ7DySNhDZtGs8ZrrExnh+JX8DCXC5/+usa1flj/74Lo2EKvTFJtnK6OsG/tiMKmJYnZcPsqdGdz7yh3jXeun8kP674LLAqZ2ZipFnZG1QlBgv/Z+heRz9m4ScnWP4wC0ODGA12+XyDQ54jQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wQ/OTQzn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wQ/OTQzn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35DD1C072AA; Wed, 17 Apr 2024 10:28:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713349739; bh=69TDb8JfV8fgyD2rcPVGXOmd1h+fcTh3M0CWl+FnWZ0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wQ/OTQznMXfFEze6y9qnUT4Hbs1m9zNrgXKRkHarrTbQ4DMe/zv6GJaTympp06si2 IaniOy1d5UiQGCS1Oscr7NN6/oORPdZalEL8PfEjtFyyU9AJTfY1OtrVM/hrIWMj0N S4NA6wFchfiktksMaaTYImT+LSQ2RqXe2qNeCUJg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26860: dm-integrity: fix a memory leak when rechecking the data Date: Wed, 17 Apr 2024 12:28:35 +0200 Message-ID: <2024041735-CVE-2024-26860-ebf5@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2476; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=69TDb8JfV8fgyD2rcPVGXOmd1h+fcTh3M0CWl+FnWZ0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyS0LUHtfrndm7d+VWlsml3KeU3wmlv8l999jsnWXV8 3cddt7bOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi21kZ5ko4HD64xcpl0XTG mmrmHO7/Ri9/XWaYw6ndd/HIBLFEzm8h35daXkyUkjp0FQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: dm-integrity: fix a memory leak when rechecking the data Memory for the "checksums" pointer will leak if the data is rechecked after checksum failure (because the associated kfree won't happen due to 'goto skip_io'). Fix this by freeing the checksums memory before recheck, and just use the "checksum_onstack" memory for storing checksum during recheck. The Linux kernel CVE team has assigned CVE-2024-26860 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.80 with commit 906414f45964 and fixed in 6.1.83 with commit 20e21c3c0195 Issue introduced in 6.6.19 with commit d6824a28b244 and fixed in 6.6.23 with commit 338580a7fb9b Issue introduced in 6.7.7 with commit eb7b14a6a923 and fixed in 6.7.11 with commit 74abc2fe0969 Issue introduced in 6.8 with commit c88f5e553fe3 and fixed in 6.8.2 with commit 6d35654f03c3 Issue introduced in 6.8 with commit c88f5e553fe3 and fixed in 6.9-rc1 with commit 55e565c42dce 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-2024-26860 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/20e21c3c0195d915f33bc7321ee6b362177bf5bf https://git.kernel.org/stable/c/338580a7fb9b0930bb38098007e89cc0fc496bf7 https://git.kernel.org/stable/c/74abc2fe09691f3d836d8a54d599ca71f1e4287b https://git.kernel.org/stable/c/6d35654f03c35c273240d85ec67e3f2c3596c4e0 https://git.kernel.org/stable/c/55e565c42dce81a4e49c13262d5bc4eb4c2e588a