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 EF4783D3317 for ; Wed, 22 Apr 2026 13:56:53 +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=1776866214; cv=none; b=jjSyEkJpf4GlNn9LD6FSGMWLL1BqW+kyJNMfHCSvBa0QndipLDT1eob2oE/nw0B853Udg2lHy3PTQodqVhv/aOPYPMcgb+dp7gHKkDZOwBQJHDjQVnm/IoDK7/wn8jutLCVFmkOCoehrcZZ2ZeCCci5DoDaPkCtF93AL4p41yz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866214; c=relaxed/simple; bh=UmUZQYWpNzqwYiOafT1lkAhkqREQYiZkmTVZZ63yLrs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NDHnVwZ5ttlXzusqyx5h07lgWn1IqU7cBzt807L4u3wsCiuSfl6d8lJIpvUOmhcXhtdP6VP1HGqubx+9RTULEQ+m+yVeWhOXk70by6lyxd30VdvelPOh07r/QwfWuhw+mEPG9J3I0CN+mYRhappeoifzdbYiDSJQIKFBkdqFhAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FM/sVsr+; 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="FM/sVsr+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86A06C19425; Wed, 22 Apr 2026 13:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866213; bh=UmUZQYWpNzqwYiOafT1lkAhkqREQYiZkmTVZZ63yLrs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=FM/sVsr+ZrXfkxk+ztx6wDGIKj/g5wQhium8ay9pjTUjgrhRW8bJijgGb8nHBi30L 6isLMfhFoBzwKe1v/vO6Bewc9hPEAe1yFwEuL1TPWE1jJwrAethDII1h6p898xtI5b 42qH7Cgl8mEjNNqc3+sr8Dcb1A0gfvYrZD2YWIq4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31501: net: ti: icssg-prueth: fix use-after-free of CPPI descriptor in RX path Date: Wed, 22 Apr 2026 15:54:47 +0200 Message-ID: <2026042205-CVE-2026-31501-113b@gregkh> X-Mailer: git-send-email 2.54.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=2563; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DFy0MWFwwloGWZmK6nBwZw8OuOHsT/iIf7zvLEqqAZ0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLv2NUFeNLVRaGXEi7kqcprOMs/v3/b7r3rXzTtmz+ fm+VcvVO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiiZ8Z5nt9WSP3SrCyNckw bU+viO4ZtuLp7xkWtM/4fHG5S+ZmTtXiLSJ9Gl7OlWW6AA== 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: ti: icssg-prueth: fix use-after-free of CPPI descriptor in RX path cppi5_hdesc_get_psdata() returns a pointer into the CPPI descriptor. In both emac_rx_packet() and emac_rx_packet_zc(), the descriptor is freed via k3_cppi_desc_pool_free() before the psdata pointer is used by emac_rx_timestamp(), which dereferences psdata[0] and psdata[1]. This constitutes a use-after-free on every received packet that goes through the timestamp path. Defer the descriptor free until after all accesses through the psdata pointer are complete. For emac_rx_packet(), move the free into the requeue label so both early-exit and success paths free the descriptor after all accesses are done. For emac_rx_packet_zc(), move the free to the end of the loop body after emac_dispatch_skb_zc() (which calls emac_rx_timestamp()) has returned. The Linux kernel CVE team has assigned CVE-2026-31501 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 46eeb90f03e03d5e8f7f9f1f0eb0792104fc5f86 and fixed in 6.19.11 with commit d5827316debcb677679bb014885d7be92c410e11 Issue introduced in 6.15 with commit 46eeb90f03e03d5e8f7f9f1f0eb0792104fc5f86 and fixed in 7.0 with commit eb8c426c9803beb171f89d15fea17505eb517714 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-31501 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/ti/icssg/icssg_common.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/d5827316debcb677679bb014885d7be92c410e11 https://git.kernel.org/stable/c/eb8c426c9803beb171f89d15fea17505eb517714