{"id":"CVE-2026-31471","published":"2026-04-22T13:53:59Z","modified":"2026-08-05T12:22:50Z","title":"xfrm: iptfs: only publish mode_data after clone setup","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: iptfs: only publish mode_data after clone setup\n\niptfs_clone_state() stores x->mode_data before allocating the reorder\nwindow. If that allocation fails, the code frees the cloned state and\nreturns -ENOMEM, leaving x->mode_data pointing at freed memory.\n\nThe xfrm clone unwind later runs destroy_state() through x->mode_data,\nso the failed clone path tears down IPTFS state that clone_state()\nalready freed.\n\nKeep the cloned IPTFS state private until all allocations succeed so\nfailed clones leave x->mode_data unset. The destroy path already\nhandles a NULL mode_data pointer.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00132,"percentile":0.02864,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1","tags":[]},{"url":"https://git.kernel.org/stable/c/5784a1e2889c9525a8f036cb586930e232170bf7","tags":[]},{"url":"https://git.kernel.org/stable/c/d849a2f7309fc0616e79d13b008b0a47e0458b6e","tags":[]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":0.57},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 6be02e3e4f376fea468846c8562655ca5ee18204, < 371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1",">= 6be02e3e4f376fea468846c8562655ca5ee18204, < 5784a1e2889c9525a8f036cb586930e232170bf7",">= 6be02e3e4f376fea468846c8562655ca5ee18204, < d849a2f7309fc0616e79d13b008b0a47e0458b6e"]},{"vendor":"Linux","product":"Linux","versions":["6.14"]}],"euvd":{"id":"EUVD-2026-24821","exploited":false,"provenance":"source"}}