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 C26ED3CCFB0 for ; Wed, 22 Apr 2026 13:55:36 +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=1776866136; cv=none; b=S+vhFaqsa7u2Cn4Vpg8NVUXRsgWEOzCScws3AOP+zEsswT9yJJIiMF0w77esxZWPO2HvbERy/ZEnTVx0Q2A+D9UsMt5NmyNaPV9s47wrc+MjHzH4raZnpVFLTRJMKuJrkXz+WspppJYA7ITOVz/RpdGVDeIBkiLmaeXImlQxGzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866136; c=relaxed/simple; bh=iP3OKys7gWpfWl5JC+EhYYChJ5PDudjq+SBH4lgsrlU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z/v5KFytgILm4rvTmTcBTO8h6yOywinSR5bkA7RUJbnrppkrEj02xUIGjEAgHtvTxcYdy+CEEOrE1pMYVXqMGH+fE+njB2SOGs44vz8jQ91kuOaLbVhiMIONqa8E6XysWXe25b3p84Cut6yY9+dTtK/Y4dPCGNeVDFcC+50sa4E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=adgoXIry; 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="adgoXIry" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D94EC19425; Wed, 22 Apr 2026 13:55:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866136; bh=iP3OKys7gWpfWl5JC+EhYYChJ5PDudjq+SBH4lgsrlU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=adgoXIryzkPNvkIfSnQQAY0jW4vmFNUqJzwtHdWTuFGkPBpKHXXeIPNpdjXgpR7k0 nxhXEndaPkL7UcjoBHg16fHv4rYwgjJ1eoNhE6gSq9l6ZZNCnjrVSKswLUQq7YSbHn LeuWEY4li73sCLminWltTYM4VpZLBNld1ErVCfAQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31471: xfrm: iptfs: only publish mode_data after clone setup Date: Wed, 22 Apr 2026 15:54:17 +0200 Message-ID: <2026042254-CVE-2026-31471-d8ba@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=2523; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bpmvQwR9FASUHdmJwKohUnclpryMfPIvMoUKygM+QOU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLn1uvLK5QHvjt01eft1/H5YaifdrG9dsTnpz78FCF tHYkESGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIhmqG+Uk6ba+CK6K3v7GO eKZ6/ucZCw359QwLepP1T9xI2Nzt8f3IxeSjSj8euQlcBgA= 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: only publish mode_data after clone setup iptfs_clone_state() stores x->mode_data before allocating the reorder window. If that allocation fails, the code frees the cloned state and returns -ENOMEM, leaving x->mode_data pointing at freed memory. The xfrm clone unwind later runs destroy_state() through x->mode_data, so the failed clone path tears down IPTFS state that clone_state() already freed. Keep the cloned IPTFS state private until all allocations succeed so failed clones leave x->mode_data unset. The destroy path already handles a NULL mode_data pointer. The Linux kernel CVE team has assigned CVE-2026-31471 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 6be02e3e4f376fea468846c8562655ca5ee18204 and fixed in 6.18.21 with commit 371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1 Issue introduced in 6.14 with commit 6be02e3e4f376fea468846c8562655ca5ee18204 and fixed in 6.19.11 with commit 5784a1e2889c9525a8f036cb586930e232170bf7 Issue introduced in 6.14 with commit 6be02e3e4f376fea468846c8562655ca5ee18204 and fixed in 7.0 with commit d849a2f7309fc0616e79d13b008b0a47e0458b6e 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-31471 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/371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1 https://git.kernel.org/stable/c/5784a1e2889c9525a8f036cb586930e232170bf7 https://git.kernel.org/stable/c/d849a2f7309fc0616e79d13b008b0a47e0458b6e