]> git.baikalelectronics.ru Git - kernel.git/commit
ppp: mppe: discard late packet in stateless mode
authorSylvain Rochet <sylvain.rochet@finsecur.com>
Sun, 26 Apr 2015 18:40:53 +0000 (20:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2015 03:25:13 +0000 (23:25 -0400)
commit48bddf5abaa520229e77b59eca0bbdabcccb9b63
tree9bdcae74269b9fc448ca746aedf6b61cc6af3240
parentf1a3b3a36ca89c014fd1c553f4e0ab6f1f7a14b3
ppp: mppe: discard late packet in stateless mode

When PPP is used over a link which does not guarantee packet ordering,
we might get late MPPE packets. This is a problem because MPPE must be
kept synchronized and the current implementation does not drop them and
rekey 4095 times instead of 0, which is wrong.

In order to prevent rekeying about a whole count space times (~ 4095
times), drop packets which are not within the forward 4096/2 window and
increase sanity error counter.

Signed-off-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_mppe.c