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 DDB8F1E7648 for ; Mon, 21 Oct 2024 12:16:33 +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=1729512994; cv=none; b=CRRv3C//Wx+NNOOR0Jye5Vk04U/jah5Lfbqmn6MQ2k38W6mUWYNUTABdNcjc/yKq/xmV3Om3y+aS+m3xP4kNp1X7zKZ4iEdJQPPiLTqfl/Nz2r6t5gzsnuBe2G4pxIEGL2vTzJaThv3tvbvH6GlRJNea68AIZfN7cocBot1Yz1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512994; c=relaxed/simple; bh=U0uY7U/uxbwiXWfv1e1awSjwVrq7nYdjBhBbjPzzRnA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ed+4vBBGxbgTWOSJjh/FO2PNpSf/hRkiPdGJ0YQu2fdrY915c5Vbq7t8Fnp+5jZ/rGSUrcS03cxnyX8EGPScSEPLfilshwxHqp6/d/XTzhWx/+y0yAPz+wy4NG8zNLi48h16kBBDJEQPBzs/Qxf8dGkhul6gT56zL0fgpmARTi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0nKDqhFJ; 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="0nKDqhFJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24511C4CEC3; Mon, 21 Oct 2024 12:16:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512993; bh=U0uY7U/uxbwiXWfv1e1awSjwVrq7nYdjBhBbjPzzRnA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0nKDqhFJMl+Wi3njSFX30LCoWNlF8hNWkfPxk5C3cFf6mocM/Q67WxVMueDYxr77B y0+3Rxyvzfm9I6Xb7YGN26nxaMPT0yiNv5WklHDGwSRgjUYixqep20+leT/vsDT+lb 0OWCybzdnfUD+yiRRgmocLSF9ezrXyJA7EfTV80s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47725: dm-verity: restart or panic on an I/O error Date: Mon, 21 Oct 2024 14:16:04 +0200 Message-ID: <2024102104-CVE-2024-47725-f698@gregkh> X-Mailer: git-send-email 2.47.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=2443; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U0uY7U/uxbwiXWfv1e1awSjwVrq7nYdjBhBbjPzzRnA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlibixLYlR6us5dexy1u7va+rdnpYD8xLqX99LiuOQSL /F+XTyzI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaie4VhrojTlxmT2kJjXsz6 tvDQGovW5ev6Axnme8/7IGZZs+uEzbGpYduOxES9f7vZHAA= 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-verity: restart or panic on an I/O error Maxim Suhanov reported that dm-verity doesn't crash if an I/O error happens. In theory, this could be used to subvert security, because an attacker can create sectors that return error with the Write Uncorrectable command. Some programs may misbehave if they have to deal with EIO. This commit fixes dm-verity, so that if "panic_on_corruption" or "restart_on_corruption" was specified and an I/O error happens, the machine will panic or restart. This commit also changes kernel_restart to emergency_restart - kernel_restart calls reboot notifiers and these reboot notifiers may wait for the bio that failed. emergency_restart doesn't call the notifiers. The Linux kernel CVE team has assigned CVE-2024-47725 to this issue. Affected and fixed versions =========================== Fixed in 6.6.54 with commit cada2646b748 Fixed in 6.10.13 with commit b332bcca5914 Fixed in 6.11.2 with commit 338b32a232bb Fixed in 6.12-rc1 with commit e6a3531dd542 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-47725 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-verity-target.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/cada2646b7483cce370eb3b046659df31d9d34d1 https://git.kernel.org/stable/c/b332bcca59143cfdd000957f8b78c28dd2ac1da4 https://git.kernel.org/stable/c/338b32a232bbee39e52dd1486cbc0c9f458d4d69 https://git.kernel.org/stable/c/e6a3531dd542cb127c8de32ab1e54a48ae19962b