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 721F71BEF70 for ; Tue, 21 Jan 2025 12:02:05 +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=1737460925; cv=none; b=Pk3IYoVRE8oOuiehiXYfcvh9sB5lwrdoWXvdfMRxOSm566+n4vlorMOPo10fIsP6eO6IpQ3KdkyYEeK6gXt0KOP22wVxqTYLxhuPu1lk3H/ZcpEJ5ZhjnUF/la5LsnOo6K88ZK/sPgZKT3tLzWFl8dkEY2oizHXYvqDevf9Bsxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737460925; c=relaxed/simple; bh=90KyGUsWr8H7WjIHuDs7rfjV32z6CcLpJryUIRrlXSo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FwwnQAALy5p3teaf2i3KwiiHBy9R0hpiqB9GUS5cBXePijzdPnOwxqfJvOPBxE7fB9TzP3lc6iCGi+ApzMStzEuXhjLchbI3pV2duzzEDcTgzo/6UhrgxC/yUEiHiY77Uya2duAzyQMeGvQmPWY9U3HLc0pF7a+7aRw4HmSglpE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rfTO7D1W; 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="rfTO7D1W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9126EC4CEDF; Tue, 21 Jan 2025 12:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1737460924; bh=90KyGUsWr8H7WjIHuDs7rfjV32z6CcLpJryUIRrlXSo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rfTO7D1Wyx8LLMSLkY8OXQ9CpUeNWEVWpJoPMd39phyMGJRiFKFck/E+Iq2UQYXgn aivTPm2CcDYbxeVKw9wkrYiCLg9fxnKzMP2JXT4xY+gcXcMKBIsMBIwMDN5eWQEZw6 lata7dUu95JJu/kWnEEhIqHIUZqInDBf4lprEUyY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57933: gve: guard XSK operations on the existence of queues Date: Tue, 21 Jan 2025 13:01:47 +0100 Message-ID: <2025012148-CVE-2024-57933-aa3e@gregkh> X-Mailer: git-send-email 2.48.1 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=2558; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=90KyGUsWr8H7WjIHuDs7rfjV32z6CcLpJryUIRrlXSo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn9PWuk1z3KKvs8eWbAFIuZrj4Tks69mWRuaN7TvzonT OGk9awNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRwE6GWUxdMzikfVutvH5s /qavUc1eOjfMjWG+04Qkk2mrzH8knJ74442k8SOj4qS9AA== 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: gve: guard XSK operations on the existence of queues This patch predicates the enabling and disabling of XSK pools on the existence of queues. As it stands, if the interface is down, disabling or enabling XSK pools would result in a crash, as the RX queue pointer would be NULL. XSK pool registration will occur as part of the next interface up. Similarly, xsk_wakeup needs be guarded against queues disappearing while the function is executing, so a check against the GVE_PRIV_FLAGS_NAPI_ENABLED flag is added to synchronize with the disabling of the bit and the synchronize_net() in gve_turndown. The Linux kernel CVE team has assigned CVE-2024-57933 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit fd8e40321a12391e6f554cc637d0c4b6109682a9 and fixed in 6.6.70 with commit 771d66f2bd8c4dba1286a9163ab982cecd825718 Issue introduced in 6.4 with commit fd8e40321a12391e6f554cc637d0c4b6109682a9 and fixed in 6.12.9 with commit 8e8d7037c89437af12725f454e2eaf40e8166c0f Issue introduced in 6.4 with commit fd8e40321a12391e6f554cc637d0c4b6109682a9 and fixed in 6.13 with commit 40338d7987d810fcaa95c500b1068a52b08eec9b 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-57933 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/google/gve/gve_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/771d66f2bd8c4dba1286a9163ab982cecd825718 https://git.kernel.org/stable/c/8e8d7037c89437af12725f454e2eaf40e8166c0f https://git.kernel.org/stable/c/40338d7987d810fcaa95c500b1068a52b08eec9b