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 B8689146A97 for ; Tue, 21 May 2024 15:40:13 +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=1716306013; cv=none; b=eoJ1sba8TmWVVWJ/z3qKWY/AAVcXbtpUPbdVxMvmN+y0xvLAp/+egFLEYe7+BYFpJ657s+GavJvtcNg7HBcpNEspVEk3PuB0Ahn/0RSh8B9Hs7AU6rRfFjfMTZUJ+Lzw6LgopLfM5XSe4UrDSlaskBjSiXYWp1hDp8cBTILH4Eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716306013; c=relaxed/simple; bh=GswUpOSakMT0D63gOg2Fvi6ZdTWIaGP0Y8+PqGLThiw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kXaGVjnos9CTr7wY3GcYD3d7rsEZ224j39iAvuIIe/NaJ+IYwor3HmkVW13uc5onh1ML8ldhQsR3ldEIFexQYaraF6PK+4IoCrHX3TOr7kNNxsQLZ+Al2MA+iD24hK6v0Pb1vNLUjJGDO4EpL5mFQeHSUFV+Bkpl2iJ1yw3lV18= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2LICQ2yD; 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="2LICQ2yD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39BB6C2BD11; Tue, 21 May 2024 15:40:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716306013; bh=GswUpOSakMT0D63gOg2Fvi6ZdTWIaGP0Y8+PqGLThiw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2LICQ2yDSME4OR4vaA1oZ0/y8Wcyt4K/6L2dmNIi3EwZ/jSMCnbERUo40N4WV3FKV ucM/N1io2iH+gSmuspmm+rbs8uzsvWKU5QKj11j+HFAIfkSlicxSKTITNYFGqi5KB7 K8/YP4l1xmlmWgi2daQ4z/Cex77ptB3dxW6QsZHM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52878: can: dev: can_put_echo_skb(): don't crash kernel if can_priv::echo_skb is accessed out of bounds Date: Tue, 21 May 2024 17:32:54 +0200 Message-ID: <2024052122-CVE-2023-52878-d433@gregkh> X-Mailer: git-send-email 2.45.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=2386; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GswUpOSakMT0D63gOg2Fvi6ZdTWIaGP0Y8+PqGLThiw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++7wuT564TNHz+omvgvfUV24o3dZo9f2g/OWTbJrXj 0/MmvL7fkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMpMaIYX46l/7BX9ufuXrG V37uEz90ZMV17ZMMC2Ycm6Gh53Ila5aRz9pQ++2xO9U6nwEA 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: dev: can_put_echo_skb(): don't crash kernel if can_priv::echo_skb is accessed out of bounds If the "struct can_priv::echoo_skb" is accessed out of bounds, this would cause a kernel crash. Instead, issue a meaningful warning message and return with an error. The Linux kernel CVE team has assigned CVE-2023-52878 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.33 with commit a6e4bc530403 and fixed in 5.15.139 with commit 826120c9ba68 Issue introduced in 2.6.33 with commit a6e4bc530403 and fixed in 6.1.63 with commit 0d30931f1fa0 Issue introduced in 2.6.33 with commit a6e4bc530403 and fixed in 6.5.12 with commit 53c468008a7c Issue introduced in 2.6.33 with commit a6e4bc530403 and fixed in 6.6.2 with commit 8ab67da06015 Issue introduced in 2.6.33 with commit a6e4bc530403 and fixed in 6.7 with commit 6411959c10fe 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-2023-52878 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/dev/skb.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/826120c9ba68f2d0dbae58e99013929c883d1444 https://git.kernel.org/stable/c/0d30931f1fa0fb893fb7d5dc32b6b7edfb775be4 https://git.kernel.org/stable/c/53c468008a7c9ca3f5fc985951f35ec2acae85bc https://git.kernel.org/stable/c/8ab67da060157362b2e0926692c659808784708f https://git.kernel.org/stable/c/6411959c10fe917288cbb1038886999148560057