vulnerability disclosures

CVE-2026-120830 CVSS 7.4 (High) · CWE-125

Libslirp: Out-of-bounds Heap Read in icmp_forward_error() Leaks Host Memory

In libslirp's icmp_forward_error() within src/ip_icmp.c, quoted original packet length was derived directly from the packet IP header without clamping against actual buffer size, allowing an unprivileged guest to trigger an out-of-bounds heap read and leak sensitive host memory.

Acknowledgement: Red Hat Product Security (Bugzilla RHBZ#2565424)
CVE-2026-120831 CVSS 6.5 (Medium) · CWE-787

Libslirp: Queue Pointer Corruption in if_output() Causes Host Denial of Service

In libslirp's if_output(), fast-to-batch queue transitions operated on arbitrary packets via ifm->m_nextpkt instead of unlinking and reinserting the session queue head, corrupting internal packet queue pointers and causing process crashes on burst traffic.

Acknowledgement: Red Hat Product Security (Bugzilla RHBZ#2565425)
CVE-2026-115449 CVSS 3.5 (Low) · CWE-200

Libslirp: ICMP Echo Reply Length Desynchronization Leaks Host IP to Guest

When handling ICMP echo requests through the fallback socket path, libslirp failed to synchronize reply packet lengths to actual bytes received from the host OS network stack, returning uninitialized buffer slices containing the host's physical IP address across NAT boundaries.

Acknowledgement: Red Hat Product Security (Bugzilla RHBZ#2558916)
src/ip_icmp.c — Echo Reply Length Synchronization
} else {
+ m->m_len = hlen + len;
+ ip->ip_len = htons(hlen + len);
icmp_reflect(m);
}

upstream merged patches (libslirp)

Work Item #99 Memory Leak · Merged

Memory leak of tftp_server_name in slirp_cleanup()

tftp_server_name was heap-allocated during initialization but never freed in slirp_cleanup(), causing a persistent memory leak on every instance teardown in QEMU.

src/slirp.c — slirp_cleanup()
g_free(slirp->vdomainname);
+g_free(slirp->tftp_server_name);
g_free(slirp);
Work Item #100 Buffer Underflow · Merged

Buffer underflow in tftp_handle_rrq() when handling empty filename

When receiving a TFTP read request with an empty filename, pointer arithmetic resulted in a buffer underflow, reading before the start of the allocated buffer.

Work Item #101 Protocol Bug · Merged

Protocol type mismatch in icmp6_receive(): IPv4 error emitted as ICMPv6

In icmp6_receive(), an IPv4 ICMP_UNREACH error was incorrectly emitted using the ICMPv6 send path, causing malformed packet construction.

Work Item #102 Resource Leak · Merged

Double socket descriptor leak in fork_exec() on argument parsing failure

Two connected socket descriptors allocated via slirp_socketpair_with_oob() were never closed if argument parsing failed prior to the fork, exhausting host process file descriptors.

Work Item #103 Resource Leak · Merged

Socket heap memory & buffer leak in slirp_state_load() on deserialization failure

If deserialization failed partway through, the allocated socket structure and its associated buffers were not freed before returning an error.

Work Item #104 Concurrency · Merged

Non-reentrant static variable in tcp_emu() corrupts protocol parser across sessions

tcp_emu() used a static local variable to maintain parser state across calls, causing concurrent sessions to corrupt each other's protocol parser state.