]> git.karo-electronics.de Git - karo-tx-linux.git/commit
irda: validate peer name and attribute lengths
authorDan Rosenberg <drosenberg@vsecurity.com>
Sun, 20 Mar 2011 15:32:06 +0000 (15:32 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:56:56 +0000 (10:56 -0400)
commite342afa320d77147939a6e7cb69e679d882ad025
tree70f8776f6f20ff75bcdfbae255b1b06f64700877
parent7095248f1bf1448263ef8279f7f274a99e026c9d
irda: validate peer name and attribute lengths

commit d370af0ef7951188daeb15bae75db7ba57c67846 upstream.

Length fields provided by a peer for names and attributes may be longer
than the destination array sizes.  Validate lengths to prevent stack
buffer overflows.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/irda/iriap.c