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 8C866537F3 for ; Tue, 27 Feb 2024 06:54:39 +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=1709016879; cv=none; b=cphZ95MeG6o2Gi/7ILQY0HPOkhbm/gzT6eJXYIcZ26PjnOp7NiXB54QKeCa8tLmcqZxU/NslPXLA4PtfT6d9UwVmlKfAoW0ouTssbGTeDOQVLla/ZG71HHExJPmhCEJmu2eBZsi1Lflie+QtS2vPwELWuEUxGl/6MtIGf1VZBMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709016879; c=relaxed/simple; bh=eERQzVo6TMLe2jZEAfw3o0dZJ4TzUcgfKazl+NcBPmY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mUGerSQXwSn/kBvr3/T3bzdQ78iZ35P2qGBW/kU9LXGlG68ELOGTE8kn/LfhBbx9JWWhBasLJkeinKFvsJZ4u5bhx771BwPI3DfVrH+GMtZDdu40SZnmBg+EvBkw4Rhlr/SndfhYNkVWMBGRWzHriggkRs9pyDRrS5QS6EktoZg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1SjylAhy; 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="1SjylAhy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5AE6C433C7; Tue, 27 Feb 2024 06:54:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709016879; bh=eERQzVo6TMLe2jZEAfw3o0dZJ4TzUcgfKazl+NcBPmY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1SjylAhyvsKkoNmTMSD17NYWC5e4vP1J/FA9MZ8G0miU7Hqn2NgUhIDso4Ac7m1B7 j4jzSMA/3Rl4rRbzKyhjUltHcjq4g/MneW077I576h8zrxfyFLJVbOPhqWnNnEuRMV 5ge7cxwA5+JK0I/E65p+G+ciEwEp2dzeBcM41mNs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46916: ixgbe: Fix NULL pointer dereference in ethtool loopback test Date: Tue, 27 Feb 2024 07:54:10 +0100 Message-ID: <2024022709-CVE-2021-46916-9f19@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=2103; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eERQzVo6TMLe2jZEAfw3o0dZJ4TzUcgfKazl+NcBPmY=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl324VM3m6U4wg0c66U/OrM03TL4wfLyyMcYh/8HBvva moFJQR0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQs9zIsmFz/LHWfTu4J8Ucv z3lWm7wve+RozTA/+pi346ac2Di2hsnNn7YFXRNJatkGAA== 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: ixgbe: Fix NULL pointer dereference in ethtool loopback test The ixgbe driver currently generates a NULL pointer dereference when performing the ethtool loopback test. This is due to the fact that there isn't a q_vector associated with the test ring when it is setup as interrupts are not normally added to the test rings. To address this I have added code that will check for a q_vector before returning a napi_id value. If a q_vector is not present it will return a value of 0. The Linux kernel CVE team has assigned CVE-2021-46916 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit b02e5a0ebb17 and fixed in 5.11.16 with commit 758d19098df4 Issue introduced in 5.11 with commit b02e5a0ebb17 and fixed in 5.12 with commit 31166efb1cee Please see https://www.kernel.org or 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-46916 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/intel/ixgbe/ixgbe_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/758d19098df4b0bbca9f40d6ae6c82c9c18b9bba https://git.kernel.org/stable/c/31166efb1cee348eb6314e9c0095d84cbeb66b9d