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 EE69218FC72 for ; Sat, 11 Jan 2025 12:30:26 +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=1736598627; cv=none; b=Br044mVgCEUY6RRyog1lu/ZP7NFckJh3Cxxn+jadTZ2MIZL9rqQzBSdZkToNUbzfxTvyPD3rATifqHi0eztHsldwjlDD2JgRmeVfjYS8USTD12UFu0XVg6ZN5SL9FDXxxfplk8qoK0OR1FqF65p+w4BUkI7NKJvQljm8YGOAWsM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736598627; c=relaxed/simple; bh=f7Z9ZD8I3o24ql8kKJy9mgHI2rCZ/lMdpWX9FWiYVxI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kK9tCuEFu1MkpS7oNf84rPHLAerVKBxzzYO4+zow6SrR1JhNBt5BWxCbRDkFUsmC1QyLmoC9987w94Y30a+QJgtkuBA1XwPGPANUCcIDYmQH46mSsqmzh4U1/+ViWHZXgdFQwA+YmN77pQu5J1eC8opdncS/dEy5wiABhHi3ZUY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sbNK+doF; 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="sbNK+doF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 081DEC4CED2; Sat, 11 Jan 2025 12:30:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736598626; bh=f7Z9ZD8I3o24ql8kKJy9mgHI2rCZ/lMdpWX9FWiYVxI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sbNK+doFJd/ZAyG6WvWPwMYKiVNJvi83lTLj4f+bBtRqz7jPG7yFkWhrqmvPXM1Gh syGlgQrO+WnZeTcyh45ks61ei1Vg8pBidbyzHuv9mR2YDnR/Shf/yMCk/B/9uoOG1n xO2g0VyS5whV1nVEZroFrnI7juGf88COJwFEOzu0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-55639: net: renesas: rswitch: avoid use-after-put for a device tree node Date: Sat, 11 Jan 2025 13:30:04 +0100 Message-ID: <2025011159-CVE-2024-55639-b3d2@gregkh> X-Mailer: git-send-email 2.48.0 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=2232; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=f7Z9ZD8I3o24ql8kKJy9mgHI2rCZ/lMdpWX9FWiYVxI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNKe4a+0IvZE3/kXTgl8vGs5W9bnNY4r0u8/TN2GK+b ecsza7ujlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIyk2GBVders9y3DU3Yua3 tOlsSTMULNbxHWCYn1pYY707gndjnMZt5+5D318pFbe6AgA= 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: renesas: rswitch: avoid use-after-put for a device tree node The device tree node saved in the rswitch_device structure is used at several driver locations. So passing this node to of_node_put() after the first use is wrong. Move of_node_put() for this node to exit paths. The Linux kernel CVE team has assigned CVE-2024-55639 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit b46f1e5793298c67efc2f1b917350a2cefacf9d6 and fixed in 6.6.67 with commit bf8c6755f02029d1eddc3ff19b870240f054afc7 Issue introduced in 6.3 with commit b46f1e5793298c67efc2f1b917350a2cefacf9d6 and fixed in 6.12.6 with commit 92007a28f95413058a7268dc84e5f44b700165d1 Issue introduced in 6.3 with commit b46f1e5793298c67efc2f1b917350a2cefacf9d6 and fixed in 6.13-rc3 with commit 66b7e9f85b8459c823b11e9af69dbf4be5eb6be8 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-55639 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/ethernet/renesas/rswitch.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/bf8c6755f02029d1eddc3ff19b870240f054afc7 https://git.kernel.org/stable/c/92007a28f95413058a7268dc84e5f44b700165d1 https://git.kernel.org/stable/c/66b7e9f85b8459c823b11e9af69dbf4be5eb6be8