1. 12 12月, 2017 1 次提交
  2. 08 12月, 2017 2 次提交
    • S
      xfrm: Fix stack-out-of-bounds with misconfigured transport mode policies. · 732706af
      Steffen Klassert 提交于
      On policies with a transport mode template, we pass the addresses
      from the flowi to xfrm_state_find(), assuming that the IP addresses
      (and address family) don't change during transformation.
      
      Unfortunately our policy template validation is not strict enough.
      It is possible to configure policies with transport mode template
      where the address family of the template does not match the selectors
      address family. This lead to stack-out-of-bound reads because
      we compare arddesses of the wrong family. Fix this by refusing
      such a configuration, address family can not change on transport
      mode.
      
      We use the assumption that, on transport mode, the first templates
      address family must match the address family of the policy selector.
      Subsequent transport mode templates must mach the address family of
      the previous template.
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      732706af
    • A
      xfrm: fix xfrm_do_migrate() with AEAD e.g(AES-GCM) · 75bf50f4
      Antony Antony 提交于
      copy geniv when cloning the xfrm state.
      
      x->geniv was not copied to the new state and migration would fail.
      
      xfrm_do_migrate
        ..
        xfrm_state_clone()
         ..
         ..
         esp_init_aead()
         crypto_alloc_aead()
          crypto_alloc_tfm()
           crypto_find_alg() return EAGAIN and failed
      Signed-off-by: NAntony Antony <antony@phenome.org>
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      75bf50f4
  3. 01 12月, 2017 3 次提交
  4. 29 11月, 2017 18 次提交
  5. 28 11月, 2017 16 次提交