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 653ED524A5 for ; Fri, 17 May 2024 13:23:57 +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=1715952237; cv=none; b=HD9dA+S6bdfDIwwpx8YW6ZRoBzXlzO9zCSFvoEqbCfzCRGuqg780SFkvwo/Oey1i1HPWZIKkOxGESEnGumk9S2F60rkGqwPfVB24CmIwe6/BW0xwO5J/w7gxR6wnfJrOchfeB7ogvICupmZn9dSSsEWNp2LBbgjR+Zqs5fCh0EI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715952237; c=relaxed/simple; bh=oUv0EudmFlZGtfHokLt/b3Zw5kKFUVSIkEgqGlTG6Gs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=T5i6+riFLrA7SRr3aZB0xvoUln0WZbIInpvNJ2XNUfUKv9IdGFgYS1LQNuSiRM0XP4gVI9tDxWDHigQj1X4+kJh5vQHj/QajlwtL2PVp6ArLystcHLCAks0aNKZXdSkE27yHzm9WZR0sPLUvrRGNnd48e4jIzgCnZHf0rrXOcX8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NEwLBMHn; 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="NEwLBMHn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CBB5C2BD10; Fri, 17 May 2024 13:23:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715952236; bh=oUv0EudmFlZGtfHokLt/b3Zw5kKFUVSIkEgqGlTG6Gs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NEwLBMHn5I0C5CUKs5ADwAUx31x5X+5RkkOFLmK5HW/lZG/bwtBzDkJCDruQlTyc0 MPrds8AGSYYSj2aPKGIhQGxc+VgWsvR1SycVKMaRLL0RMsYKnxLqCZrv4ezE1cI+rR 0YlEH6jS3t9NDe09D2rGmjj7OQnmF20C/+daf7iE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35805: dm snapshot: fix lockup in dm_exception_table_exit Date: Fri, 17 May 2024 15:23:45 +0200 Message-ID: <2024051739-CVE-2024-35805-179f@gregkh> X-Mailer: git-send-email 2.45.1 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=2390; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oUv0EudmFlZGtfHokLt/b3Zw5kKFUVSIkEgqGlTG6Gs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuUdHaC04EHHjjWZvoVZqwJPmIkMuURJFdLeLGKhlOD +T6K5Q7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCLRBxjmx/B/Oj/He1uFoaDm RfOgnyuvzXNOZpifFPHuTVhOS8Cf/vhVddGH84sOzPABAA== 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 snapshot: fix lockup in dm_exception_table_exit There was reported lockup when we exit a snapshot with many exceptions. Fix this by adding "cond_resched" to the loop that frees the exceptions. The Linux kernel CVE team has assigned CVE-2024-35805 to this issue. Affected and fixed versions =========================== Fixed in 5.4.274 with commit e7d4cff57c3c Fixed in 5.10.215 with commit 9759ff196e7d Fixed in 5.15.154 with commit 116562e804ff Fixed in 6.1.84 with commit 3d47eb405781 Fixed in 6.6.24 with commit e50f83061ac2 Fixed in 6.7.12 with commit fa5c055800a7 Fixed in 6.8.3 with commit 5f4ad4d0b094 Fixed in 6.9 with commit 6e7132ed3c07 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-35805 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-snap.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/e7d4cff57c3c43fdd72342c78d4138f509c7416e https://git.kernel.org/stable/c/9759ff196e7d248bcf8386a7451d6ff8537a7d9c https://git.kernel.org/stable/c/116562e804ffc9dc600adab6326dde31d72262c7 https://git.kernel.org/stable/c/3d47eb405781cc5127deca9a14e24b27696087a1 https://git.kernel.org/stable/c/e50f83061ac250f90710757a3e51b70a200835e2 https://git.kernel.org/stable/c/fa5c055800a7fd49a36bbb52593aca4ea986a366 https://git.kernel.org/stable/c/5f4ad4d0b0943296287313db60b3f84df4aad683 https://git.kernel.org/stable/c/6e7132ed3c07bd8a6ce3db4bb307ef2852b322dc