{
  "threat_severity" : "Important",
  "public_date" : "2017-03-07T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: Race condition access to n_hdlc.tbuf causes double free in n_hdlc_release()",
    "id" : "1428319",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1428319"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.8",
    "cvss3_scoring_vector" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-362",
  "details" : [ "Race condition in drivers/tty/n_hdlc.c in the Linux kernel through 4.10.1 allows local users to gain privileges or cause a denial of service (double free) by setting the HDLC line discipline.", "A race condition flaw was found in the N_HLDC Linux kernel driver when accessing n_hdlc.tbuf list that can lead to double free. A local, unprivileged user able to set the HDLC line discipline on the tty device could use this flaw to increase their privileges on the system." ],
  "statement" : "This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5.\nThis issue does affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 6, 7 and Red Hat Enterprise MRG 2. As this issue is rated as Important, it has been scheduled to be fixed in future updates for the respective releases.",
  "acknowledgement" : "Red Hat would like to thank Alexander Popov for reporting this issue.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "release_date" : "2017-04-11T00:00:00Z",
    "advisory" : "RHSA-2017:0892",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6",
    "package" : "kernel-0:2.6.32-696.1.1.el6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6.2 Advanced Update Support",
    "release_date" : "2017-04-25T00:00:00Z",
    "advisory" : "RHSA-2017:1126",
    "cpe" : "cpe:/o:redhat:rhel_mission_critical:6.2",
    "package" : "kernel-0:2.6.32-220.71.1.el6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6.4 Advanced Update Support",
    "release_date" : "2017-04-18T00:00:00Z",
    "advisory" : "RHSA-2017:0986",
    "cpe" : "cpe:/o:redhat:rhel_aus:6.4",
    "package" : "kernel-0:2.6.32-358.78.1.el6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6.5 Advanced Update Support",
    "release_date" : "2017-05-16T00:00:00Z",
    "advisory" : "RHSA-2017:1232",
    "cpe" : "cpe:/o:redhat:rhel_aus:6.5",
    "package" : "kernel-0:2.6.32-431.80.1.el6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6.5 Telco Extended Update Support",
    "release_date" : "2017-05-16T00:00:00Z",
    "advisory" : "RHSA-2017:1232",
    "cpe" : "cpe:/o:redhat:rhel_tus:6.5",
    "package" : "kernel-0:2.6.32-431.80.1.el6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6.6 Advanced Update Support",
    "release_date" : "2017-06-19T00:00:00Z",
    "advisory" : "RHSA-2017:1488",
    "cpe" : "cpe:/o:redhat:rhel_aus:6.6",
    "package" : "kernel-0:2.6.32-504.60.2.el6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6.6 Telco Extended Update Support",
    "release_date" : "2017-06-19T00:00:00Z",
    "advisory" : "RHSA-2017:1488",
    "cpe" : "cpe:/o:redhat:rhel_tus:6.6",
    "package" : "kernel-0:2.6.32-504.60.2.el6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6.7 Extended Update Support",
    "release_date" : "2017-05-16T00:00:00Z",
    "advisory" : "RHSA-2017:1233",
    "cpe" : "cpe:/o:redhat:rhel_eus:6.7",
    "package" : "kernel-0:2.6.32-573.42.1.el6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "release_date" : "2017-04-12T00:00:00Z",
    "advisory" : "RHSA-2017:0931",
    "cpe" : "cpe:/a:redhat:rhel_extras_rt:7",
    "package" : "kernel-rt-0:3.10.0-514.16.1.rt56.437.el7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "release_date" : "2017-04-12T00:00:00Z",
    "advisory" : "RHSA-2017:0933",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7",
    "package" : "kernel-0:3.10.0-514.16.1.el7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7.2 Extended Update Support",
    "release_date" : "2017-04-25T00:00:00Z",
    "advisory" : "RHSA-2017:1125",
    "cpe" : "cpe:/o:redhat:rhel_eus:7.2",
    "package" : "kernel-0:3.10.0-327.53.1.el7"
  }, {
    "product_name" : "Red Hat Enterprise MRG 2",
    "release_date" : "2017-04-12T00:00:00Z",
    "advisory" : "RHSA-2017:0932",
    "cpe" : "cpe:/a:redhat:enterprise_mrg:2:server:el6",
    "package" : "kernel-rt-1:3.10.0-514.rt56.219.el6rt"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 5",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:5"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2017-2636\nhttps://nvd.nist.gov/vuln/detail/CVE-2017-2636\nhttps://a13xp0p0v.github.io/2017/03/24/CVE-2017-2636.html\nhttps://access.redhat.com/security/vulnerabilities/CVE-2017-2636" ],
  "csaw" : true,
  "name" : "CVE-2017-2636",
  "mitigation" : {
    "value" : "The  n_hdlc kernel module will be automatically loaded when an application  attempts to use the HDLC line discipline from userspace.  This module  can be prevented from being loaded by using the system-wide modprobe  rules. The following command, run as root, will prevent accidental or  intentional loading of the module.  Red Hat Product Security believe  this method is a robust method to prevent accidental loading of the  module, even by privileged users.\n​# echo \"install n_hdlc /bin/true\" >> /etc/modprobe.d/disable-n_hdlc.conf\nThe  system will need to be restarted if the n_hdlc modules are already  loaded.  In most circumstances, the n_hdlc kernel modules will be unable to be unloaded if in use and while any current process using this line  discipline is required.\nExploiting this flaw does not require Microgate or SyncLink hardware to be in use.\nIf further assistance is needed, see this KCS article ( https://access.redhat.com/solutions/41278 ) or contact Red Hat Global Support Services.",
    "lang" : "en:us"
  }
}