From: Razvan Cojocaru <[email protected]> A UDP packet from 0.0.0.0 (sent to 255.255.255.255) or from :: crashed the receiving process before any authentication:
- p2p without --remote: link_socket_bad_incoming_addr() dereferenced the NULL remote_list - server: the stateless HMAC reset reply was sent to the unspecified address and hit the ASSERT in process_outgoing_link(); 2.5 crashed like p2p instead tls-auth/tls-crypt don't prevent it on a server, since a replayed client reset is answered. Such packets can be sent by hosts on the same link, and by authenticated clients of a TAP server through their tunnel. Drop them right after reading, before any other processing. CVE: 2026-142094 Change-Id: I625256cd3a3054cf94510137f3f4579fc5e8098c Signed-off-by: Razvan Cojocaru <[email protected]> Acked-by: Ralf Lici <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn-private/+/2387 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to release/2.6. Gerrit URL: https://gerrit.openvpn.net/c/openvpn-private/+/2387 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Ralf Lici <[email protected]> diff --git a/src/openvpn/forward.c b/src/openvpn/forward.c index 2255951..eb43944 100644 --- a/src/openvpn/forward.c +++ b/src/openvpn/forward.c @@ -986,6 +986,15 @@ /* Remove socks header if applicable */ socks_postprocess_incoming_link(c); + /* A datagram from an unspecified source address (0.0.0.0 or ::) + * cannot be answered, and later processing assumes a defined peer */ + if (c->c2.buf.len > 0 && proto_is_udp(c->c2.link_socket->info.proto) + && !link_socket_actual_defined(&c->c2.from)) + { + msg(D_LINK_ERRORS, "UDP: dropping packet from unspecified source address"); + c->c2.buf.len = 0; + } + perf_pop(); } _______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
