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 B98238004F for ; Mon, 29 Jul 2024 15:53:03 +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=1722268383; cv=none; b=jdqiobLN1KU4EbxblHgc2iy3H17B7nn3DMlGdMdcdcmd0SswaQUdsRhtwLaKFpi2En0DhMNFUHXbNZ7EmFDY9pMA/m4ata+6WgjCMGgguwE0f2hTKFmUbF3tcnn8TlGlu+rPFWgRd515szjYhyuYiE3sMKX62fUVMwUS+jiPiUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722268383; c=relaxed/simple; bh=cqE2af12IuVrCAeM/cD7fdW57/DTeHjShgcCcye8vBg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i6tlFpdMWOA52RstPAk4cOPZn0gYfjA2HaVEtbgwSiRVCC/0yzeZjl5GdtrkZGLSYP8PBvZG+u7LaU8wPPWVWTO8Dz7a+IzVllA9IXpuaa/wkbta+g8mMyIcQYmGqzwrrRlUtrAKjUpdlNmjH/r8a6neje0vKFm7CSmjZu1958Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lKpjcjcy; 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="lKpjcjcy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FEE7C32786; Mon, 29 Jul 2024 15:53:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722268383; bh=cqE2af12IuVrCAeM/cD7fdW57/DTeHjShgcCcye8vBg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lKpjcjcy5WFXmdt8cIAiR8jvq3rf76rJlzw4GoyuXEMeq3SbhbQIuXitNGlcW2QyO 3BZnWqalDh3Bj/osIwFJblNKeiBG54NOUMZQoS4YDz/8vT98qyjcGjkCkEtp8Auoyi W00OIdWypOyTC5GBmRl/nRaJuoT485F5iaJXrkyY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52887: net: can: j1939: enhanced error handling for tightly received RTS messages in xtp_rx_rts_session_new Date: Mon, 29 Jul 2024 17:52:51 +0200 Message-ID: <2024072950-CVE-2023-52887-b839@gregkh> X-Mailer: git-send-email 2.45.2 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=3216; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cqE2af12IuVrCAeM/cD7fdW57/DTeHjShgcCcye8vBg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLd11SOFpwcNVBbs0zGhX/Tc78OZUkLHdYvI9727/A+ it2Iu1xHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARh+0M8yv/tiz8dfydlJtr ef7MzNkplnLytxgWbHBan75setpktftqdWfaNtxxzb8yDQA= 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: net: can: j1939: enhanced error handling for tightly received RTS messages in xtp_rx_rts_session_new This patch enhances error handling in scenarios with RTS (Request to Send) messages arriving closely. It replaces the less informative WARN_ON_ONCE backtraces with a new error handling method. This provides clearer error messages and allows for the early termination of problematic sessions. Previously, sessions were only released at the end of j1939_xtp_rx_rts(). Potentially this could be reproduced with something like: testj1939 -r vcan0:0x80 & while true; do # send first RTS cansend vcan0 18EC8090#1014000303002301; # send second RTS cansend vcan0 18EC8090#1014000303002301; # send abort cansend vcan0 18EC8090#ff00000000002301; done The Linux kernel CVE team has assigned CVE-2023-52887 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 9d71dd0c7009 and fixed in 5.4.279 with commit ed581989d7ea Issue introduced in 5.4 with commit 9d71dd0c7009 and fixed in 5.10.221 with commit f6c839e71790 Issue introduced in 5.4 with commit 9d71dd0c7009 and fixed in 5.15.162 with commit 1762ca80c2b7 Issue introduced in 5.4 with commit 9d71dd0c7009 and fixed in 6.1.97 with commit 26b18dd30e63 Issue introduced in 5.4 with commit 9d71dd0c7009 and fixed in 6.6.37 with commit 177e33b655d3 Issue introduced in 5.4 with commit 9d71dd0c7009 and fixed in 6.9.8 with commit 0bc0a7416ea7 Issue introduced in 5.4 with commit 9d71dd0c7009 and fixed in 6.10 with commit d3e2904f71ea 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-52887 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/transport.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/ed581989d7ea9df6f8646beba2341e32cd49a1f9 https://git.kernel.org/stable/c/f6c839e717901dbd6b1c1ca807b6210222eb70f6 https://git.kernel.org/stable/c/1762ca80c2b72dd1b5821c5e347713ae696276ea https://git.kernel.org/stable/c/26b18dd30e63d4fd777be429148e8e4ed66f60b2 https://git.kernel.org/stable/c/177e33b655d35d72866b50aec84307119dc5f3d4 https://git.kernel.org/stable/c/0bc0a7416ea73f79f915c9a05ac0858dff65cfed https://git.kernel.org/stable/c/d3e2904f71ea0fe7eaff1d68a2b0363c888ea0fb