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 63C101EA7D6 for ; Thu, 1 May 2025 14:14:39 +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=1746108879; cv=none; b=OradRYyr3s6cNcyw8G1eEcACi856Tkp0ShHXCLDjP9BNwuF8Fic1s39Khgm+tEWzvvG+xSWsVp0Ng1OrfR7oNod0DYKBfKtHLSVCRs1u37rXfGJLx+b2jE25HJHRSF5huXNGzbLyQ9ryprzAGQUbGuhus6QaTRQNEzTI8EgKiXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108879; c=relaxed/simple; bh=AbY/0M9rJtQRmSjbZbuCy/An/SZXo9ojwzBCJEUAbd4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MR2/U/d2QjbWlQATAIsRLHXpAGBzJrEsCDjenoaWDilVoIK+0Zjn6uDDYximmrUbL3PN7P5oUqqBVrutMqXkzgyuj3zVSi9qPK4sdcL4hrSfS+9cqwpvIWbJWF+ffn4Bwuf04YBqSnVcca754KzRj8nsqvRtq/sVqAXkJUkcowA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=efAGYJag; 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="efAGYJag" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5078C4CEE3; Thu, 1 May 2025 14:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108879; bh=AbY/0M9rJtQRmSjbZbuCy/An/SZXo9ojwzBCJEUAbd4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=efAGYJag+ZHwa1Zs/oi9NXQMt/V2Glm2OY6XNTmeKjFnGj7PmVArleu+Ng0/nN5tL e0qyI5YMqXhiDLPtB87U7I8Vb6DMX2kQ/PiRYJFK09IoouW0UXJqL/Tialg8Dhiuhh ZWNkg1VG2+jPTx+TtgUYZKf4PxGkiN0BMLJGBLGA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49811: drbd: use after free in drbd_create_device() Date: Thu, 1 May 2025 16:10:01 +0200 Message-ID: <2025050129-CVE-2022-49811-cb0b@gregkh> X-Mailer: git-send-email 2.49.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=3015; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nOQP90yHWSM76s/v5sn3LOJl82bLuXDEU1aGHLlig7g=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDbNs9xuvO66aE7PA6+2n9buarp+c/+H/pF+m/fYrS 8yVDBLedMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEngsyzNPSl/bZtzNZllt8 kcmK9wuvicve2Mew4OaCZfavvEU213Y377J8c3POYq1pDAA= 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: drbd: use after free in drbd_create_device() The drbd_destroy_connection() frees the "connection" so use the _safe() iterator to prevent a use after free. The Linux kernel CVE team has assigned CVE-2022-49811 to this issue. Affected and fixed versions =========================== Issue introduced in 3.15 with commit b6f85ef9538b2111a8ba0bbfae9aaebabfc94961 and fixed in 4.14.300 with commit fc1897f16ebcfd22364f2afcc27f53a740f3bc7a Issue introduced in 3.15 with commit b6f85ef9538b2111a8ba0bbfae9aaebabfc94961 and fixed in 4.19.267 with commit bf47ca1b35fc1f55091ffaff5fbe41ea0c6f59a1 Issue introduced in 3.15 with commit b6f85ef9538b2111a8ba0bbfae9aaebabfc94961 and fixed in 5.4.225 with commit 813a8dd9c45fd46f5cbbfbedf0791afa7740ccf5 Issue introduced in 3.15 with commit b6f85ef9538b2111a8ba0bbfae9aaebabfc94961 and fixed in 5.10.156 with commit 9ed51414aef6e59e832e2960f10766dce2d5b1a1 Issue introduced in 3.15 with commit b6f85ef9538b2111a8ba0bbfae9aaebabfc94961 and fixed in 5.15.80 with commit 7d93417d596402ddd46bd76c721f205d09d0d025 Issue introduced in 3.15 with commit b6f85ef9538b2111a8ba0bbfae9aaebabfc94961 and fixed in 6.0.10 with commit c2a00b149836d60c222930bbea6b2139caf34d4f Issue introduced in 3.15 with commit b6f85ef9538b2111a8ba0bbfae9aaebabfc94961 and fixed in 6.1 with commit a7a1598189228b5007369a9622ccdf587be0730f 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-2022-49811 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/block/drbd/drbd_main.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/fc1897f16ebcfd22364f2afcc27f53a740f3bc7a https://git.kernel.org/stable/c/bf47ca1b35fc1f55091ffaff5fbe41ea0c6f59a1 https://git.kernel.org/stable/c/813a8dd9c45fd46f5cbbfbedf0791afa7740ccf5 https://git.kernel.org/stable/c/9ed51414aef6e59e832e2960f10766dce2d5b1a1 https://git.kernel.org/stable/c/7d93417d596402ddd46bd76c721f205d09d0d025 https://git.kernel.org/stable/c/c2a00b149836d60c222930bbea6b2139caf34d4f https://git.kernel.org/stable/c/a7a1598189228b5007369a9622ccdf587be0730f