]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix random memory dereference with SCTP_HMAC_IDENT option.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 27 Aug 2008 23:09:49 +0000 (16:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Aug 2008 23:09:49 +0000 (16:09 -0700)
commit0b677289e2fbcea474e4d1107b2d418e6a318411
tree61a8fd1ace711bcf2c832d0c453d8fbf6f8f3003
parent17757a9dd046028f46129a5b64fe46862ab30c23
sctp: fix random memory dereference with SCTP_HMAC_IDENT option.

The number of identifiers needs to be checked against the option
length.  Also, the identifier index provided needs to be verified
to make sure that it doesn't exceed the bounds of the array.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/auth.c
net/sctp/socket.c