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 508451F5407 for ; Fri, 27 Dec 2024 14:59:38 +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=1735311578; cv=none; b=jCQS0WSwjtO0hk3RtaVgxlyHBi2m60BIZr0pJoLBaAA6pSQ27ve7aHoMNaJ4Hxwvou+CzFltvEW/hzgoe1xoyxzIjjWN4x5xQsorOESp6gPlwLekXf2fJ+4FtNKi3TBJzFGjIxhb0ELLnCOw47/1WSNnr/wHyyVQqxCPM/CNPA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735311578; c=relaxed/simple; bh=+XimR9KDonM+gD9rAV7+5fUq43lP3TJQXYl51nT25H0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a3kFKE3FtJrzCc/nvh2Qb6J2gbXmUeRZh4f+6f9HoSeZzMKRy7Myyd1SCWpeHyqlxxVyye4LBxLitiFYVaY3j/TugMRYXwLLY/TUr86UDGiPHgultZMsfNPcqb641V3wtHUzQ0W5xnGwWxm5G1akSnCkMwM7uyeURAqDgASeSw4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=co4fBEYQ; 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="co4fBEYQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA684C4CED0; Fri, 27 Dec 2024 14:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735311578; bh=+XimR9KDonM+gD9rAV7+5fUq43lP3TJQXYl51nT25H0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=co4fBEYQXPwRbKxRN0dc4Bh2rIFgIsGly740/rFVRxCo9R/lpyYt6e6VJOcxDyfKM wmjzZPD6BUiqk+xEEjv7S+ohCwP3o8zj+Y1o4wzyOkpU3DAHXav6i0+LoY7KwKMXEu MTdf/GyudS/Q6swOxupjrz7Y6cRcxON51tE8OnzE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56602: net: ieee802154: do not leave a dangling sk pointer in ieee802154_create() Date: Fri, 27 Dec 2024 15:51:09 +0100 Message-ID: <2024122703-CVE-2024-56602-d030@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=2655; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+XimR9KDonM+gD9rAV7+5fUq43lP3TJQXYl51nT25H0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5+643Fd85Hh54yVdgwWTBGal+C9845iy/5Zro8MAk9 rpE19+kjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiInRPDgnkXL8+8on45zffy 37/Kt7euyHATOsYwT1H5vL3Ks85J+x8uNZsSJvFedHNqDgA= 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: ieee802154: do not leave a dangling sk pointer in ieee802154_create() sock_init_data() attaches the allocated sk object to the provided sock object. If ieee802154_create() fails later, the allocated sk object is freed, but the dangling pointer remains in the provided sock object, which may allow use-after-free. Clear the sk pointer in the sock object on error. The Linux kernel CVE team has assigned CVE-2024-56602 to this issue. Affected and fixed versions =========================== Fixed in 5.4.287 with commit 1d5fe782c0ff068d80933f9cfd0fd39d5434bbc9 Fixed in 5.10.231 with commit 14959fd7538b3be6d7617d9e60e404d6a8d4fd1f Fixed in 5.15.174 with commit 2b46994a6e76c8cc5556772932b9b60d03a55cd8 Fixed in 6.1.120 with commit e8bd6c5f5dc2234b4ea714380aedeea12a781754 Fixed in 6.6.66 with commit b4982fbf13042e3bb33e04eddfea8b1506b5ea65 Fixed in 6.12.5 with commit 03caa9bfb9fde97fb53d33decd7364514e6825cb Fixed in 6.13-rc1 with commit b4fcd63f6ef79c73cafae8cf4a114def5fc3d80d 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-56602 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/ieee802154/socket.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/1d5fe782c0ff068d80933f9cfd0fd39d5434bbc9 https://git.kernel.org/stable/c/14959fd7538b3be6d7617d9e60e404d6a8d4fd1f https://git.kernel.org/stable/c/2b46994a6e76c8cc5556772932b9b60d03a55cd8 https://git.kernel.org/stable/c/e8bd6c5f5dc2234b4ea714380aedeea12a781754 https://git.kernel.org/stable/c/b4982fbf13042e3bb33e04eddfea8b1506b5ea65 https://git.kernel.org/stable/c/03caa9bfb9fde97fb53d33decd7364514e6825cb https://git.kernel.org/stable/c/b4fcd63f6ef79c73cafae8cf4a114def5fc3d80d