aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorPatrick McHardy <[email protected]>2010-03-17 06:04:14 +0000
committerDavid S. Miller <[email protected]>2010-03-20 05:47:22 +0000
commita50436f2cd6e85794f7e1aad795ca8302177b896 (patch)
tree522ac0b3ac330fb53d4ee9147f7565b27b482085 /net/ipv4/tcp_input.c
parentKS8695: update ksp->next_rx_desc_read at the end of rx loop (diff)
downloadkernel-a50436f2cd6e85794f7e1aad795ca8302177b896.tar.gz
kernel-a50436f2cd6e85794f7e1aad795ca8302177b896.zip
net: ipmr/ip6mr: fix potential out-of-bounds vif_table access
mfc_parent of cache entries is used to index into the vif_table and is initialised from mfcctl->mfcc_parent. This can take values of to 2^16-1, while the vif_table has only MAXVIFS (32) entries. The same problem affects ip6mr. Refuse invalid values to fix a potential out-of-bounds access. Unlike the other validity checks, this is checked in ipmr_mfc_add() instead of the setsockopt handler since its unused in the delete path and might be uninitialized. Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions