Skip to content
This repository has been archived by the owner on May 14, 2019. It is now read-only.

fix_CVE-2014-8160_gre-tunneling-issue #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix_CVE-2014-8160_gre-tunneling-issue #224

wants to merge 1 commit into from

Conversation

guessi
Copy link
Contributor

@guessi guessi commented Sep 21, 2015

fix side effect of CVE-2014-8160 patch:
after applying a kernel upgrade, netfilter default behavior changed,
without this change, guest instacnes running on node with gre tunnel
may have no network access, we need to load an extra kernel module
nf_conntrack_proto_gre explicitly to resolve this issue.

references:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=db29a9508a9246e77087c5531e45b2c88ec6988b
http://www.spinics.net/lists/netfilter-devel/msg33430.html
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-8160

step for reproduce:

  1. setup a compute node without CVE-2014-8160 patch

    Ubuntu, for example,

  2. launch a guest instance

  3. try to ping guest instance's gateway from inside guest instance
    ping test should passed

  4. upgrade compute nodes' kernel

    Ubuntu, for example,

  5. repeat step 2 & 3 again
    ping test should failed, guest instance have no access to the networks

fix side effect of CVE-2014-8160 patch:
  after applying a kernel upgrade, netfilter default behavior changed,
  without this change, guest instacnes running on node with gre tunnel
  may have no network access, we need to load an extra kernel module
  `nf_conntrack_proto_gre` explicitly to resolve this issue.

references:
  http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=db29a9508a9246e77087c5531e45b2c88ec6988b
  http://www.spinics.net/lists/netfilter-devel/msg33430.html
  https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-8160

step for reproduce:

  1. setup a compute node without CVE-2014-8160 patch

     Ubuntu, for example,
     - Ubuntu Precise (kernel version < 3.13.0-46.75~precise1), for havana.
     - Ubuntu Trusty (kernel version < 3.16.0-31.41~14.04.1), for icehouse, juno, kilo, etc.

     reference:
     - http://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-8160.html

  2. launch a guest instance

  3. try to ping guest instance's gateway from inside guest instance

     ping test should passed

  4. upgrade compute nodes' kernel

     Ubuntu, for example,
     - Ubuntu Precise (kernel version >= 3.13.0-46.75~precise1), for havana.
     - Ubuntu Trusty (kernel version >= 3.16.0-31.41~14.04.1), for icehouse, juno, kilo, etc.

     reference:
     - http://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-8160.html

  5. repeat step 2 & 3 again

     ping test failed, guest instance have no access to the networks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant