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 0F8233C060C for ; Wed, 22 Apr 2026 13:57:40 +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=1776866260; cv=none; b=J+bCG9hrgr0ds8Ji6e2RY9d6WHxEY4zGTtMHhWasram8ca9JVCQ6XgufhFwbimFaivdADeBduCxf8FZgXYOjevy8GZzxTplnV9ylsOJXpIGJD1BjoZCtthvC61aQvM0o4wOVgUfk+ufPYrHp5zbN3f25/YdQxVN8GpjoZV91vBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866260; c=relaxed/simple; bh=2mPIMFw3lOtKl8Y1jKzwM0MXml4gMD70b4mvIMXPgzM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gGH4VtSLAe0xKfGn1fg+X1OtkuEjgFJnEDtZNnrb5M8WT7XXL5B4l/P7LgsXApKQ2YwKJiknhfTj6Gn5Z3aO4vuWKF4FrLf4i1GJi92OZ1O30cvg9CeQePwesfMXFYxJQbzcFYdUcExyKLj3KJol819RJ8BnuuCasI+7meDeAJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q8k2Gsp8; 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="Q8k2Gsp8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A0B5C19425; Wed, 22 Apr 2026 13:57:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866259; bh=2mPIMFw3lOtKl8Y1jKzwM0MXml4gMD70b4mvIMXPgzM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Q8k2Gsp8+s9RWERubF34oeO7tYX2Te6XuJHjjbauoKVxBm7NU8S8fIMZD2yukqFs6 AF6sJYr3Siy2ZmCkmryx5Vey4DVb2VwLZUQx3eQEA/xe/qgG/MfENaLnMcO1H38KAr JScXK72S4c1x3U6NJWDqmZ8JrimzSingll7MDRYo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31517: xfrm: iptfs: fix skb_put() panic on non-linear skb during reassembly Date: Wed, 22 Apr 2026 15:55:03 +0200 Message-ID: <2026042210-CVE-2026-31517-e189@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=3505; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9qQuZQ54OocK20X3LNeDrSplq/SgpSYUq917q1nJ2M0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLjO1fZbce+L4Mj7OH1es99x4nfQkJC7T6u6hWwdmX 5xgeOT0rI5YFgZBJgZZMUWWL9t4ju6vOKToZWh7GmYOKxPIEAYuTgGYSPlJhvkOLtl38u8Edlnk 5fwVfPPOYv86HgWGuaKtz2ZrSFXcVV+oeaR2IcOHTc8npQEA 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: xfrm: iptfs: fix skb_put() panic on non-linear skb during reassembly In iptfs_reassem_cont(), IP-TFS attempts to append data to the new inner packet 'newskb' that is being reassembled. First a zero-copy approach is tried if it succeeds then newskb becomes non-linear. When a subsequent fragment in the same datagram does not meet the fast-path conditions, a memory copy is performed. It calls skb_put() to append the data and as newskb is non-linear it triggers SKB_LINEAR_ASSERT check. Oops: invalid opcode: 0000 [#1] SMP NOPTI [...] RIP: 0010:skb_put+0x3c/0x40 [...] Call Trace: iptfs_reassem_cont+0x1ab/0x5e0 [xfrm_iptfs] iptfs_input_ordered+0x2af/0x380 [xfrm_iptfs] iptfs_input+0x122/0x3e0 [xfrm_iptfs] xfrm_input+0x91e/0x1a50 xfrm4_esp_rcv+0x3a/0x110 ip_protocol_deliver_rcu+0x1d7/0x1f0 ip_local_deliver_finish+0xbe/0x1e0 __netif_receive_skb_core.constprop.0+0xb56/0x1120 __netif_receive_skb_list_core+0x133/0x2b0 netif_receive_skb_list_internal+0x1ff/0x3f0 napi_complete_done+0x81/0x220 virtnet_poll+0x9d6/0x116e [virtio_net] __napi_poll.constprop.0+0x2b/0x270 net_rx_action+0x162/0x360 handle_softirqs+0xdc/0x510 __irq_exit_rcu+0xe7/0x110 irq_exit_rcu+0xe/0x20 common_interrupt+0x85/0xa0 Fix this by checking if the skb is non-linear. If it is, linearize it by calling skb_linearize(). As the initial allocation of newskb originally reserved enough tailroom for the entire reassembled packet we do not need to check if we have enough tailroom or extend it. The Linux kernel CVE team has assigned CVE-2026-31517 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7 and fixed in 6.18.21 with commit 33a7b36268933c75bdc355e5531951e0ea9f1951 Issue introduced in 6.14 with commit 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7 and fixed in 6.19.11 with commit 7fdfe8f6efeb0e1200e22a903f2471539f54522b Issue introduced in 6.14 with commit 5f2b6a9095743a6bf1f34c43c4fe78fa8bdf5ad7 and fixed in 7.0 with commit 0b352f83cabfefdaafa806d6471f0eca117dc7d5 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-31517 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/xfrm/xfrm_iptfs.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/33a7b36268933c75bdc355e5531951e0ea9f1951 https://git.kernel.org/stable/c/7fdfe8f6efeb0e1200e22a903f2471539f54522b https://git.kernel.org/stable/c/0b352f83cabfefdaafa806d6471f0eca117dc7d5