|
|
Message-ID: <CAH8yC8kVomkmd8mJPTUmWcC=fdVmwBrK3XKYbr+qoF3QahQFvQ@mail.gmail.com>
Date: Sat, 28 Nov 2026 13:23:13 -0500
From: Jeffrey Walton <noloader@...il.com>
To: musl@...ts.openwall.com
Subject: Re: musl: stub resolver queries from an unconnected UDP socket
are poisonable off-path on Linux 7.1+
On Sat, Nov 28, 2026 at 12:49 PM Markus Wichmann <nullplan@....net> wrote:
> Hi,
>
> so if I understand correctly, the problem is that an attacker that
> guesses the ephemeral port and transaction ID right and spoofs the
> source address can poison the response.
>
> This is bad. It means that the standard defense of "just use resolvers
> you trust, and that have network paths that you trust" doesn't work
> here. If I set the nameserver to 127.0.0.1 (which should have a trusted
> network path by definition, since it's localhost), an external attacker
> can still spit in my soup. And the suggested fix of using connected
> sockets only hinders an attacker's ability to figure out the port. If
> they just send random DNS responses to random ports, they will get lucky
> at some point.
>
> I'm currently googling a proper fix, but it seems like this is just
> inherent to UDP, and the only solution is to only do TCP (which has a
> handshake that avoids anyone making problems with just one spoofed
> packet). I don't know if that would be acceptable.
DNSSEC supports UDP, which can be used to ensure authentic responses.
Jeff
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.