{"id":"CVE-2026-31472","published":"2026-04-22T13:54:00Z","modified":"2026-05-11T22:09:23Z","title":"xfrm: iptfs: validate inner IPv4 header length in IPTFS payload","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00125,"percentile":0.02287,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/de6d8e8ce5187f7402c9859b443355e7120c5f09","tags":[]},{"url":"https://git.kernel.org/stable/c/3db7d4f777a00164582061ccaa99569cd85011a3","tags":[]},{"url":"https://git.kernel.org/stable/c/0d10393d5eac33cbd92f7a41fddca12c41d3cb7e","tags":[]}],"priority":{"score":0.5,"factors":[{"name":"EPSS percentile","points":0.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 6c82d2433671819a550227bf65bfb6043e3d3305, < de6d8e8ce5187f7402c9859b443355e7120c5f09",">= 6c82d2433671819a550227bf65bfb6043e3d3305, < 3db7d4f777a00164582061ccaa99569cd85011a3",">= 6c82d2433671819a550227bf65bfb6043e3d3305, < 0d10393d5eac33cbd92f7a41fddca12c41d3cb7e"]},{"vendor":"Linux","product":"Linux","versions":["6.14"]}],"euvd":{"id":"EUVD-2026-24823","exploited":false,"provenance":"source"}}