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 9BDDF18C32C for ; Fri, 27 Sep 2024 12:40:55 +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=1727440855; cv=none; b=fDkhPxH2cJ0sz/wwFwpHF8TV5iM32ZG5rD2IgdxhpDGSKGRcXyoBJ1w2R10P9n/H+COW4nBCr4WXmJ1XBi1zLW/9+/Fz2unvMIaby/7gSMjgHTyn8ovzz8b4L+PYGfqsjLdNHvngnChVij/DMqcqt4j4LgX14bTORcGw0MUbAvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440855; c=relaxed/simple; bh=GS4f/+7SDjD6DyIc4I+NWwDNj/VcULRD5Pbjep6unyE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IbSOGVcaoghyaQKPFfaLyTYbeGoAFN18YhafN9uYTsIoX9wEdP6DvrLf1REHyuoEpqqazRjjHeeKWE106vV7eJ+SWldIHggx8W7Cd7/tYnVFR/jCe9wgx7KzzIjs8cxLakAsQDc2oZnTOiBPP6TfgAYJK4Q74b9KwfD/t4lXf9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=svKGjrDd; 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="svKGjrDd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29935C4CEC4; Fri, 27 Sep 2024 12:40:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440855; bh=GS4f/+7SDjD6DyIc4I+NWwDNj/VcULRD5Pbjep6unyE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=svKGjrDd3g+DmISo9Ax/Q11NLJTvblxg5RFnkIxyDv1jvFkb60FlgBu19abyW/+jd 5v2zCZl8MX2C/AtR+lbZcGs7jDciN99vzc+po4/C32LaTCHyL3fuiQNG/nByY0JOFp uqfNF8clKpMp/05GI1h/mY8jE4iWTug7I0hJOEvM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46834: ethtool: fail closed if we can't get max channel used in indirection tables Date: Fri, 27 Sep 2024 14:40:02 +0200 Message-ID: <2024092752-CVE-2024-46834-dc7b@gregkh> X-Mailer: git-send-email 2.46.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=2093; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GS4f/+7SDjD6DyIc4I+NWwDNj/VcULRD5Pbjep6unyE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnfls/0U7y6rmf3jeTlL6fUrJHn7OtK2uE2/4DGgic1z VmhNq/8O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi1TYMC45tvpsaL3jom1aM UZnXt0LOSV/V/jAsmLu4v5ondPLXzN7LsrNW7pSYvqP4PgA= 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: ethtool: fail closed if we can't get max channel used in indirection tables Commit 0d1b7d6c9274 ("bnxt: fix crashes when reducing ring count with active RSS contexts") proves that allowing indirection table to contain channels with out of bounds IDs may lead to crashes. Currently the max channel check in the core gets skipped if driver can't fetch the indirection table or when we can't allocate memory. Both of those conditions should be extremely rare but if they do happen we should try to be safe and fail the channel change. The Linux kernel CVE team has assigned CVE-2024-46834 to this issue. Affected and fixed versions =========================== Fixed in 6.10.10 with commit 101737d8b88d Fixed in 6.11 with commit 2899d58462ba 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-2024-46834 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: net/ethtool/channels.c net/ethtool/common.c net/ethtool/common.h net/ethtool/ioctl.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/101737d8b88dbd4be6010bac398fe810f1950036 https://git.kernel.org/stable/c/2899d58462ba868287d6ff3acad3675e7adf934f