1. CVE archive
  2. 2017
  3. CVE-2017-7308

CVE-2017-7308

7.8 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 7.8 – High

Description

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.

Affected products

VendorProductVersionPlatform
linux linux kernel >= 2.6.27 < 3.2.89 –
linux linux kernel >= 3.3 < 3.10.107 –
linux linux kernel >= 3.11 < 3.12.74 –
linux linux kernel >= 3.13 < 3.16.44 –
linux linux kernel >= 3.17 < 3.18.52 –
linux linux kernel >= 3.19 < 4.1.41 –
linux linux kernel >= 4.2 < 4.4.66 –
linux linux kernel >= 4.5 < 4.9.26 –
linux linux kernel >= 4.10 < 4.10.14 –
All 24,148 Linux Kernel vulnerabilities

Vulnerability type

CWE-681 Incorrect Conversion between Numeric Types

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.

Impact on systems

ScopeImpact
Other, Integrity Unexpected State, Quality Degradation
The program could wind up using the wrong number and generate incorrect results. If the number is used to allocate resources or make a security decision, then this could introduce a vulnerability.

How to prevent it

Implementation Avoid making conversion between numeric types. Always check for the allowed ranges.

All 123 CWE-681 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org