Libslirp: Out-of-bounds Heap Read in icmp_forward_error() Leaks Host Memory
"Red Hat would like to thank Piyusha Akash (Manifold Operations) for reporting this issue."
During source-level security auditing of libslirp, a flaw was identified in icmp_forward_error() within src/ip_icmp.c. When building an ICMP error packet, the length of the quoted original IPv4 packet was derived directly from the IP header without verifying or clamping it against the actual buffer size.
A truncated or malformed packet transmitted by an unprivileged guest triggers an out-of-bounds heap read (CWE-125). Uninitialized host memory bytes are copied into the ICMP error packet returned to the guest, resulting in information disclosure across hypervisor and container isolation boundaries.