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 BB73F1991B0 for ; Tue, 16 Jul 2024 12:28:37 +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=1721132917; cv=none; b=cor2viWFL1hhkgcoWJ2qEkUiFZLMERd4XIRhmiB/wa3XNvbIyy8azJfrpXXRnxC8mM6NJ5kcYuxGC6Shqq5Z/OvJjRwL8cn3+8VyuE8aDDdoxJh9mNH3z6pf+QHa250XIq9WUeD+UQojyL0dc7+ahmItf4ZhI8jT8fmLEctJCPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721132917; c=relaxed/simple; bh=ac5/DzAgqerAl7bhhFSU1lP64dJ++BeBPVr0dDbjyrc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BySS/U9TfvcoUf+n2saAAH8PpCyR+a1vuX9BX8nsii+yIHZvkzCkpB+STETI3H/TK4MWmSzXDGsCW9uDibBHA0lRvcNg0V2e7SA3gu9T8QdvgJDXZUwfTAPsdMh8CZb6Avkfh7PflBZPodvTYfd1oZT6gc2NVqlBKpY5FWX2OlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eIW/GKBe; 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="eIW/GKBe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E79EC116B1; Tue, 16 Jul 2024 12:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721132917; bh=ac5/DzAgqerAl7bhhFSU1lP64dJ++BeBPVr0dDbjyrc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eIW/GKBeTffh7ABTji2MXAjoWiYX+Utwj8BwLE/AlBjz5U8fu1QSFFUh8S38LI1kx qpk9lkiNnTtgw+B5hj7J91e7d40UYd2YCfJTlDu3FQE5csG+qU+mR5i8a65l+r7K/I oOl04w0Tl5s7urCFrZVDE0jcTjJHpkK/Zdn0LEzc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48859: net: marvell: prestera: Add missing of_node_put() in prestera_switch_set_base_mac_addr Date: Tue, 16 Jul 2024 14:27:44 +0200 Message-ID: <2024071627-CVE-2022-48859-4427@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=2021; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ac5/DzAgqerAl7bhhFSU1lP64dJ++BeBPVr0dDbjyrc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnT0vUF+w/EHtv8VbK88Xc/94qNK8PSCs0sm4/dteG/b 6izOfVARywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykMI1hfnZfzgqV7G6Pgs6b vh/18iZzmLxNYliwba+v56z3Wzrr/3BOVd8i9kp38zFHAA== 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: marvell: prestera: Add missing of_node_put() in prestera_switch_set_base_mac_addr This node pointer is returned by of_find_compatible_node() with refcount incremented. Calling of_node_put() to aovid the refcount leak. The Linux kernel CVE team has assigned CVE-2022-48859 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 501ef3066c89 and fixed in 5.15.29 with commit b7c2fd1d1263 Issue introduced in 5.10 with commit 501ef3066c89 and fixed in 5.16.15 with commit 4cc66bf17220 Issue introduced in 5.10 with commit 501ef3066c89 and fixed in 5.17 with commit c9ffa3e2bc45 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-2022-48859 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/marvell/prestera/prestera_main.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/b7c2fd1d126329340639adfb8dd2938fe4b65df7 https://git.kernel.org/stable/c/4cc66bf17220ff9631f9fa99b02a872e0ad5a08b https://git.kernel.org/stable/c/c9ffa3e2bc451816ce0295e40063514fabf2bd36