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 809001EB18D for ; Thu, 1 May 2025 14:14: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=1746108895; cv=none; b=t80JKZK1Ewxo5NrZvwJe+l5BtUjctssyZVt84dLmMrbU3aM4PDU8+7caB9kS3XhLUP/cvgGQq4M6qZoiXtg7Tg8ujPX5LcRLAu9tYUpaKlmKSKiMsVse45yfxYpL1IeJLz/HY2Ok62n6q0UdiGLO95gNpFvCvOVaMjQgjpC1ykg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108895; c=relaxed/simple; bh=kT1xTcGflyQJ8WM0sN12oYhSsZaaIUhzSF0k2u3qG0M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fU87H94FAG9/KbwICdGOyb5FAyXQRYgha+ANpd9+NrjIwgaCzXOZlx5c3eyUrGmRWtOskHmivVN/YU8p7sJIo0l3Q2Sv24M+NC8iERSaILuuk6vv2QgEcGjftj/Z9x4fimyPvRrKaEz0ObNT4TzEh2JVeBAV5nRg5u+SGFBMcqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w+WefIra; 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="w+WefIra" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E22DC4CEE3; Thu, 1 May 2025 14:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108895; bh=kT1xTcGflyQJ8WM0sN12oYhSsZaaIUhzSF0k2u3qG0M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=w+WefIrad+lQ4Cll+p44TyGxjPO8zcfmTz9XfCATLULBUleByby45EtXg+v9bx7u9 qtMMb+OI0VS75mRU+TJ1rBfJ7+dGua0FgYj1eMW5nw2JVEH957+dWR7OYJFOwWg3wE MbT49a96CCyOjPseUm+NdbfqzNqPBwZvTCG13Q5M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49845: can: j1939: j1939_send_one(): fix missing CAN header initialization Date: Thu, 1 May 2025 16:10:35 +0200 Message-ID: <2025050141-CVE-2022-49845-2a75@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=2681; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TyTjnRxy++A0JHVqmiPuIRahp5UTsQ2u5Zrowz/pXec=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDcs+BW9auX+P8ssNxsFMy676GWvtj5677t6Hi3KRr 9PuTX2u2RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT+cDAMN9lbnvuGtE+pcIf k5fMzdR/0qB/hpFhfjzDxkAtSe9bXAncEeu/RlZFt7adAgA= 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: can: j1939: j1939_send_one(): fix missing CAN header initialization The read access to struct canxl_frame::len inside of a j1939 created skbuff revealed a missing initialization of reserved and later filled elements in struct can_frame. This patch initializes the 8 byte CAN header with zero. The Linux kernel CVE team has assigned CVE-2022-49845 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 5.4.225 with commit d0513b095e1ef1469718564dec3fb3348556d0a8 Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 5.10.155 with commit f8e0edeaa0f2b860bdbbf0aafb4492533043d650 Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 5.15.79 with commit 69e86c6268d59ceddd0abe9ae8f1f5296f316c3c Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 6.0.9 with commit 2719f82ad5d8199cf5f346ea8bb3998ad5323b72 Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 6.1 with commit 3eb3d283e8579a22b81dd2ac3987b77465b2a22f 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-49845 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/can/j1939/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/d0513b095e1ef1469718564dec3fb3348556d0a8 https://git.kernel.org/stable/c/f8e0edeaa0f2b860bdbbf0aafb4492533043d650 https://git.kernel.org/stable/c/69e86c6268d59ceddd0abe9ae8f1f5296f316c3c https://git.kernel.org/stable/c/2719f82ad5d8199cf5f346ea8bb3998ad5323b72 https://git.kernel.org/stable/c/3eb3d283e8579a22b81dd2ac3987b77465b2a22f