From mboxrd@z Thu Jan 1 00:00:00 1970 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 DE1911991CA for ; Thu, 27 Feb 2025 02:18:55 +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=1740622735; cv=none; b=HD59xzXhOEx4h887FKrwnCPmxxPh/mM0iTPzXGBmQjoyhkpbb08YMVaJ5KtyP0hjx4ycmG1Y77y/PKpi5Hv6oqHj6u/jeCvRx/Oy7C5fCNp7N0BPSYtauiCIGmYpwAp3/1XJWWR4fdun3az8xe0mdOxw1gZwN9cC6q5zCp30HSU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622735; c=relaxed/simple; bh=YIT5zNU5H0JlXuiss+JCcPSygBW1FrmQuX4Q6fDFXog=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dzzV2XLj40bmkbFVG4KwpEonpPZd5NbP8vKTDnWpTMbzUHnEKS0tI0V0h4ArhEBOhK+y9UwuUjSP+yOo+n4BHwKkNLl0B5Hq985IpAERr5tK5D0K3ZNahdHT/wrVRS8Me/zg2YgMYJ9FaIqT/1JY9RJjam5W5hevNGZsf5m9zDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NM0yfDVu; 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="NM0yfDVu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0E6FC4CEE2; Thu, 27 Feb 2025 02:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622735; bh=YIT5zNU5H0JlXuiss+JCcPSygBW1FrmQuX4Q6fDFXog=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NM0yfDVu91j3wsfUvMMLl0KHUCaDA8aOtEq0QdlPj9m0RMFZ9KFryXpcTklxloVYj pcAO3R5RpusE/YumR/BSTbcK+XEPfys1476JmSt8pVrFqUskqOwAjt+VJi1tZ1dqVB VB8he8B+M2lnPmC/DNwEfEtw5iKQjiqZhG4JSlYQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21775: can: ctucanfd: handle skb allocation failure Date: Wed, 26 Feb 2025 18:17:31 -0800 Message-ID: <2025022606-CVE-2025-21775-3137@gregkh> X-Mailer: git-send-email 2.48.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=2739; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YIT5zNU5H0JlXuiss+JCcPSygBW1FrmQuX4Q6fDFXog=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Tyvt7rJQmarGfoWxe8Pl7OiHjSLuQXIfDvHWZNYpv l/08HVURywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEhZlhruDz06lftzMun2Yq tXqpFl/JLxdpHoZ5OjdyrVyeLKxTyptkPjFRXvTYIeV+AA== 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: can: ctucanfd: handle skb allocation failure If skb allocation fails, the pointer to struct can_frame is NULL. This is actually handled everywhere inside ctucan_err_interrupt() except for the only place. Add the missed NULL check. Found by Linux Verification Center (linuxtesting.org) with SVACE static analysis tool. The Linux kernel CVE team has assigned CVE-2025-21775 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 2dcb8e8782d8e4c38903bf37b1a24d3ffd193da7 and fixed in 6.1.129 with commit 84b9ac59978a6a4e0812d1c938fad97306272cef Issue introduced in 5.19 with commit 2dcb8e8782d8e4c38903bf37b1a24d3ffd193da7 and fixed in 6.6.79 with commit e505b83b9ee6aa0ae2f4395f573a66579ae403fb Issue introduced in 5.19 with commit 2dcb8e8782d8e4c38903bf37b1a24d3ffd193da7 and fixed in 6.12.16 with commit b0e592dd46a0a952b41c3bf6c963afdd6a42b526 Issue introduced in 5.19 with commit 2dcb8e8782d8e4c38903bf37b1a24d3ffd193da7 and fixed in 6.13.4 with commit e7e2e2318b1f085044126ba553a4e619842fc36d Issue introduced in 5.19 with commit 2dcb8e8782d8e4c38903bf37b1a24d3ffd193da7 and fixed in 6.14-rc3 with commit 9bd24927e3eeb85642c7baa3b28be8bea6c2a078 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-2025-21775 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/ctucanfd/ctucanfd_base.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/84b9ac59978a6a4e0812d1c938fad97306272cef https://git.kernel.org/stable/c/e505b83b9ee6aa0ae2f4395f573a66579ae403fb https://git.kernel.org/stable/c/b0e592dd46a0a952b41c3bf6c963afdd6a42b526 https://git.kernel.org/stable/c/e7e2e2318b1f085044126ba553a4e619842fc36d https://git.kernel.org/stable/c/9bd24927e3eeb85642c7baa3b28be8bea6c2a078