Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <awsUFJlaO4jm4NqP@intrepid.fritz.box>
Date: Sat, 28 Nov 2026 18:49:08 +0100
From: Markus Wichmann <nullplan@....net>
To: musl@...ts.openwall.com
Cc: 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+

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.

Ciao,
Markus

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.