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 71C2916B388 for ; Tue, 25 Jun 2024 14:23:26 +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=1719325406; cv=none; b=MR3Gvv6rY7W7Z0u3BwMj/m/A5F/ivqkotCZ6MNbxxx4V5+NVlo0FvOFY2WZTPY2k03awBX72sk5y4RRPHvZPEFvu1vhOQ51C7YS36heZR563lq3UWMu4/rcmg8XbNFOj17owv3B85QrTofSPXYAz2f3pHeL6lbbhJa6klt193WA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719325406; c=relaxed/simple; bh=+WO6sSUrFR0ZHAjepUmlLWJWQ4nimTeMIPMVxUr6sTo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TuqLYOgSWe7gyq8VdcEbhhqJ5bA89FJbydLN31Wr8BdeQQjM07vco3Xb3zQhfKxwDPs5fCxVJciYg5Y0ul4EO4FNuQyOohyEVZ8i1CqpB0diNi3XeMCqekq4Z8NMfXt1c0uxhYqK19xZHT6SQqYZ+N41RyvMZkQEl1RGbVr82nM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KHo+089x; 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="KHo+089x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB91AC32781; Tue, 25 Jun 2024 14:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1719325406; bh=+WO6sSUrFR0ZHAjepUmlLWJWQ4nimTeMIPMVxUr6sTo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KHo+089xtE+DYpL8Hz8FCciBQVRd2ZModfWZze1YuI3bfrZSOae8Tt9ZSb0O46RNS QhaMSZiyj+c21hO/41hf9oeQpzqfZWp12jkY4cvLwN/PVBfAJA0x4Plurzj1I4KHPY 7eqfl6HL4lQiZOgDpZuWrhsaKUSXyq+5DVw7Dy1s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-39293: Revert "xsk: Support redirect to any socket bound to the same umem" Date: Tue, 25 Jun 2024 16:22:54 +0200 Message-ID: <2024062548-CVE-2024-39293-d42a@gregkh> X-Mailer: git-send-email 2.45.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=2125; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+WO6sSUrFR0ZHAjepUmlLWJWQ4nimTeMIPMVxUr6sTo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlVl3beD3wwX5oxlI95ab/a1Pfnkw22z0i85iFmmdCb4 Blwwu5WRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkRwLDgq6M/WU9SZPslHWF cgt2FoTcemEmyTDPyupWxyqXUw9vevX5zvMOL5j3sMULAA== 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: Revert "xsk: Support redirect to any socket bound to the same umem" This reverts commit 2863d665ea41282379f108e4da6c8a2366ba66db. This patch introduced a potential kernel crash when multiple napi instances redirect to the same AF_XDP socket. By removing the queue_index check, it is possible for multiple napi instances to access the Rx ring at the same time, which will result in a corrupted ring state which can lead to a crash when flushing the rings in __xsk_flush(). This can happen when the linked list of sockets to flush gets corrupted by concurrent accesses. A quick and small fix is not possible, so let us revert this for now. The Linux kernel CVE team has assigned CVE-2024-39293 to this issue. Affected and fixed versions =========================== Fixed in 6.9.5 with commit 19cb40b10645 Fixed in 6.10-rc3 with commit 7fcf26b315bb 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-39293 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/xdp/xsk.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/19cb40b1064566ea09538289bfcf5bc7ecb9b6f5 https://git.kernel.org/stable/c/7fcf26b315bbb728036da0862de6b335da83dff2