The upstream kernel got source port UDP randomization (where no port is specified) in 2.6.24.
You can see this in practice by testing distributions like Fedora 8 or 9 where the glibc stub
resolver will use a different source port on each request, therefore mitigating this issue.
Users of older kernels will either need a backported patch to add this functionality, or
changes to glibc if they want UDP source port randomization.
Upstream commit:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-...
Posted Jul 9, 2008 12:42 UTC (Wed) by shane (subscriber, #3335)
[Link]
BIND uses it's own port selection algorithm. Anyone concerned about portability and security
would too (or would check for port randomness in the configure script).