CVE Vulnerabilities

CVE-2017-7308

Incorrect Conversion between Numeric Types

Published: Mar 29, 2017 | Modified: Apr 20, 2025
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.2 HIGH
AV:L/AC:L/Au:N/C:C/I:C/A:C
RedHat/V2
RedHat/V3
7 IMPORTANT
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Ubuntu
HIGH
root.io logo minimus.io logo echo.ai logo

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.

Weakness

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

Affected Software

NameVendorStart VersionEnd Version
Linux_kernelLinux2.6.27 (including)3.2.89 (excluding)
Linux_kernelLinux3.3 (including)3.10.107 (excluding)
Linux_kernelLinux3.11 (including)3.12.74 (excluding)
Linux_kernelLinux3.13 (including)3.16.44 (excluding)
Linux_kernelLinux3.17 (including)3.18.52 (excluding)
Linux_kernelLinux3.19 (including)4.1.41 (excluding)
Linux_kernelLinux4.2 (including)4.4.66 (excluding)
Linux_kernelLinux4.5 (including)4.9.26 (excluding)
Linux_kernelLinux4.10 (including)4.10.14 (excluding)
Red Hat Enterprise Linux 6RedHatkernel-0:2.6.32-754.el6*
Red Hat Enterprise Linux 7RedHatkernel-rt-0:3.10.0-514.21.1.rt56.438.el7*
Red Hat Enterprise Linux 7RedHatkernel-0:3.10.0-514.21.1.el7*
Red Hat Enterprise MRG 2RedHatkernel-rt-1:3.10.0-514.rt56.221.el6rt*
LinuxUbuntuesm-infra-legacy/trusty*
LinuxUbuntuesm-infra/xenial*
LinuxUbuntuprecise*
LinuxUbuntuprecise/esm*
LinuxUbuntutrusty*
LinuxUbuntutrusty/esm*
LinuxUbuntuupstream*
LinuxUbuntuvivid/ubuntu-core*
LinuxUbuntuxenial*
LinuxUbuntuyakkety*
Linux-armadaxpUbuntuprecise*
Linux-armadaxpUbuntuupstream*
Linux-awsUbuntuesm-infra/xenial*
Linux-awsUbuntuupstream*
Linux-awsUbuntuxenial*
Linux-azureUbuntuupstream*
Linux-euclidUbuntuupstream*
Linux-floUbuntutrusty*
Linux-floUbuntuupstream*
Linux-floUbuntuvivid/stable-phone-overlay*
Linux-floUbuntuxenial*
Linux-floUbuntuyakkety*
Linux-gcpUbuntuupstream*
Linux-gkeUbuntuupstream*
Linux-gkeUbuntuxenial*
Linux-goldfishUbuntutrusty*
Linux-goldfishUbuntuupstream*
Linux-goldfishUbuntuxenial*
Linux-goldfishUbuntuyakkety*
Linux-goldfishUbuntuzesty*
Linux-grouperUbuntutrusty*
Linux-grouperUbuntuupstream*
Linux-hweUbuntuesm-infra/xenial*
Linux-hweUbuntuupstream*
Linux-hweUbuntuxenial*
Linux-hwe-edgeUbuntuesm-infra/xenial*
Linux-hwe-edgeUbuntuupstream*
Linux-hwe-edgeUbuntuxenial*
Linux-kvmUbuntuupstream*
Linux-linaro-omapUbuntuprecise*
Linux-linaro-omapUbuntuupstream*
Linux-linaro-sharedUbuntuprecise*
Linux-linaro-sharedUbuntuupstream*
Linux-linaro-vexpressUbuntuprecise*
Linux-linaro-vexpressUbuntuupstream*
Linux-lts-quantalUbuntuprecise*
Linux-lts-quantalUbuntuprecise/esm*
Linux-lts-quantalUbuntuupstream*
Linux-lts-raringUbuntuprecise*
Linux-lts-raringUbuntuprecise/esm*
Linux-lts-raringUbuntuupstream*
Linux-lts-saucyUbuntuprecise*
Linux-lts-saucyUbuntuprecise/esm*
Linux-lts-saucyUbuntuupstream*
Linux-lts-trustyUbuntuprecise*
Linux-lts-trustyUbuntuprecise/esm*
Linux-lts-trustyUbuntuupstream*
Linux-lts-utopicUbuntutrusty*
Linux-lts-utopicUbuntuupstream*
Linux-lts-vividUbuntutrusty*
Linux-lts-vividUbuntutrusty/esm*
Linux-lts-vividUbuntuupstream*
Linux-lts-wilyUbuntutrusty*
Linux-lts-wilyUbuntuupstream*
Linux-lts-xenialUbuntuesm-infra-legacy/trusty*
Linux-lts-xenialUbuntutrusty*
Linux-lts-xenialUbuntutrusty/esm*
Linux-lts-xenialUbuntuupstream*
Linux-maguroUbuntutrusty*
Linux-maguroUbuntuupstream*
Linux-makoUbuntutrusty*
Linux-makoUbuntuupstream*
Linux-makoUbuntuvivid/stable-phone-overlay*
Linux-makoUbuntuxenial*
Linux-makoUbuntuyakkety*
Linux-mantaUbuntutrusty*
Linux-mantaUbuntuupstream*
Linux-oemUbuntuupstream*
Linux-qcm-msmUbuntuprecise*
Linux-qcm-msmUbuntuupstream*
Linux-raspi2Ubuntuupstream*
Linux-raspi2Ubuntuvivid/ubuntu-core*
Linux-raspi2Ubuntuxenial*
Linux-raspi2Ubuntuyakkety*
Linux-snapdragonUbuntuupstream*
Linux-snapdragonUbuntuxenial*
Linux-snapdragonUbuntuyakkety*
Linux-snapdragonUbuntuzesty*
Linux-ti-omap4Ubuntuprecise*
Linux-ti-omap4Ubuntuupstream*

Potential Mitigations

References