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 6262D480DEC for ; Sun, 18 Oct 2026 16:19:31 +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=1792340372; cv=none; b=qoaJOdrszuq4eOkGFNSRY0dAe8AakN6SPqT8BVb0rBtPgYH9iVR4m0tE8NPCDfdPYLju/hCev0STiFQGjcZLw1yONFQo/O/siceaBvY+xDXzKAj7XXZjYaSp9rWzKD6q4gJxkw1poPTluVpVwcT76oHFlOOyxO8YFsrYR6/xkWM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340372; c=relaxed/simple; bh=64RojQa1pNXzj0GQD48YbUPMAmlM16p362kZQTdgREI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=m43pX264mOmpUWwDfJDFFai0Z+z1rfmU7wUY2FM/LMfpJAmI3o3QAdktK/OXsoEQ8YziyTgmKWTJZgtsKS87q9/cD1kNkWlSTY/ibH3sMsYjpriMW1BIJs9Xv+6bEkvf+TseqY5qsIONr0BskyHcYkzovNQBitDu6CYcd1DURRI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XKrcldBr; 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="XKrcldBr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97CCE1F000C4; Sun, 18 Oct 2026 16:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340371; bh=t1KExVC450ExLHZo5XXQW8Iik/nIU7SDNAyevxSb4SM=; h=From:To:Cc:Subject:Date:Reply-To; b=XKrcldBr5D7BLuJ7XqlaJkKuEW2rrz9D75GCVSUL/tLJGg0zuxsyFkI3CWOTMVE2J zT0zWmRi4Run3mb7CTkuPRXI4tg7E9pUUWr1OvPv5wMkn1lRobphGBUVxxu1nzNvfc 6+Pektt6ZA3IJbX/hvRkCtqi/liNPwS3SkAGftOA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98803: net: stmmac: fix rx Scatter-Gather support Date: Sun, 18 Oct 2026 17:46:18 +0200 Message-ID: <2026101825-CVE-2026-98803-ce36@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=4372; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d/AIUP0yFekwzpVokbg920pTGvijmZg/kw5uTykmYK0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXkZasH1yEdmdZv/M/gSP6PmYZ/suBSx7a8l6Vs7Yx 07cNcK0I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayczHD/Oi+OQ4ZrI9Yr7wV /fU54FHbLInGrwzz7MKXMLz3PvPx9xl/41Vfnm1aGDMhAQA= 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: stmmac: fix rx Scatter-Gather support When a received frame is larger than dma_buf_sz, the DMA scatters it across multiple RX descriptors (rx Scatter-Gather). The secondary RX buffer (sec_page) was only allocated and programmed when split-header (SPH) was active, so for regular frames buffer2 was neither allocated nor backed by a valid mapping. As soon as an incoming frame overflowed buffer1, the DMA wrote the overflow into the unmapped secondary-buffer address, triggering an SMMU translation fault on IOMMU-based platforms: arm-smmu 15000000.iommu: Unhandled context fault: fsr=0x402, iova=0x00000000, fsynr=0x7f0011, cbfrsynra=0x1c90, cb=11 arm-smmu 15000000.iommu: FSR = 00000402 [Format=2 TF], SID=0x1c90 arm-smmu 15000000.iommu: FSYNR0 = 007f0011 [S1CBNDX=127 WNR PLVL=1] Enable scatter-gather for non-SPH frames on cores that can program an independent secondary RX buffer (GMAC4/XGMAC): allocate and mark buffer2 as valid in stmmac_init_rx_buffers() and stmmac_rx_refill(), and account for it in the buffer length computation. Legacy cores have no set_sec_addr op, so they keep buffer2 disabled. Since buffer2 is handed to the DMA at page offset 0, the page pool sync window is widened to cover both buffers in every mode: offset is set to 0 and max_len to dma_buf_sz + stmmac_rx_offset(). The FCS can straddle the buffer1/buffer2 boundary and a descriptor boundary, so it is now stripped from the tail of the assembled frame with pskb_trim() instead of from a single buffer, avoiding an unsigned underflow for frames that overflow a buffer by 1..3 bytes. For single-buffer frames the XDP program must not see the FCS, so it is removed from the XDP buffer before the program runs. Native XDP currently only supports single-buffer (linear) frames. An oversized frame accepted by the MAC (jumbo enabled) is received via buffer2; the XDP program only sees buffer1, so on a TX/REDIRECT verdict the frame is forwarded truncated. XDP multi-buffer support to handle this case is planned as a follow-up. AF_XDP zero-copy RX is not covered by this change: a ZC queue still programs buffer2 at DMA address 0 (and XGMAC has no buffer2-valid bit), so an oversized frame overflowing buffer1 can still trigger the same SMMU translation fault. Handling is planned as a follow-up. The Linux kernel CVE team has assigned CVE-2026-98803 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 88ebe2cf7f3fc9da95e0f06483fd58da3e67e675 and fixed in 6.18.56 with commit 358d5ac5a5d57ce21c3814c4e3e8f3fbcb7304b4 Issue introduced in 5.5 with commit 88ebe2cf7f3fc9da95e0f06483fd58da3e67e675 and fixed in 7.2.10 with commit a7cff44543f66f3a19151060cb549691d191d44c Issue introduced in 5.5 with commit 88ebe2cf7f3fc9da95e0f06483fd58da3e67e675 and fixed in 7.3-rc6 with commit 88095728511e0df9c89528944f5a1762ad298983 Issue introduced in 5.4.262 with commit c4b712d1a814a0535091d99e6cf04d69ac42ef7b 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-98803 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/stmicro/stmmac/stmmac_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/358d5ac5a5d57ce21c3814c4e3e8f3fbcb7304b4 https://git.kernel.org/stable/c/a7cff44543f66f3a19151060cb549691d191d44c https://git.kernel.org/stable/c/88095728511e0df9c89528944f5a1762ad298983