{"id":"CVE-2026-31472","aliases":["CVE-2026-31472"],"related":[],"kind":"vulnerability","state":"published","title":"xfrm: iptfs: validate inner IPv4 header length in IPTFS payload","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: iptfs: validate inner IPv4 header length in IPTFS payload\n\nAdd validation of the inner IPv4 packet tot_len and ihl fields parsed\nfrom decrypted IPTFS payloads in __input_process_payload(). A crafted\nESP packet containing an inner IPv4 header with tot_len=0 causes an\ninfinite loop: iplen=0 leads to capturelen=min(0, remaining)=0, so the\ndata offset never advances and the while(data < tail) loop never\nterminates, spinning forever in softirq context.\n\nReject inner IPv4 packets where tot_len < ihl*4 or ihl*4 < sizeof(struct\niphdr), which catches both the tot_len=0 case and malformed ihl values.\nThe normal IP stack performs this validation in ip_rcv_core(), but IPTFS\nextracts and processes inner packets before they reach that layer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: iptfs: validate inner IPv4 header length in IPTFS payload\n\nAdd validation of the inner IPv4 packet tot_len and ihl fields parsed\nfrom decrypted IPTFS payloads in __input_process_payload(). A crafted\nESP packet containing an inner IPv4 header with tot_len=0 causes an\ninfinite loop: iplen=0 leads to capturelen=min(0, remaining)=0, so the\ndata offset never advances and the while(data < tail) loop never\nterminates, spinning forever in softirq context.\n\nReject inner IPv4 packets where tot_len < ihl*4 or ihl*4 < sizeof(struct\niphdr), which catches both the tot_len=0 case and malformed ihl values.\nThe normal IP stack performs this validation in ip_rcv_core(), but IPTFS\nextracts and processes inner packets before they reach that layer.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nxfrm: iptfs: validar la longitud del encabezado IPv4 interno en la carga útil de IPTFS\n\nAñadir validación de los campos tot_len e ihl del paquete IPv4 interno analizados de las cargas útiles de IPTFS descifradas en __input_process_payload(). Un paquete ESP manipulado que contiene un encabezado IPv4 interno con tot_len=0 causa un bucle infinito: iplen=0 lleva a capturelen=min(0, remaining)=0, por lo que el desplazamiento de datos nunca avanza y el bucle while(data < tail) nunca termina, girando indefinidamente en el contexto de softirq.\n\nRechazar paquetes IPv4 internos donde tot_len < ihl4 o ihl4 < sizeof(struct iphdr), lo que detecta tanto el caso de tot_len=0 como los valores ihl mal formados. La pila IP normal realiza esta validación en ip_rcv_core(), pero IPTFS extrae y procesa los paquetes internos antes de que lleguen a esa capa.","source":"nvd"}],"published":"2026-04-22T13:54:00.281Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"type":"git","introduced":"6c82d2433671819a550227bf65bfb6043e3d3305","fixed":"de6d8e8ce5187f7402c9859b443355e7120c5f09","status":"affected"},{"type":"git","introduced":"6c82d2433671819a550227bf65bfb6043e3d3305","fixed":"3db7d4f777a00164582061ccaa99569cd85011a3","status":"affected"},{"type":"git","introduced":"6c82d2433671819a550227bf65bfb6043e3d3305","fixed":"0d10393d5eac33cbd92f7a41fddca12c41d3cb7e","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.1","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"6.14"},{"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"},{"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/de6d8e8ce5187f7402c9859b443355e7120c5f09","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3db7d4f777a00164582061ccaa99569cd85011a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d10393d5eac33cbd92f7a41fddca12c41d3cb7e","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31472","url":"https://www.cve.org/CVERecord?id=CVE-2026-31472","licence":"CVE Terms of Use","modified":"2026-05-11T22:09:23.766Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31472","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31472","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.279Z","epss":{"score":0.00125,"percentile":0.02402,"date":"2026-12-01T12:00:22.000Z"}}