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 EC7032E62D8 for ; Wed, 1 Oct 2025 11:56:25 +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=1759319787; cv=none; b=mrAXHvPpddVVoCN+hltQH2bOVprZtLmagXEfqK7GADq3L9YJdIxxuVvl/39mf0soOFYldSmrzhb/tNz6urtLMZoqNc+UChTJxE/8VQbdNUHRah4TiKh290PEmcW2AeT9Xv6joLVsbaQ/aaDyoqqvt2bvgrb7Yn6ccus8XYB2/gE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319787; c=relaxed/simple; bh=0ethO+KJEa83Tva465CEWJX9suMlcX7QURGefaXI8Fo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MELDLCgLj3OA7CeFho+6uCCFXZttgADJCOPXldeHVyDnkYLMai52raWxvZuBMNMrbFl/PiqyFgyubmdyO3EnUfewi3NeqjcOFtCauwVqzk3zEpJBWGHJBb+7xMLi/Tk7kBztu6siL4/N2uBcvWpxtn1X41+5AkQvVk9c/lmpQ2o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Cavuhmw+; 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="Cavuhmw+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22179C4CEF4; Wed, 1 Oct 2025 11:56:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319785; bh=0ethO+KJEa83Tva465CEWJX9suMlcX7QURGefaXI8Fo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Cavuhmw++KAozlVLd0E9pwjh8nEB4W+61oDMQnyZFnDIFphm0VKvhDtBcUXEfseDq hWIYpeG49oYCQ3GIyiwAVw6vsrhl+mPmwjTsF3YNrsEf4XCx9vmU5gvfLOQbzSL+pi t/UqzYLMnlJbz6u2vFX0ZEshFdsZQ4eBz4iIIvRE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53495: net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc() Date: Wed, 1 Oct 2025 13:45:47 +0200 Message-ID: <2025100125-CVE-2023-53495-3cce@gregkh> X-Mailer: git-send-email 2.51.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=2914; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eNslvFSx1+U9h9fHNf+5bkUz3off4R8w+6vD/kTgQLo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RUJ/W7vLBc18buf7sP9k665vuwsZTQv3ze4x/tGWu FM7esP+jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI4p0MC5YbsAdmr1v5ree2 sQu71U7nf3bC/xjm53EXx8mETYizvL/hwe/1xfa18i//AgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc() rules is allocated in ethtool_get_rxnfc and the size is determined by rule_cnt from user space. So rule_cnt needs to be check before using rules to avoid OOB writing or NULL pointer dereference. The Linux kernel CVE team has assigned CVE-2023-53495 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 90b509b39ac9b09be88eb641c7a3abd8de06b698 and fixed in 5.4.257 with commit ba6673824efa3dc198b04a54e69dce480066d7d9 Issue introduced in 5.2 with commit 90b509b39ac9b09be88eb641c7a3abd8de06b698 and fixed in 5.10.195 with commit 61054a8ddb176b155a8f2bacdfefb3727187f5d9 Issue introduced in 5.2 with commit 90b509b39ac9b09be88eb641c7a3abd8de06b698 and fixed in 5.15.132 with commit 5bb09dddc724c5f7c4dc6dd3bfebd685eecd93e8 Issue introduced in 5.2 with commit 90b509b39ac9b09be88eb641c7a3abd8de06b698 and fixed in 6.1.54 with commit 349638f7e5d3c7d328565587bb7b0454bbee02e2 Issue introduced in 5.2 with commit 90b509b39ac9b09be88eb641c7a3abd8de06b698 and fixed in 6.5.4 with commit 625b70d31dd4df4b96b3ddcbe251debb33bd67f5 Issue introduced in 5.2 with commit 90b509b39ac9b09be88eb641c7a3abd8de06b698 and fixed in 6.6 with commit 51fe0a470543f345e3c62b6798929de3ddcedc1d 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-2023-53495 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_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/ba6673824efa3dc198b04a54e69dce480066d7d9 https://git.kernel.org/stable/c/61054a8ddb176b155a8f2bacdfefb3727187f5d9 https://git.kernel.org/stable/c/5bb09dddc724c5f7c4dc6dd3bfebd685eecd93e8 https://git.kernel.org/stable/c/349638f7e5d3c7d328565587bb7b0454bbee02e2 https://git.kernel.org/stable/c/625b70d31dd4df4b96b3ddcbe251debb33bd67f5 https://git.kernel.org/stable/c/51fe0a470543f345e3c62b6798929de3ddcedc1d