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 75F0016F857 for ; Mon, 25 Mar 2024 09:08:58 +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=1711357738; cv=none; b=GlR46beZkX+0OTyaKaIR/lN5e5TACbQ7R+UWmXy5XQ1vHnYLqQNC4RPVAox2WANUZhiVONC8j6ATQ5dlFFK0OozDaZiTxk3iFPcd+jWn04MGcxDgsmkPo2x+LYLxgh18Zz6LEXD0TMTZM2Mdz5fNup/I1iKJiDKpByotR4jDyPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711357738; c=relaxed/simple; bh=N10i9v4UrpxLQvdA79eZhhlcxIIqcmIRMqeW2E9MNwY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oxJB0/8YtHfcjR7GsPvQ9luyHZrqa3AIz4D0pWD+qeUbPwVUob+Z6z/EY4+/t9rMU+HOT+e1GG157aPNIsDYKQ1TvT5PYAic9Z/OjgclJi4SHoPu7/mPWDjrkbP1UYnxGKDlhFMFbTAlzZtj5eIUVo4pYramtZhJI3F6mKDuMDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mn6yyihu; 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="mn6yyihu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5ED7C433C7; Mon, 25 Mar 2024 09:08:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711357738; bh=N10i9v4UrpxLQvdA79eZhhlcxIIqcmIRMqeW2E9MNwY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mn6yyihuCsO68krFQ8J3hKRbfsw8KwthnbdY9hyD/Mx+ELuw/1pIBHZpBSGKEiyD2 cwkkqvPIXkSavQLgphiMRpf5Tm6yMXHV4uJC67MniI8YIYJfhAIfXMUBXWfcKmHzab FXTtzp8BLoSEPzk3AjcrYnIZpls45/lqL8R6YVlQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47143: net/smc: remove device from smcd_dev_list after failed device_add() Date: Mon, 25 Mar 2024 10:08:00 +0100 Message-ID: <2024032558-CVE-2021-47143-4f3c@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=2075; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=N10i9v4UrpxLQvdA79eZhhlcxIIqcmIRMqeW2E9MNwY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMdu+eGhVs4zHJ3md+33rNO7POLuMHS6Rd5zpJH9UJE rn+hvtMRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkbinDLOb6IM7GD7O//L7E GPf++xvr1O3bnzPMT70SVW73mc/HtJBr0/qdTK6yfqnBAA== 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: net/smc: remove device from smcd_dev_list after failed device_add() If the device_add() for a smcd_dev fails, there's no cleanup step that rolls back the earlier list_add(). The device subsequently gets freed, and we end up with a corrupted list. Add some error handling that removes the device from the list. The Linux kernel CVE team has assigned CVE-2021-47143 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit c6ba7c9ba43d and fixed in 5.10.42 with commit 8b2cdc004d21 Issue introduced in 4.19 with commit c6ba7c9ba43d and fixed in 5.12.9 with commit 40588782f101 Issue introduced in 4.19 with commit c6ba7c9ba43d and fixed in 5.13 with commit 444d7be9532d 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-47143 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: net/smc/smc_ism.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/8b2cdc004d21a7255f219706dca64411108f7897 https://git.kernel.org/stable/c/40588782f1016c655ae1d302892f61d35af96842 https://git.kernel.org/stable/c/444d7be9532dcfda8e0385226c862fd7e986f607