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 025C228DC9 for ; Wed, 28 Feb 2024 08:15:50 +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=1709108150; cv=none; b=AncZfr4LGpbx9MOiH8NOvTcBEjzGsWkWIy7XpspaNKTtKQ+vIkmJG0QSiSjoaQUk4LCKop/H2pYsNsYh4GNWVe3dWdPJW7XgTWWb7DOqauMR/4yGcfEfZH3CFiPlCIHH+T/U55l7eL9m/MsONw7bn7DK7PNMf8Xr3Z/iETe2XOE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108150; c=relaxed/simple; bh=ovZSQlW9Wncg4btx0Z+xi59Byxdgx/X8apJWaU9W884=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qmJI+oAlUFJV4TvY9inKERFq4YySwIFLDFnbecCIZUfmEzvGFY2NzpEFVD6ubmUOIPYu+gGAiXoNNgC5OIgmc74hYd56D3fvYt0CTbrAV1545aVhraew93b97/tKwDYLQhDS/7mrxH3SLNLh4YNX6dxLwKJ65gJ5NRXDC5stA+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x9Iq4KSl; 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="x9Iq4KSl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 867E5C43390; Wed, 28 Feb 2024 08:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108149; bh=ovZSQlW9Wncg4btx0Z+xi59Byxdgx/X8apJWaU9W884=; h=From:To:Cc:Subject:Date:Reply-to:From; b=x9Iq4KSl3gcOdX8CO3yj9OHaLAnS+fTRP/CTTO8AH7vlJyywS7+la2dvC8SQQD2d+ YBfjx+rdMaqHxhX3lzzaYpb8KJv8WpLB+lon6qDYwurPNAZgeiMZHZIzAngwY8xfJ+ oPI8LZ5ATu4LIVq1kRS7JCkD3/RTzLXllmRALqvs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-46995: can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe Date: Wed, 28 Feb 2024 09:14:45 +0100 Message-ID: <2024022827-CVE-2021-46995-6757@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=1881; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bwqVd9nFd4pbzjBlEG1izz/P3Kcl3MZf6CgK5uIku/M=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3XiffUa65WMdwesFlpfV27n0bTt6YY6K/7dTPDwKnh PMF5zyU6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJnL/OMD/QTTGy5ue/dYVN fprbSyP8JFxYnjLMYv744PdFo5nPPf1ztQve/2AxY/O7CgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe When we converted this code to use dev_err_probe() we accidentally removed a return. It means that if devm_clk_get() it will lead to an Oops when we call clk_get_rate() on the next line. The Linux kernel CVE team has assigned CVE-2021-46995 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit cf8ee6de2543 and fixed in 5.12.5 with commit 15f8f96ec7fc Issue introduced in 5.12 with commit cf8ee6de2543 and fixed in 5.13 with commit 4cc7faa40697 Please see https://www.kernel.org or 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-46995 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/net/can/spi/mcp251xfd/mcp251xfd-core.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/15f8f96ec7fc35024d4e03296e4d838fcea33d83 https://git.kernel.org/stable/c/4cc7faa406975b460aa674606291dea197c1210c