{"id":"CVE-2026-31471","aliases":["CVE-2026-31471"],"related":[],"kind":"vulnerability","state":"published","title":"xfrm: iptfs: only publish mode_data after clone setup","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nxfrm: iptfs: solo publicar mode_data después de configurar el clon\n\niptfs_clone_state() almacena x  ->  mode_data antes de asignar la ventana de reordenamiento. Si esa asignación falla, el código libera el estado clonado y devuelve -ENOMEM, dejando x  ->  mode_data apuntando a memoria liberada.\n\nEl desenrollado del clon xfrm más tarde ejecuta destroy_state() a través de x  ->  mode_data, por lo que la ruta de clonación fallida desmantela el estado IPTFS que clone_state() ya liberó.\n\nMantener el estado IPTFS clonado privado hasta que todas las asignaciones tengan éxito para que los clones fallidos dejen x  ->  mode_data sin establecer. La ruta de destrucción ya maneja un puntero mode_data NULL.","source":"nvd"}],"published":"2026-04-22T13:53:59.595Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"6be02e3e4f376fea468846c8562655ca5ee18204","fixed":"371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1","status":"affected"},{"type":"git","introduced":"6be02e3e4f376fea468846c8562655ca5ee18204","fixed":"5784a1e2889c9525a8f036cb586930e232170bf7","status":"affected"},{"type":"git","introduced":"6be02e3e4f376fea468846c8562655ca5ee18204","fixed":"d849a2f7309fc0616e79d13b008b0a47e0458b6e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.14","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5784a1e2889c9525a8f036cb586930e232170bf7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d849a2f7309fc0616e79d13b008b0a47e0458b6e","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31471","url":"https://www.cve.org/CVERecord?id=CVE-2026-31471","licence":"CVE Terms of Use","modified":"2026-08-05T12:22:50.697Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31471","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31471","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.279Z","epss":{"score":0.00132,"percentile":0.02982,"date":"2026-12-01T12:00:22.000Z"}}