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 0FE0F13CFBF for ; Mon, 25 Mar 2024 09:08:19 +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=1711357700; cv=none; b=cZ/2P/xv6/7DTMZBmuB36lfi/hZuJ+hGE3smfbXMmXndj5DJih1oxIYWOIPZiau9fDI9CqYSDVLSd3RU8oIfSfKZFdR29gIsv4fPd7DKdqUj1oVQUSM8JqZsou7PhuhyyTBQ93KfoHexN0h2Rn7rnqC7r3PVnZAQiUPBc/zekqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711357700; c=relaxed/simple; bh=SVSEBBHxj9XBZ05LM1gVfIFOGoPP5hknYxEtbvByYr8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sCOn1+bBHrs6JFI2ldZxotApAYwZyoDEbtYwfexzHmoYERSQ+5Lavkq6iCVAAEWnNz5D/YwofwZG4oiKgu6ASBT9t+fa9ihDhuIMSSlPgc+Vwf+QjVDjBRBYhCrdeVU7Twg2VSuRa0FnlLfiLO/+YBOdpbW6tNGMm3f9BMDXRQ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cuAxO1eY; 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="cuAxO1eY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28250C433C7; Mon, 25 Mar 2024 09:08:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711357699; bh=SVSEBBHxj9XBZ05LM1gVfIFOGoPP5hknYxEtbvByYr8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cuAxO1eYA5mxGrBaDD0cjwScNvZnS1+oxG8dr8dn8YnhYG4nb3nbKarujsIoaRT9t LkEaoot52ZG1LfidXm44c1HBl+smd+4bNT4h8TlF+c4gWlzDa0UM1Lb98HRgdbX7cv Ky8MOPoGPd1Tve3gAY3lkD54hUVj/O1TwjK2HGEw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47148: octeontx2-pf: fix a buffer overflow in otx2_set_rxfh_context() Date: Mon, 25 Mar 2024 10:08:05 +0100 Message-ID: <2024032559-CVE-2021-47148-502f@gregkh> X-Mailer: git-send-email 2.44.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=1836; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SVSEBBHxj9XBZ05LM1gVfIFOGoPP5hknYxEtbvByYr8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMdu+d51x46ryqnJ+pXjonapP0C38xubXiK+NrDlw8V yCj1rq7I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay/D/D/JSri/dlmbUW3v04 f6Lijtqn2X4L4xnm1z1NFxS4/U6Awe/Gn6vqtWGXUh+uAQA= 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: octeontx2-pf: fix a buffer overflow in otx2_set_rxfh_context() This function is called from ethtool_set_rxfh() and "*rss_context" comes from the user. Add some bounds checking to prevent memory corruption. The Linux kernel CVE team has assigned CVE-2021-47148 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 81a4362016e7 and fixed in 5.12.9 with commit 389146bc6d2b Issue introduced in 5.12 with commit 81a4362016e7 and fixed in 5.13 with commit e5cc361e2164 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-2021-47148 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/octeontx2/nic/otx2_ethtool.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/389146bc6d2bbb20714d06624b74856320ce40f7 https://git.kernel.org/stable/c/e5cc361e21648b75f935f9571d4003aaee480214