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 0D5871F542A for ; Fri, 27 Dec 2024 14:59:45 +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=1735311585; cv=none; b=mmlPERJc+vwQImjmFP40feAND0TTgQ42IiAybIfjE2pVZ1S2OoCZSXMe/UD+qtbqKNtvpj54ZL7XMAMT/gL7I5yYDl/RR1bkhuzMdMEd/UUBs0NPbXjgo5x3PIAGmro1k7yJFRd+cmyuu7GcEAXxfFQ+ED1NmOUpvsp+actZiYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735311585; c=relaxed/simple; bh=+J6iMKWqeOzZ4Km5XF8zqSrWOamUyKhrtV+1vwYR3XU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lF8hCU3iav1ahNFP7Ev6BF9yPng2Q9V/ynAEovCjCIYZc/xzgz92sQOGHyfWeSDJS3N0fHpjfkfQh0+EujSvWSYwcQzSPzojsrPFB31Tpd4kHMe2veYN8/+3KqfeCKwx3/nN4ctdaoUnlguRaIuQjYIUbJVOVvNQYa+sDN306zA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RGvK9Stu; 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="RGvK9Stu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E133C4CED0; Fri, 27 Dec 2024 14:59:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735311584; bh=+J6iMKWqeOzZ4Km5XF8zqSrWOamUyKhrtV+1vwYR3XU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RGvK9Stu9xwR+8cZXTmAXReOoq76U2D8PxguybIyYq/fhSeWN7m4eQCmxHusVMQ6K KUQLYDY/2NRW8BWlKXBntOXgSKvrLQIwVZEMpAgN1BAPcXwUsSScjVB+iF4Hwj8eiC LfVOAUEnQHVdVLnSlomJ9xgN0wRq5deb6uLxZZp4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56603: net: af_can: do not leave a dangling sk pointer in can_create() Date: Fri, 27 Dec 2024 15:51:10 +0100 Message-ID: <2024122703-CVE-2024-56603-3db8@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=2560; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+J6iMKWqeOzZ4Km5XF8zqSrWOamUyKhrtV+1vwYR3XU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5+24Yx74LPr+uwM83X4btzaqNy8pTAp9fsv7oF55/s /GcdmphRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEYSPDguVH27hm3b3Q658w gelngebBHe+uizDM4eaXnrc6MenoKdFLzUucbhxhn63ZDwA= 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: af_can: do not leave a dangling sk pointer in can_create() On error can_create() frees the allocated sk object, but sock_init_data() has already attached it to the provided sock object. This will leave a dangling sk pointer in the sock object and may cause use-after-free later. The Linux kernel CVE team has assigned CVE-2024-56603 to this issue. Affected and fixed versions =========================== Fixed in 5.4.287 with commit 884ae8bcee749be43a071d6ed2d89058dbd2425c Fixed in 5.10.231 with commit ce39b5576785bb3e66591145aad03d66bc3e778d Fixed in 5.15.174 with commit 1fe625f12d090d69f3f084990c7e4c1ff94bfe5f Fixed in 6.1.120 with commit 5947c9ac08f0771ea8ed64186b0d52e9029cb6c0 Fixed in 6.6.66 with commit db207d19adbac96058685f6257720906ad41d215 Fixed in 6.12.5 with commit 8df832e6b945e1ba61467d7f1c9305e314ae92fe Fixed in 6.13-rc1 with commit 811a7ca7320c062e15d0f5b171fe6ad8592d1434 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-56603 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/af_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/884ae8bcee749be43a071d6ed2d89058dbd2425c https://git.kernel.org/stable/c/ce39b5576785bb3e66591145aad03d66bc3e778d https://git.kernel.org/stable/c/1fe625f12d090d69f3f084990c7e4c1ff94bfe5f https://git.kernel.org/stable/c/5947c9ac08f0771ea8ed64186b0d52e9029cb6c0 https://git.kernel.org/stable/c/db207d19adbac96058685f6257720906ad41d215 https://git.kernel.org/stable/c/8df832e6b945e1ba61467d7f1c9305e314ae92fe https://git.kernel.org/stable/c/811a7ca7320c062e15d0f5b171fe6ad8592d1434