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 A5B8621ADB9 for ; Wed, 26 Feb 2025 02:24:54 +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=1740536694; cv=none; b=Qk1Ik/oTjSvConVUo3UdkFXHgj3OFYu/+W50iTM027w5OgOIGCWDXwgwGPR36BBcGR8bUDR2auCioEOaxCMCxDuxY9AN1Lx6n/QFWom2Du2fsZVW9xb3tCiUFhdVuudAURkx9ZcsNR86+XHdtVNDH+CnD9uqCBvMqUUgoJNtZgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536694; c=relaxed/simple; bh=Mtl3BQCNebnKZG7JAd51zED48gmpeT6sDEw5iW9WAVQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ctHOBNxaB0JCvU6qNkp9Y5yEQEaKKky7zpoMUiJU6/vF4fEmq11eNgUAihoMmkpDOM+KNdwmoLBFeifH1lN7pV/7GyYSuxcIGVr0WTYHfCpfOQVf3JOliqOCULZGAmCxtXKFIk8DUuUgWNtH42BD3Jt9aqB8yOn3pGdh8HL+jHk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yO9JmX57; 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="yO9JmX57" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7ACA7C4CEDD; Wed, 26 Feb 2025 02:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536694; bh=Mtl3BQCNebnKZG7JAd51zED48gmpeT6sDEw5iW9WAVQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yO9JmX576N4iQ5d2R3uSN/r89ShQfHWH4annRAR8AVR01W826XwUXF9t/97EOZYX5 c9RDqbc/Wf68774t0GaiyGEY9Yb267DP1pPgfAyCeJgrvapiiXu8HiCsJvYg8qhToO SwYO5NvRSu6DmXm6Perxhfr8wIEkhagjgDNy9k0M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49659: can: m_can: m_can_{read_fifo,echo_tx_event}(): shift timestamp to full 32 bits Date: Wed, 26 Feb 2025 03:23:42 +0100 Message-ID: <2025022622-CVE-2022-49659-31c4@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=2519; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Mtl3BQCNebnKZG7JAd51zED48gmpeT6sDEw5iW9WAVQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qu7lyfxMf7pL/07pY/eZG7cHmmiFuZZtUE92P7/nb XCQXv6UjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIQSuG+YnMrZrHRKO+3lZV Sa6abv3pmG/Se4YFOyzZ12qkSvbvdpn1V/+OxSvVO67vAQ== 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: m_can: m_can_{read_fifo,echo_tx_event}(): shift timestamp to full 32 bits In commit 1be37d3b0414 ("can: m_can: fix periph RX path: use rx-offload to ensure skbs are sent from softirq context") the RX path for peripheral devices was switched to RX-offload. Received CAN frames are pushed to RX-offload together with a timestamp. RX-offload is designed to handle overflows of the timestamp correctly, if 32 bit timestamps are provided. The timestamps of m_can core are only 16 bits wide. So this patch shifts them to full 32 bit before passing them to RX-offload. The Linux kernel CVE team has assigned CVE-2022-49659 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 1be37d3b0414e3db47f6fcba6c16286bbae0cb65 and fixed in 5.15.54 with commit c7333f79888497bfd75dcd02a94eaf836dd1042c Issue introduced in 5.13 with commit 1be37d3b0414e3db47f6fcba6c16286bbae0cb65 and fixed in 5.18.11 with commit 2a2914a5bd7f38efe55a8372178146de82e0bce9 Issue introduced in 5.13 with commit 1be37d3b0414e3db47f6fcba6c16286bbae0cb65 and fixed in 5.19 with commit 4c3333693f07313f5f0145a922f14a7d3c0f4f21 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-49659 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/m_can/m_can.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/c7333f79888497bfd75dcd02a94eaf836dd1042c https://git.kernel.org/stable/c/2a2914a5bd7f38efe55a8372178146de82e0bce9 https://git.kernel.org/stable/c/4c3333693f07313f5f0145a922f14a7d3c0f4f21