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 1AF2625634 for ; Tue, 19 Nov 2024 01:34:38 +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=1731980080; cv=none; b=TFkkJOwUrPqCXMoB9RAJRjPEZ1Fj/f9NoY/VABNNQW0DsioH78yiHGdFPFkrvGyZktAXKdBczZUH2TVf19k7xqavCCjZQNFl+YZG4UYOASUXv3UB7a371iF3Y2PF6Ned1fJA4zuADaCYb+wVHHOuT+1sgdMmPe4Q8guAFxk2MI8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980080; c=relaxed/simple; bh=adyVVsj3IVu1v+P3rjSOKyeUenKrOJQl5SUeYlQVEgY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gMeaImgrJBSUnTtM+qySOMbfCzlOXumhUvmvR4yeHgB5VBj9aSYu2BiVK02Cdi9fJzJGlJn2uaLSSYoO2+oxXHE1uEUShPct5oKOAnrmXbyhUGKrPpHepsGhRhxnSk8DF4V+RBNR/wTiwa7dgx7KL75IJRvOz8Z+WG4JnZijjA8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aUGCshAf; 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="aUGCshAf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73FA7C4CECF; Tue, 19 Nov 2024 01:34:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731980078; bh=adyVVsj3IVu1v+P3rjSOKyeUenKrOJQl5SUeYlQVEgY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aUGCshAfrFyDOdwEc/prOUhN4EWiJju8rnB0ICxLD5GXnMdMHzCc7vZEaPQTJq3R+ 10yRL8Pk5j9HGYWWUHXqc8p+Lze3mxOnS0idm9aKmS2QrSi3JYfPe4IsmFWIxB7c/M 4uiu6UhfgL6PLQxCHNiuVEjVsiCaIwAYBPOQ4DjY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50297: net: xilinx: axienet: Enqueue Tx packets in dql before dmaengine starts Date: Tue, 19 Nov 2024 02:32:52 +0100 Message-ID: <2024111902-CVE-2024-50297-7693@gregkh> X-Mailer: git-send-email 2.47.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=2388; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=adyVVsj3IVu1v+P3rjSOKyeUenKrOJQl5SUeYlQVEgY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnWr85F3NReJmU+P7h2hWTxy/NLlcNld02t+h5Zfr2Yd ffEOZE7OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiT7cyLGis2XNf/uTlq39i rk1dGX3klerh+8wMCya/f2l1/7ZGlqHjLY2abb9l//xYthgA 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: net: xilinx: axienet: Enqueue Tx packets in dql before dmaengine starts Enqueue packets in dql after dma engine starts causes race condition. Tx transfer starts once dma engine is started and may execute dql dequeue in completion before it gets queued. It results in following kernel crash while running iperf stress test: kernel BUG at lib/dynamic_queue_limits.c:99! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP pc : dql_completed+0x238/0x248 lr : dql_completed+0x3c/0x248 Call trace: dql_completed+0x238/0x248 axienet_dma_tx_cb+0xa0/0x170 xilinx_dma_do_tasklet+0xdc/0x290 tasklet_action_common+0xf8/0x11c tasklet_action+0x30/0x3c handle_softirqs+0xf8/0x230 Start dmaengine after enqueue in dql fixes the crash. The Linux kernel CVE team has assigned CVE-2024-50297 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 6a91b846af85 and fixed in 6.11.8 with commit def3dee25cbd Issue introduced in 6.8 with commit 6a91b846af85 and fixed in 6.12 with commit 5ccdcdf186ae 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-50297 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/xilinx/xilinx_axienet_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/def3dee25cbd1c9b2ed443c3f6180e952563de77 https://git.kernel.org/stable/c/5ccdcdf186aec6b9111845fd37e1757e9b413e2f