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 699A1271458 for ; Sat, 4 Oct 2025 15:19:49 +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=1759591189; cv=none; b=ehBijeYktvI+XDLSI+KGRy+HJRrtXR90o3Lo8pUllFN1TCKVTgTFVYQhiVxPkjVLrTEGmxKBSACVtVlAadmlEEzL/S/k6SQyNdp+qWiRRMNTZ2VPSLpla8YqkO2dfIXnbVeKww8T5jNaaj4SOf7xk3Rh8i6ZvQRskeD/w/xp5lU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591189; c=relaxed/simple; bh=gKo0hz5E9Rds9b2uu3pBNiHVRfLMhVvnVxI0Ttvdvss=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CcGKnAf9zNsarJiSZA8TA7lblTFHxNbw9iGLOBomnNdysEosxqCvC3g3I44m8sgzpP/BvX2Xjox593RPAsdJ91NQooJFhUjWKGJVpJ1CwmjHv5rO0nyoyKjGUjzW/pnwS0uNGa3+h9zetA8I41VPDCIkakHy7xVe27u1s3lZzxQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2vepIsHc; 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="2vepIsHc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF744C4CEF1; Sat, 4 Oct 2025 15:19:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591189; bh=gKo0hz5E9Rds9b2uu3pBNiHVRfLMhVvnVxI0Ttvdvss=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2vepIsHc60ef2BmJYkGL83W1RxVN6413uMCVGmdUBBUz6E+q7TEE+hzDiNunI9rW6 hAP10Qb86Pieto0HUS3lYwkWToVC2i+VXPRtLOmbyIcTD2x8xCe5kpH5j/p+//iJ8g MZN8xPI00PDPVzInzzZHAdzST9PalF4JgPj8ZTdU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53559: ip_vti: fix potential slab-use-after-free in decode_session6 Date: Sat, 4 Oct 2025 17:17:13 +0200 Message-ID: <2025100449-CVE-2023-53559-c2f0@gregkh> X-Mailer: git-send-email 2.51.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=3612; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Nd3FvYFdMTx8H3KiaPguGTGJL9waOMRLEDFtdl9zt80=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrRKnfDlRc63gzpb3X9rOWrl6ud58tGNxcuGSkycvC f71YhKM6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJRC5iWLBM4+C9o2nz+Txi X63LFDZxVX72RYRhwUa1+tuJbqcCbv06EH7Wte69fJzGNgA= 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: ip_vti: fix potential slab-use-after-free in decode_session6 When ip_vti device is set to the qdisc of the sfb type, the cb field of the sent skb may be modified during enqueuing. Then, slab-use-after-free may occur when ip_vti device sends IPv6 packets. As commit f855691975bb ("xfrm6: Fix the nexthdr offset in _decode_session6.") showed, xfrm_decode_session was originally intended only for the receive path. IP6CB(skb)->nhoff is not set during transmission. Therefore, set the cb field in the skb to 0 before sending packets. The Linux kernel CVE team has assigned CVE-2023-53559 to this issue. Affected and fixed versions =========================== Issue introduced in 3.19 with commit f855691975bb06373a98711e4cfe2c224244b536 and fixed in 4.14.324 with commit 82fb41c5de243e7dfa90f32ca58e35adaff56c1d Issue introduced in 3.19 with commit f855691975bb06373a98711e4cfe2c224244b536 and fixed in 4.19.293 with commit 7dfe23659f3677c08a60a0056cda2d91a79c15ca Issue introduced in 3.19 with commit f855691975bb06373a98711e4cfe2c224244b536 and fixed in 5.4.255 with commit d34c30442d5e53a33cde79ca163320dbe2432cbd Issue introduced in 3.19 with commit f855691975bb06373a98711e4cfe2c224244b536 and fixed in 5.10.192 with commit 0b4d69539fdea138af2befe08893850c89248068 Issue introduced in 3.19 with commit f855691975bb06373a98711e4cfe2c224244b536 and fixed in 5.15.128 with commit e1e04cc2ef2c0c0866c19f5627149a76c2baae32 Issue introduced in 3.19 with commit f855691975bb06373a98711e4cfe2c224244b536 and fixed in 6.1.47 with commit 2b05bf5dc437f7891dd409a3eaf5058459391c7a Issue introduced in 3.19 with commit f855691975bb06373a98711e4cfe2c224244b536 and fixed in 6.4.12 with commit 78e397a43e1c47321a4679cc49a6c4530bf820b9 Issue introduced in 3.19 with commit f855691975bb06373a98711e4cfe2c224244b536 and fixed in 6.5 with commit 6018a266279b1a75143c7c0804dd08a5fc4c3e0b 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-2023-53559 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: net/ipv4/ip_vti.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/82fb41c5de243e7dfa90f32ca58e35adaff56c1d https://git.kernel.org/stable/c/7dfe23659f3677c08a60a0056cda2d91a79c15ca https://git.kernel.org/stable/c/d34c30442d5e53a33cde79ca163320dbe2432cbd https://git.kernel.org/stable/c/0b4d69539fdea138af2befe08893850c89248068 https://git.kernel.org/stable/c/e1e04cc2ef2c0c0866c19f5627149a76c2baae32 https://git.kernel.org/stable/c/2b05bf5dc437f7891dd409a3eaf5058459391c7a https://git.kernel.org/stable/c/78e397a43e1c47321a4679cc49a6c4530bf820b9 https://git.kernel.org/stable/c/6018a266279b1a75143c7c0804dd08a5fc4c3e0b