Netdev List
 help / color / mirror / Atom feed
* Null pointer dereference in icmp_send
@ 2011-05-16 21:06 Aristide Fattori
  2011-05-16 21:22 ` David Miller
  2011-05-16 21:27 ` Eric Dumazet
  0 siblings, 2 replies; 6+ messages in thread
From: Aristide Fattori @ 2011-05-16 21:06 UTC (permalink / raw)
  To: netdev; +Cc: roberto.paleari

Hi everybody,

in function icmp_send() (net/ipv4/icmp.c), the parameter passed to
dev_net() function is not properly validated. This can lead to a NULL
pointer dereference that crashes the kernel. The bug can be triggered
remotely, by flooding the target with fragmented IPv4 packets.
Important fields in the IP packet are:
 * Flags: the MF flag must be set.
 * Fragment ID: using pseudo-random values for this field quickly
fills fragmented queues in the victim's kernel, as it is unable to
easily reassemble received packets.
 * TOS: using pseudo-random values for this field triggers the
creation of more than one route cache entry for the same destination
address, increasing the chances of incurring in the error condition
described before.
Other fields of the packet do not really matter, and they can be set
to arbitrary values.

If you are interested, we can provide a small and very dirty python
script that easily triggers the error condition.

Greetings,
Aristide Fattori
Roberto Paleari

-- 
GnuPG Key on keyserver.pgp.com ID 0x25578128
http://security.dico.unimi.it/~joystick/

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

end of thread, other threads:[~2011-05-17  7:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-16 21:06 Null pointer dereference in icmp_send Aristide Fattori
2011-05-16 21:22 ` David Miller
2011-05-16 21:27 ` Eric Dumazet
2011-05-16 21:38   ` Eric Dumazet
2011-05-17  7:31     ` Aristide Fattori
2011-05-17  7:51       ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox