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 047981CD11 for ; Wed, 19 Jun 2024 14:55:31 +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=1718808931; cv=none; b=I+ZJjA6ZGUbOTBnGSb3WexAkzNcALdVq6QMbSXicOXYlyrOetGJNtE7FZTlLFPn7xYi/0cC11e04I9CBTiBjQJ+GwB3UqQMDxa88aMTUJPY5h5+vRWxVed8sSK8dnOv2XwkHSYnhOHeDj4aJ/CmVCR4St5HmGiIOolR+vyczhDc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718808931; c=relaxed/simple; bh=m9N4fcHcCKYaRCndWPLy93Q5TgCqmEcpYZukkDZLLj4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M0gFLAsulkcmN5TnPY4urgzybjQH6Aeog8pIZ6SrwWddoPmbTghhgGayZxa+NBXn+JeMT39JdKhqnA94SrjyO1hpYtZ5M++7AKSFrS8QgHr13ITUNlT4N6tkYNoBq+mjdGG9W7EvD4qm2z6su+Q3HshxzEPz4xN2k1NhkZ6AR6Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EO7Wb8mC; 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="EO7Wb8mC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BBF1C2BBFC; Wed, 19 Jun 2024 14:55:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718808930; bh=m9N4fcHcCKYaRCndWPLy93Q5TgCqmEcpYZukkDZLLj4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EO7Wb8mCFKaVdJq8b+VZsvix+yvh7kgQr3m56/lCv/FizPeMInBA3KMqtby2Dnel2 xc1m/WXTChYgRJtoxJMYDtTBK9nt3x7RFdE4qm45A4za7hzqT6bibsQ8SmvjLRrUKP KM6xlLvYY+3rF955wp8nKCnZq3u3KHpLvCVBxW8A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47600: dm btree remove: fix use after free in rebalance_children() Date: Wed, 19 Jun 2024 16:54:39 +0200 Message-ID: <2024061922-CVE-2021-47600-5cc4@gregkh> X-Mailer: git-send-email 2.45.2 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=2322; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=m9N4fcHcCKYaRCndWPLy93Q5TgCqmEcpYZukkDZLLj4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFH+Vs/zKrhUnm+r30fVXoXyv0rPfarPutnC2NbW8uV nfN8JPoiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIls6GCYH/dnc11t4R7pbRfv v1weteb9yluLNzEsmHM0Qya0evJNmdPiCdqmvSpT1mufAgA= 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 btree remove: fix use after free in rebalance_children() Move dm_tm_unlock() after dm_tm_dec(). The Linux kernel CVE team has assigned CVE-2021-47600 to this issue. Affected and fixed versions =========================== Fixed in 4.4.296 with commit a48f6a2bf337 Fixed in 4.9.294 with commit 66ea642af6fd Fixed in 4.14.259 with commit b03abd0aa09c Fixed in 4.19.222 with commit 293f957be5e3 Fixed in 5.4.168 with commit 501ecd90efdc Fixed in 5.10.88 with commit 0e21e6cd5eeb Fixed in 5.15.11 with commit 607beb420b3f Fixed in 5.16 with commit 1b8d2789dad0 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-2021-47600 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/persistent-data/dm-btree-remove.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/a48f6a2bf33734ec5669ee03067dfb6c5b4818d6 https://git.kernel.org/stable/c/66ea642af6fd4eacb5d0271a922130fcf8700424 https://git.kernel.org/stable/c/b03abd0aa09c05099f537cb05b8460c4298f0861 https://git.kernel.org/stable/c/293f957be5e39720778fb1851ced7f5fba6d51c3 https://git.kernel.org/stable/c/501ecd90efdc9b2edc6c28852ecd098a4adf8f00 https://git.kernel.org/stable/c/0e21e6cd5eebfc929ac5fa3b97ca2d4ace3cb6a3 https://git.kernel.org/stable/c/607beb420b3fe23b948a9bf447d993521a02fbbb https://git.kernel.org/stable/c/1b8d2789dad0005fd5e7d35dab26a8e1203fb6da