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 B426C1DF26A for ; Mon, 21 Oct 2024 20:10:46 +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=1729541446; cv=none; b=mS1eVLiuf/9BHJKI2Lf/pLqZk3+ZcKlRVEnlkIIwgD19aDhL/DlDswwmQ0g7nJ8AWegVMGi5zc+Pwbl2M2uB4m1+vYmJjILDjgZ8dfh8lW4CkkE0xTJu7vxneoAKEDohmXUCHBPJSPFsllBMS/ndNXc1Nmy+1wTOsr3lgUDvJsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541446; c=relaxed/simple; bh=GKunBt8BFX+tQa84pacWRdnE1Qt65mTYfOKaVqkO8w0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tUIKcv/wk5xNZ4UeClnPLeDCFutoRlkhOSNfbcMzn8kr+fstl9XjjHaXI2OhlHeembBR/nNMo3P7+5FmNa90uj0sg6YzPVVS9vCEyTAVwtlNrsU6uwobUVXlKU+Ai5dQWHLnK8fqkr9JljFemRyeoHEveUwNZ6lhOdohTk1qgB8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l3niJBaM; 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="l3niJBaM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A88BC4CEC3; Mon, 21 Oct 2024 20:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541446; bh=GKunBt8BFX+tQa84pacWRdnE1Qt65mTYfOKaVqkO8w0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=l3niJBaMnmrTbfnbDBhRjeHYOaPwa0hDoZshlKOlIXQqt27yE6AHAKqkw+vjPDDHn E9rnt9qZ09vaKxE26BlBLK2TNShNv/imGm1vG0bcGHyLI6rnzXQsdnawlFvMkzhjvm FcTmt2YJh6fCo80ooC9GWtLzwgOD2gugtUJti3gQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48966: net: mvneta: Prevent out of bounds read in mvneta_config_rss() Date: Mon, 21 Oct 2024 22:05:58 +0200 Message-ID: <2024102143-CVE-2022-48966-d8f6@gregkh> X-Mailer: git-send-email 2.47.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=2931; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GKunBt8BFX+tQa84pacWRdnE1Qt65mTYfOKaVqkO8w0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliWyTmcPGpbd9RPWMzo9pMa8vClTOKq9QlE3+1LBMpz omfsGhrRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE7iXDXJEnKemONdXzU7Rv phQzbIvwe9T0gmHBjPA1x9o+XH6zxXTaqbfzHPIfNGf3AgA= 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: mvneta: Prevent out of bounds read in mvneta_config_rss() The pp->indir[0] value comes from the user. It is passed to: if (cpu_online(pp->rxq_def)) inside the mvneta_percpu_elect() function. It needs bounds checkeding to ensure that it is not beyond the end of the cpu bitmap. The Linux kernel CVE team has assigned CVE-2022-48966 to this issue. Affected and fixed versions =========================== Issue introduced in 4.5 with commit cad5d847a093 and fixed in 4.9.336 with commit 3ceffb8f410b Issue introduced in 4.5 with commit cad5d847a093 and fixed in 4.14.302 with commit 47a1a2f6cd5e Issue introduced in 4.5 with commit cad5d847a093 and fixed in 4.19.269 with commit 5a142486a0db Issue introduced in 4.5 with commit cad5d847a093 and fixed in 5.4.227 with commit eec1fc21edc2 Issue introduced in 4.5 with commit cad5d847a093 and fixed in 5.10.159 with commit 146ebee8fcdb Issue introduced in 4.5 with commit cad5d847a093 and fixed in 5.15.83 with commit a6b30598fec8 Issue introduced in 4.5 with commit cad5d847a093 and fixed in 6.0.13 with commit 6ca0a506dddc Issue introduced in 4.5 with commit cad5d847a093 and fixed in 6.1 with commit e8b4fc13900b 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-48966 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/mvneta.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/3ceffb8f410b93553fb16fe7e84aa0d35b3ba79b https://git.kernel.org/stable/c/47a1a2f6cd5ec3a4f8a2d9bfa1e0605347cdb92c https://git.kernel.org/stable/c/5a142486a0db6b0b85031f22d69acd0cdcf8f72b https://git.kernel.org/stable/c/eec1fc21edc2bb99c9e66cf66f0b5d4d643fbb50 https://git.kernel.org/stable/c/146ebee8fcdb349d7ec0e49915e6cdafb92544ae https://git.kernel.org/stable/c/a6b30598fec84f8809f5417cde73071ca43e8471 https://git.kernel.org/stable/c/6ca0a506dddc3e1d636935eef339576b263bf3d8 https://git.kernel.org/stable/c/e8b4fc13900b8e8be48debffd0dfd391772501f7