CVE-2026-115530: Use after free in illumos ICMP error generation for IPv4-encapsulated packets
A use after free in the illumos IPv4 ICMP error generation path allows a remote attacker to cause the kernel to read freed memory. The flaw is in icmppkt() in usr/src/uts/common/inet/ip/ip.c. It applies to ICMP errors generated in response to IPv4 packets that encapsulate IPv4 or IPv6 (IP protocol 4 or 41). For such a packet, icmppkt() computes a pointer to the inner IP header and then calls pullupmsg(). If the packet spans more than one message block, as it does after fragment reassembly, pullupmsg() copies the data into a new buffer and frees the original. The stale pointer is then used to parse the inner header. A remote, unauthenticated attacker can send a fragmented IP-in-IP packet that elicits an ICMP error to cause the kernel to parse freed kernel heap memory as an IP header. The result determines how much of the original packet is quoted in the ICMP error that is returned. The flaw has existed since 2021 (illumos-gate commit 9495f63e), and affects any illumos distribution prior to illumos-gate commit bdccbe63.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch bdccbe63
Event History
Frequently Asked Questions
What does an attacker need to send to reach the vulnerable path?
The attacker must send a fragmented IPv4 packet using IP protocol 4 or 41, encapsulating an inner IPv4 or IPv6 packet, and cause the system to generate an ICMP error in response. No authentication is required.
Which systems are affected?
Any illumos distribution based on illumos-gate before commit bdccbe63 is affected. The flaw was introduced in 2021 by illumos-gate commit 9495f63e.
How can I determine whether a deployed build has the fix?
Check whether the build includes illumos-gate commit bdccbe639501ed5b7a167be1259bd7ea4e16c0f7. Builds prior to that commit are affected.
What is the attacker-visible effect of successful triggering?
The kernel parses freed heap memory as an inner IP header. That parsed data determines the amount of the original packet quoted in the ICMP error returned to the attacker.