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 B42523E022D for ; Fri, 24 Apr 2026 14:48:20 +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=1777042100; cv=none; b=loq6rl9Z9kCzW/Mbj2P583lMPkkZi/LW4kWMQJTvvzd4DZfgPsCGWa4+HCGUvfP5XwIaGOovPzh+aNCa2z/BFoaS4lFNG2H97v+jAQmIHfLGR5+LJfyEx7Ns/Kk2RWS9XVdN+PqKSoTwdqevx/xo8LFMN0odwT0Qw8NKgcw/wyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777042100; c=relaxed/simple; bh=IsP+rK7mDxOwaJnB+W6/o8Dp0l9+FL7GLLtk+Ehtgb0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HyjkyVHYuFTNF3/qZ6U5MWdLEtLlHdWTo8q1R2R0bpvOfNFqvMc9WMxXjyjfBkJrbkLgKWhXybixl1OUtFtHEn9q8NwMjNQGma9EO3kNJ+KDto89mQS3dysRVrTdDJG9fUL3tfB7tVrquZ9YLriBZ+F1u7JRnBILWN6m8v0dBas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KD5lqKgN; 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="KD5lqKgN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A676C2BCB2; Fri, 24 Apr 2026 14:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777042100; bh=IsP+rK7mDxOwaJnB+W6/o8Dp0l9+FL7GLLtk+Ehtgb0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=KD5lqKgNFr51ujltW/T8+k+O031XKd8V87MgdPfTYLhVGd0Wlb9RGObXIEsrHq30o rSeUYUo7iVwFEwk/djPpWqxoty7ICAtC7B7rBl86iCNwiwUjO2BO8lDSKkTPUzk6LU zBUH97dA99yAbUdyuRiZzoRl1kJCsaoMP0tcAPNI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31658: net: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit() Date: Fri, 24 Apr 2026 16:46:20 +0200 Message-ID: <2026042402-CVE-2026-31658-a6d5@gregkh> X-Mailer: git-send-email 2.53.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=3484; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+H/ZPeTLpXSdi10sVu1b5Nf8OP+1tlamecO4jPAK0lc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvm7RzLb7XHjfjsHqenHzkttQuKU5eh1Qt+V2rhL7sF HGY/eRvRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAFxkOcN850rmapcdLWfcBdlj 2vds/d84I4SPYTaLQfKWIxUcl7gLlz7Qn/TZ6/yXhTkA 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: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit() When dma_map_single() fails in tse_start_xmit(), the function returns NETDEV_TX_OK without freeing the skb. Since NETDEV_TX_OK tells the stack the packet was consumed, the skb is never freed, leaking memory on every DMA mapping failure. Add dev_kfree_skb_any() before returning to properly free the skb. The Linux kernel CVE team has assigned CVE-2026-31658 to this issue. Affected and fixed versions =========================== Issue introduced in 3.15 with commit bbd2190ce96d8fce031f0526c1f970b68adc9d1a and fixed in 5.10.253 with commit ae2cd46f57f422b51aedd406ff5d75cbff401d5d Issue introduced in 3.15 with commit bbd2190ce96d8fce031f0526c1f970b68adc9d1a and fixed in 5.15.203 with commit cb1d318702fdf643061350d164250198df4116f2 Issue introduced in 3.15 with commit bbd2190ce96d8fce031f0526c1f970b68adc9d1a and fixed in 6.1.169 with commit d5ec406f0543bd6cdfd563b08015fdec8c4d5712 Issue introduced in 3.15 with commit bbd2190ce96d8fce031f0526c1f970b68adc9d1a and fixed in 6.6.135 with commit 2eb9d67704ca8f1101f7435b85f113ede471f9f2 Issue introduced in 3.15 with commit bbd2190ce96d8fce031f0526c1f970b68adc9d1a and fixed in 6.12.82 with commit 9f3ec44aeb58501d11834048d5d0dbaeacb6d4e7 Issue introduced in 3.15 with commit bbd2190ce96d8fce031f0526c1f970b68adc9d1a and fixed in 6.18.23 with commit 60f462cd2716d86bd2174f9d5e035c9278f30480 Issue introduced in 3.15 with commit bbd2190ce96d8fce031f0526c1f970b68adc9d1a and fixed in 6.19.13 with commit 3aca300e88afe56afb000cdc4c65383014fb17f9 Issue introduced in 3.15 with commit bbd2190ce96d8fce031f0526c1f970b68adc9d1a and fixed in 7.0 with commit 6dede3967619b5944003227a5d09fdc21ed57d10 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-31658 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/altera/altera_tse_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/ae2cd46f57f422b51aedd406ff5d75cbff401d5d https://git.kernel.org/stable/c/cb1d318702fdf643061350d164250198df4116f2 https://git.kernel.org/stable/c/d5ec406f0543bd6cdfd563b08015fdec8c4d5712 https://git.kernel.org/stable/c/2eb9d67704ca8f1101f7435b85f113ede471f9f2 https://git.kernel.org/stable/c/9f3ec44aeb58501d11834048d5d0dbaeacb6d4e7 https://git.kernel.org/stable/c/60f462cd2716d86bd2174f9d5e035c9278f30480 https://git.kernel.org/stable/c/3aca300e88afe56afb000cdc4c65383014fb17f9 https://git.kernel.org/stable/c/6dede3967619b5944003227a5d09fdc21ed57d10