CVE-2026-64114
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
19/07/2026
Last modified:
20/07/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
ipv4: raw: reject IP_HDRINCL packets with ihl ihl * 4;<br />
err = -EINVAL;<br />
if (iphlen > length)<br />
goto error_free;<br />
<br />
if (iphlen >= sizeof(*iph)) {<br />
/* fix up saddr, tot_len, id, csum, transport_header */<br />
}<br />
<br />
It does not, however, reject ihl = sizeof(*iph))" branch is skipped, leaving the<br />
crafted iphdr untouched, but the packet is still handed to<br />
__ip_local_out() and onward. Downstream consumers that read<br />
iph->ihl assume a sane value: net/ipv4/ah4.c:ah_output() in<br />
particular subtracts sizeof(struct iphdr) from top_iph->ihl * 4<br />
and passes the (signed-int-negative, then cast to size_t)<br />
result to memcpy(), producing an OOB access of length close to<br />
SIZE_MAX and a host kernel panic.<br />
<br />
An IPv4 header with ihl = sizeof(*iph))" wrapper around<br />
the fixup branch becomes redundant; left in place to keep the<br />
patch minimal and backport-friendly. A follow-up can unwrap it.<br />
<br />
Note that commit 86f4c90a1c5c ("ipv4, ipv6: ensure raw socket<br />
message is big enough to hold an IP header") ensures the message<br />
buffer is large enough to hold an iphdr, but does not constrain<br />
the self-reported iph->ihl.<br />
<br />
Reachability: the malformed packet source is any caller with<br />
CAP_NET_RAW, including an unprivileged process in a user+net<br />
namespace on a kernel with CONFIG_USER_NS=y. The reproduced AH<br />
crash also requires a matching xfrm AH policy on the outgoing<br />
route; a container granted CAP_NET_ADMIN can install that state<br />
and policy in its netns. Loopback bypasses xfrm_output, so the<br />
trigger uses a real netdev.<br />
<br />
Reproduced on UML + KASAN: kernel-mode fault at addr 0x0 with<br />
memcpy_orig at the crash site. Same shape reproduces inside a<br />
rootless Docker container with --cap-add NET_ADMIN on a stock<br />
distro kernel.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/1065b9efa4126df559b03a849c139ecfae92cd25
- https://git.kernel.org/stable/c/145e9afa5b905229b4788bb72c3255f5a5f77508
- https://git.kernel.org/stable/c/3c5411fa4944ed99af3d9d1de750ea8169b6dac9
- https://git.kernel.org/stable/c/5a564f737ec54d63e8ee221d3ff396d07586d464
- https://git.kernel.org/stable/c/7725cd3b471740fd23d25ed1da722c671fb2a5d3
- https://git.kernel.org/stable/c/915fab69823a14c170dbaa3b41978768e0fe62fc
- https://git.kernel.org/stable/c/bbe0be67de296176e7243c76e3d9f02f6ae9ff0b
- https://git.kernel.org/stable/c/bc20dbd48c26e743f7e0845020c11ed2ce8b15ee



