|
|
Message-ID: <20261128194655.GG3542221@port70.net> Date: Sat, 28 Nov 2026 20:46:55 +0100 From: Szabolcs Nagy <nsz@...t70.net> To: Markus Wichmann <nullplan@....net> Cc: musl@...ts.openwall.com, dalias@...hyderm.io, X L <idealeer521@...il.com> Subject: Re: musl: stub resolver queries from an unconnected UDP socket are poisonable off-path on Linux 7.1+ * Markus Wichmann <nullplan@....net> [2026-11-28 18:49:08 +0100]: > 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. do you mean a local process? i think it needs priv to forge the port to 53. the kernel can reject spoofed local addr from remote senders that try to look local (or anything that contradicts routing tables with "reverse path filtering") > 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. inherent to non-integrity-protected udp traffic, if dns had stronger auth than just a tx id then you could not guess it. anyway localhost is safe. i expect a nameserver on a lan behind nat can be safe too (but i don't know all the constraints for this)
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.