netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Check connect address in NETLINK
@ 2004-06-28 23:14 Herbert Xu
  2004-06-29  0:30 ` David S. Miller
  2004-06-29  8:22 ` Alexey Kuznetsov
  0 siblings, 2 replies; 15+ messages in thread
From: Herbert Xu @ 2004-06-28 23:14 UTC (permalink / raw)
  To: David S. Miller, kuznet, netdev

Hi:

The recent thread on NLMSG_OK has reminded me about an old problem
with NETLINK.

The problem is that any user on the system can launch a DoS attack on
any NETLINK application by flooding its NETLINK address with packets.
This will easily fill up the receive queue of the destination
application and therefore cause legitimate packets from the kernel
or elsewhere to be dropped.

The solution seems simple.  We already have a connect(2) call for
NETLINK sockets.  So why don't we check the connected address of
the destination socket against the address of the sender before
putting the packet on the queue?

Any comments before I go ahead and code it?

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-07-05 22:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-28 23:14 Check connect address in NETLINK Herbert Xu
2004-06-29  0:30 ` David S. Miller
2004-06-29  2:09   ` Herbert Xu
2004-06-29  8:22 ` Alexey Kuznetsov
2004-06-29  8:45   ` Herbert Xu
2004-06-29 11:14     ` Alexey Kuznetsov
2004-06-29 11:18       ` Herbert Xu
2004-06-30 11:27         ` Herbert Xu
2004-06-30 12:00           ` Alexey Kuznetsov
2004-06-30 12:08             ` Herbert Xu
2004-06-30 12:14               ` Alexey Kuznetsov
2004-06-30 12:40                 ` Herbert Xu
2004-06-30 22:36                   ` David S. Miller
2004-06-30 23:01                     ` Herbert Xu
2004-07-05 22:46                   ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).