CVE-2017-7308
The packet_set_ring function in net/packet/af_packet.c in the Linux kernel through 4.10.6 does not properly validate certain block-size data, which allows local users to cause a denial of service (integer signedness error and out-of-bounds write), or gain privileges (if the CAP_NET_RAW capability is held), via crafted system calls.
What to do
Likely to be exploited: EPSS gives a 18% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | linux | Fixed | 4.4.0-72.93 | UBUNTU-CVE-2017-7308 |
| Ubuntu 16.04 | linux-aws | Fixed | 4.4.0-1013.22 | UBUNTU-CVE-2017-7308 |
| Ubuntu 16.04 | linux-azure | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-euclid | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-flo | Fix pending | ||
| Ubuntu 16.04 | linux-gcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-gke | Fixed | 4.4.0-1010.10 | UBUNTU-CVE-2017-7308 |
| Ubuntu 16.04 | linux-goldfish | Fix pending | ||
| Ubuntu 16.04 | linux-hwe | Fixed | 4.8.0-46.49~16.04.1 | UBUNTU-CVE-2017-7308 |
| Ubuntu 16.04 | linux-kvm | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-mako | Fix pending | ||
| Ubuntu 16.04 | linux-oem | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-raspi2 | Fixed | 4.4.0-1052.59 | UBUNTU-CVE-2017-7308 |
| Ubuntu 16.04 | linux-snapdragon | Fixed | 4.4.0-1055.59 | UBUNTU-CVE-2017-7308 |
| Ubuntu 14.04 | linux | Fixed | 3.13.0-116.163 | UBUNTU-CVE-2017-7308 |
| Ubuntu 14.04 | linux-flo | Fix pending | ||
| Ubuntu 14.04 | linux-goldfish | Fix pending | ||
| Ubuntu 14.04 | linux-grouper | Fix pending | ||
| Ubuntu 14.04 | linux-lts-utopic | Fix pending | ||
| Ubuntu 14.04 | linux-lts-vivid | Fix pending | ||
| Ubuntu 14.04 | linux-lts-wily | Fix pending | ||
| Ubuntu 14.04 | linux-lts-xenial | Fixed | 4.4.0-72.93~14.04.1 | UBUNTU-CVE-2017-7308 |
| Ubuntu 14.04 | linux-maguro | Fix pending | ||
| Ubuntu 14.04 | linux-mako | Fix pending | ||
| Ubuntu 14.04 | linux-manta | Fix pending | ||
| Debian 14 | linux | Fixed | 4.9.18-1 | DEBIAN-CVE-2017-7308 |
| Debian 13 | linux | Fixed | 4.9.18-1 | DEBIAN-CVE-2017-7308 |
| Debian 12 | linux | Fixed | 4.9.18-1 | DEBIAN-CVE-2017-7308 |
| Red Hat Enterprise Linux 7 | kernel | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-abi-whitelists | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-bootwrapper | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-debug | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-debug-devel | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-debuginfo-common-ppc64 | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-debuginfo-common-ppc64le | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-debuginfo-common-s390x | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-debuginfo-common-x86_64 | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-devel | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-doc | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-headers | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-kdump | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-kdump-devel | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-tools | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-tools-libs | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | kernel-tools-libs-devel | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | perf | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 7 | python-perf | Fixed | 0:3.10.0-514.21.1.el7 | RHSA-2017:1308 |
| Red Hat Enterprise Linux 6 | kernel | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-abi-whitelists | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-bootwrapper | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-debug | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-debug-devel | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-debuginfo-common-i686 | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-debuginfo-common-ppc64 | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-debuginfo-common-s390x | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-debuginfo-common-x86_64 | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-devel | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-doc | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-firmware | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-headers | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-kdump | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | kernel-kdump-devel | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | perf | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 6 | python-perf | Fixed | 0:2.6.32-754.el6 | RHSA-2018:1854 |
| Red Hat Enterprise Linux 5 | kernel | Not affected |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2017:1308 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:1854 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:1298 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:1297 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2017:1308
- https://googleprojectzero.blogspot.com/2017/05/exploiting-linux-kernel-via-packet.html
- https://source.android.com/security/bulletin/2017-07-01
- https://access.redhat.com/errata/RHSA-2018:1854
- http://www.securityfocus.com/bid/97234
- https://patchwork.ozlabs.org/patch/744812/
- https://www.exploit-db.com/exploits/41994/
- https://patchwork.ozlabs.org/patch/744813/
- https://www.exploit-db.com/exploits/44654/
- https://patchwork.ozlabs.org/patch/744811/
- https://access.redhat.com/errata/RHSA-2017:1298
- https://access.redhat.com/errata/RHSA-2017:1297
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.