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 21A8B1F63D5 for ; Fri, 27 Dec 2024 15:03:05 +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=1735311785; cv=none; b=QspYlVPQ3Ayy3duPEM9g4mR4S4Z5NBv+6xS454I4SHPvd661RlzY3aVHr1pPvYW4fSVQdPXTS8L+ctGSByZ8WRCv1CT511TgtDO126F5oOB4rjGwoIBq7CXvZqp1/1rO463ZVVt1lZ+rUabBKsUxq7laRI2eET5ACOWms/EKbMw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735311785; c=relaxed/simple; bh=3HfwA/2+r5KI7jS3HhbaszBJNeXIYB0ta21BgNOE19E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rvCSkEPQWkA3jpN8OdHBLpr0QXtA5516ZYWj+zAuvBfHJQ9Wm9HcNXkKKQ1RknoHSgmKMAcnmh5xN9Telt28Tq8iNFgzp1qwKKls0iuPW/Hug3yolywv1Rax1yKWmIiG5pDR7l2L4RxPScLpLbuXForDbSZNdJln1ZsvTDmej4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B0EVNdu3; 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="B0EVNdu3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AD60C4CED0; Fri, 27 Dec 2024 15:03:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735311785; bh=3HfwA/2+r5KI7jS3HhbaszBJNeXIYB0ta21BgNOE19E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=B0EVNdu3vESrWjuCHjtrGKdAhrEMcPRgG1+pppQc+Nyzp40t71XzIYPTcWt1qCoM3 joK5vOLoEdOb2OJIkBcBusg624GACwQuUqR7PBoYPSNg3vLukluje4Isem0aW1vuiu 37y6xzplcSsLLZ33WxkHNwXLMAejAxOrCJBGYUzg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56645: can: j1939: j1939_session_new(): fix skb reference counting Date: Fri, 27 Dec 2024 16:02:46 +0100 Message-ID: <2024122738-CVE-2024-56645-bc11@gregkh> X-Mailer: git-send-email 2.47.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=3104; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3HfwA/2+r5KI7jS3HhbaszBJNeXIYB0ta21BgNOE19E=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5B/v+WTH4bihod7R5I72iIiPrrKiJqNuvW8u39jvo9 muE8Tl3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwESetzHMz5x5O7mRafvXn7XJ k+NSI8KOMr85wrBgyisr8fqt29rajyyN2fVIqK9x3UkeAA== 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: j1939: j1939_session_new(): fix skb reference counting Since j1939_session_skb_queue() does an extra skb_get() for each new skb, do the same for the initial one in j1939_session_new() to avoid refcount underflow. [mkl: clean up commit message] The Linux kernel CVE team has assigned CVE-2024-56645 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 5.4.287 with commit 224e606a8d8e8c7db94036272c47a37455667313 Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 5.10.231 with commit b3282c2bebeeb82ceec492ee4972f51ee7a4a132 Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 5.15.174 with commit 4199dd78a59896e091d3a7a05a77451aa7fd724d Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 6.1.120 with commit f117cba69cbbd496babb3defcdf440df4fd6fe14 Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 6.6.66 with commit 426d94815e12b6bdb9a75af294fbbafb9301601d Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 6.12.5 with commit 68fceb143b635cdc59fed3896d5910aff38f345e Issue introduced in 5.4 with commit 9d71dd0c70099914fcd063135da3c580865e924c and fixed in 6.13-rc2 with commit a8c695005bfe6569acd73d777ca298ddddd66105 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-2024-56645 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/224e606a8d8e8c7db94036272c47a37455667313 https://git.kernel.org/stable/c/b3282c2bebeeb82ceec492ee4972f51ee7a4a132 https://git.kernel.org/stable/c/4199dd78a59896e091d3a7a05a77451aa7fd724d https://git.kernel.org/stable/c/f117cba69cbbd496babb3defcdf440df4fd6fe14 https://git.kernel.org/stable/c/426d94815e12b6bdb9a75af294fbbafb9301601d https://git.kernel.org/stable/c/68fceb143b635cdc59fed3896d5910aff38f345e https://git.kernel.org/stable/c/a8c695005bfe6569acd73d777ca298ddddd66105