Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9EA662EEE92 for ; Sun, 18 Oct 2026 15:31:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337519; cv=none; b=BNyCcVIHK/coclZT9DQqux6DYY7dmJ9JDs5JMat8J1fbmBpOYfdrX2TjADPF8x44m68wId3mKdslMIQZpkmSzNGDK2LUnF7+YrTinWoAr5SQol8MQpNaVjiHIgzpV5IGGR3ZmV5xfEaNv/XO+Ij4PIC14XVwLQoc7t8msQ5hfQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337519; c=relaxed/simple; bh=82/mI5+EOGLdZBGzfPO24xmsXxH8Bf+8bwHtrX7di7s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZponiGahO5TO8t6t3rDoGzeeC458pWmAVr/qkD9E/uq08UwsbuAnUDOWGecYrfctV9Qls6+nWnAHlS2S/klnyL8KlB5FUw/5KlnIRTZY+PWIs48iAeQfsItTAbJ43gRXFavnz+s+ua5PHaE5i3DzSySWeaAIzPcmE2Q1EoDDu+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rbZtBT3m; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rbZtBT3m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B13591F000C4; Sun, 18 Oct 2026 15:31:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337517; bh=YiGiQsTK7EsVQjN+tQ9PUsx4sGMnwrE/GYlESxCqQFM=; h=From:To:Cc:Subject:Date:Reply-To; b=rbZtBT3mvi7LLL1zzPTPOxRxQ4zm814lB9IhoGVC9awfX7tWBWwNm8M3H2Kq270Da jap21/THwyFTI86J61u/ZzOEHc3VpGJIDJ+PyElrc+h60DcQMJUc9BnqSJyN9wr6rq Ho6kUPAOWfTCnJgxglRYtlCUGHwog9x7V31r9fjY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98592: net: spacemit: clear TX descriptor on fragment mapping failure Date: Sun, 18 Oct 2026 17:17:36 +0200 Message-ID: <2026101836-CVE-2026-98592-d6c3@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3222; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Cfp+wlB0pcDhnPn7Ty3xdQIcaEPErN8HDSvCWakUCEA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHs24W5eVfnd9y6k5KYcVYza5rWddIawunrPZOndZj H5unMLbjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI4iiGBatuZl0/m3xPc322 2NrKfVIxX47s/MkwV/Ik61XJ0h9Be1ni9/UVm8/dmnRdBAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: spacemit: clear TX descriptor on fragment mapping failure emac_tx_mem_map() writes TX_DESC_0_OWN into the ring descriptor for every slot beyond old_head as soon as that slot's memset()'d local copy is committed with "*tx_desc_addr = tx_desc", i.e. before the buffers for that slot have necessarily all been mapped successfully. If emac_tx_map_frag() then fails on a later fragment, the err_free_skb path calls emac_free_tx_buf() to unmap and drop the skb, but leaves the already-written descriptor memory untouched, and tx_ring->head is never advanced past old_head (the "tx_ring->head = head" store is skipped by the goto). So a slot between old_head and the rolled-back head can be left with TX_DESC_0_OWN set and buffer_addr_{1,2} pointing at DMA mappings that emac_free_tx_buf() just tore down, while software considers that slot free again. The next successful emac_tx_mem_map() call only rebuilds old_head itself; if the DMA engine auto-advances into the following descriptor once it finishes old_head's packet, it will fetch that stale, already-unmapped address. emac_tx_clean_desc() already treats emac_free_tx_buf() and clearing the descriptor as a pair when reclaiming completed descriptors; do the same in the mapping failure path. The Linux kernel CVE team has assigned CVE-2026-98592 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit bfec6d7f2001c7470c3cd261ae65a3ba8737f226 and fixed in 6.18.55 with commit ca9986cc824f2feb79b4a83e5f6f4c24c2140448 Issue introduced in 6.18 with commit bfec6d7f2001c7470c3cd261ae65a3ba8737f226 and fixed in 7.2.9 with commit 3001a103a367c6051c43aff363b6979c10e65347 Issue introduced in 6.18 with commit bfec6d7f2001c7470c3cd261ae65a3ba8737f226 and fixed in 7.3-rc5 with commit 2d14720beb58870b15a52b236c3ab0be0e06e915 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-2026-98592 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/spacemit/k1_emac.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/ca9986cc824f2feb79b4a83e5f6f4c24c2140448 https://git.kernel.org/stable/c/3001a103a367c6051c43aff363b6979c10e65347 https://git.kernel.org/stable/c/2d14720beb58870b15a52b236c3ab0be0e06e915