From mboxrd@z Thu Jan 1 00:00:00 1970 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 BD40B1581F9 for ; Wed, 16 Apr 2025 14:15:22 +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=1744812922; cv=none; b=inq+d57mxJ7nnaMKu09AMnNaUfk7eV+3t5YT94oYCkQElmDuICLbOQWIxpHaazKSih2Xocgj7NvMRW+ignnXqvw2dvCZj8g1ObJ95Ci8nU9tftU0fpbYAy2j5QUo7x18sFLMwt+lxT3JWdkblNHExv073S9JD182TTgVijWyz94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812922; c=relaxed/simple; bh=zT/iaF+q/MGE4odSN8J7VNd92purF0eOYQA8hgu+3mI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CXXZNebimMdDwtO+LfznPGVHbdglFGTblRp44JUIOLVw2dWz7ym8qYtiIwaZuusF855BkUDujyHP5cV2bVRlZZXGvczWzNMJkZUC+G3vDVDHovDR/wZ51ckQjt67wi0W73Sde3PdThUzAcys/JeQdklKRdHOC0MbJvbX3++KMnY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mcPQs/DF; 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="mcPQs/DF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42BA1C4CEE2; Wed, 16 Apr 2025 14:15:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812922; bh=zT/iaF+q/MGE4odSN8J7VNd92purF0eOYQA8hgu+3mI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mcPQs/DFKzQzQZYG3748ZgEwXRXmvrLmrqjmDU/Dv4RwNBCmDE03Bpu+kpmXF/ohp EwN1wC9lUHHA0SDlO5y0oKZcxmm/3pOpgss62oxmhPgMaV8YUA7ShGpjsfl0lzD3Us pqZzB3C/i4nznpvWdx81cNcsiVSMvmXrqO4JwZ2o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22060: net: mvpp2: Prevent parser TCAM memory corruption Date: Wed, 16 Apr 2025 16:12:31 +0200 Message-ID: <2025041606-CVE-2025-22060-cba9@gregkh> X-Mailer: git-send-email 2.49.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=3844; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zT/iaF+q/MGE4odSN8J7VNd92purF0eOYQA8hgu+3mI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d207Yme3N7W/yDbv6ffvS2VF5VhXXlPW/PlDqiCve 3ZslHNPRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk2pFhwUKT4+YZx4u2/NyX E3rkQtmrSd1q2xkWHO0Vczpz3OqNyTu9pS/au1sP9W1eDgA= 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: mvpp2: Prevent parser TCAM memory corruption Protect the parser TCAM/SRAM memory, and the cached (shadow) SRAM information, from concurrent modifications. Both the TCAM and SRAM tables are indirectly accessed by configuring an index register that selects the row to read or write to. This means that operations must be atomic in order to, e.g., avoid spreading writes across multiple rows. Since the shadow SRAM array is used to find free rows in the hardware table, it must also be protected in order to avoid TOCTOU errors where multiple cores allocate the same row. This issue was detected in a situation where `mvpp2_set_rx_mode()` ran concurrently on two CPUs. In this particular case the MVPP2_PE_MAC_UC_PROMISCUOUS entry was corrupted, causing the classifier unit to drop all incoming unicast - indicated by the `rx_classifier_drops` counter. The Linux kernel CVE team has assigned CVE-2025-22060 to this issue. Affected and fixed versions =========================== Issue introduced in 3.17 with commit 3f518509dedc99f0b755d2ce68d24f610e3a005a and fixed in 5.15.180 with commit e3711163d14d02af9005e4cdad30899c565f13fb Issue introduced in 3.17 with commit 3f518509dedc99f0b755d2ce68d24f610e3a005a and fixed in 6.1.134 with commit b3f48a41a00d6d8d9c6fe09ae47dd21c8c1c8b03 Issue introduced in 3.17 with commit 3f518509dedc99f0b755d2ce68d24f610e3a005a and fixed in 6.6.87 with commit 5b0ae1723a7d9574ae1aee7d9cf9757a30069865 Issue introduced in 3.17 with commit 3f518509dedc99f0b755d2ce68d24f610e3a005a and fixed in 6.12.23 with commit fcbfb54a0269875cf3cd6a2bff4f85a2e0a0b552 Issue introduced in 3.17 with commit 3f518509dedc99f0b755d2ce68d24f610e3a005a and fixed in 6.13.11 with commit e64e9b6e86b39db3baa576fd73da73533b54cb2d Issue introduced in 3.17 with commit 3f518509dedc99f0b755d2ce68d24f610e3a005a and fixed in 6.14.2 with commit 46c1e23e34c9d1eaadf37f88216d9d8ce0d0bcee Issue introduced in 3.17 with commit 3f518509dedc99f0b755d2ce68d24f610e3a005a and fixed in 6.15-rc1 with commit 96844075226b49af25a69a1d084b648ec2d9b08d 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-2025-22060 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/mvpp2/mvpp2.h drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.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/e3711163d14d02af9005e4cdad30899c565f13fb https://git.kernel.org/stable/c/b3f48a41a00d6d8d9c6fe09ae47dd21c8c1c8b03 https://git.kernel.org/stable/c/5b0ae1723a7d9574ae1aee7d9cf9757a30069865 https://git.kernel.org/stable/c/fcbfb54a0269875cf3cd6a2bff4f85a2e0a0b552 https://git.kernel.org/stable/c/e64e9b6e86b39db3baa576fd73da73533b54cb2d https://git.kernel.org/stable/c/46c1e23e34c9d1eaadf37f88216d9d8ce0d0bcee https://git.kernel.org/stable/c/96844075226b49af25a69a1d084b648ec2d9b08d