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

CVE-2017-18017

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

Description

The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a denial of service (use-after-free and memory corruption) or possibly have unspecified other impact by leveraging the presence of xt_TCPMSS in an iptables action.

Affected products

VendorProductVersionPlatform
arista eos 4.20.1fx-virtual-router –
canonical ubuntu linux 12.04 –
canonical ubuntu linux 14.04 –
debian debian linux 7.0 –
debian debian linux 8.0 –
f5 arx >= 6.2.0 <= 6.4.0 –
linux linux kernel >= 3.2 < 3.2.99 –
linux linux kernel >= 3.3 < 3.10.108 –
linux linux kernel >= 3.11 < 3.16.54 –
linux linux kernel >= 3.17 < 3.18.60 –
linux linux kernel >= 3.19 < 4.1.43 –
linux linux kernel >= 4.2 < 4.4.76 –
linux linux kernel >= 4.5 < 4.9.36 –
linux linux kernel >= 4.10 < 4.11 –
openstack cloud magnum orchestration 7 –
opensuse leap 42.3 –
redhat enterprise linux desktop 6.0 –
redhat enterprise linux desktop 7.0 –
redhat enterprise linux eus 7.3 –
redhat enterprise linux eus 7.4 –
redhat enterprise linux eus 7.6 –
redhat enterprise linux eus 7.7 –
redhat enterprise linux for real time 7 –
redhat enterprise linux for real time for nfv 7 –
redhat enterprise linux server 6.0 –
redhat enterprise linux server 7.0 –
redhat enterprise linux server aus 7.3 –
redhat enterprise linux server aus 7.4 –
redhat enterprise linux server aus 7.6 –
redhat enterprise linux server aus 7.7 –
redhat enterprise linux server tus 7.3 –
redhat enterprise linux server tus 7.4 –
redhat enterprise linux server tus 7.6 –
redhat enterprise linux server tus 7.7 –
redhat enterprise linux workstation 6.0 –
redhat enterprise linux workstation 7.0 –
redhat mrg realtime 2.0 –
suse caas platform all –
suse linux enterprise debuginfo 11 sp3 –
suse linux enterprise debuginfo 11 sp4 –
suse linux enterprise desktop 12 sp2 –
suse linux enterprise desktop 12 sp3 –
suse linux enterprise high availability 12 sp2 –
suse linux enterprise high availability 12 sp3 –
suse linux enterprise high availability extension 11 sp4 –
suse linux enterprise live patching 12 –
suse linux enterprise live patching 12 sp3 –
suse linux enterprise module for public cloud 12 –
suse linux enterprise point of sale 11 sp3 –
suse linux enterprise real time extension 11 sp4 –
suse linux enterprise real time extension 12 sp2 –
suse linux enterprise real time extension 12 sp3 –
suse linux enterprise server 11 sp3 –
suse linux enterprise server 11 sp4 –
suse linux enterprise server 12 –
suse linux enterprise server 12 sp1 sap
suse linux enterprise server 12 sp1 –
suse linux enterprise server 12 sp2 –
suse linux enterprise server 12 sp2 –
suse linux enterprise server 12 sp3 –
suse linux enterprise software development kit 11 sp4 –
suse linux enterprise software development kit 12 sp2 –
suse linux enterprise software development kit 12 sp3 –
suse linux enterprise workstation extension 12 sp2 –
suse linux enterprise workstation extension 12 sp3 –
suse openstack cloud 6 –
All 24,148 Linux Kernel vulnerabilities

Vulnerability type

CWE-416 Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

Impact on systems

ScopeImpact
Integrity Modify Memory
The use of previously freed memory may corrupt valid data, if the memory area in question has been allocated and used properly elsewhere.
Availability DoS: Crash, Exit, or Restart
If chunk consolidation occurs after the use of previously freed data, the process may crash when invalid data is used as chunk information.
Confidentiality Read Memory
Read operations on freed memory can sometimes leak sensitive information instead of causing a crash
Integrity, Confidentiality, Availability Execute Unauthorized Code or Commands
If malicious data is entered before chunk consolidation can take place, it may be possible to take advantage of a write-what-where primitive to execute arbitrary code. If the newly allocated data happens to hold a class, in C++ for example, various function pointers may be scattered within the heap data. If one of these function pointers is overwritten with an address to valid shellcode, execution of arbitrary code can be achieved.

How to prevent it

Architecture and Design · Language Selection Choose a language that provides automatic memory management.
Implementation · Attack Surface Reduction When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

All 9,640 CWE-416 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org