]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Mar 2011 00:59:02 +0000 (17:59 -0700)
commit6bf47b735a8e3f1749892293f4636e9ae6ce57db
treef884335124cf68d375afef3226a7378e6f5f3d33
parent76a1beb2184817b232ab5fe9fcc5193ae1dab753
irda: validate peer name and attribute lengths

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>
Cc: stable@kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/iriap.c