1. CVE archive
  2. 2016
  3. CVE-2016-4805

CVE-2016-4805

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

Use-after-free vulnerability in drivers/net/ppp/ppp_generic.c in the Linux kernel before 4.5.2 allows local users to cause a denial of service (memory corruption and system crash, or spinlock) or possibly have unspecified other impact by removing a network namespace, related to the ppp_register_net_channel and ppp_unregister_channel functions.

Affected products

VendorProductVersionPlatform
canonical ubuntu linux 12.04 –
linux linux kernel >= 2.6.30 < 3.2.80 –
linux linux kernel >= 3.3 < 3.10.102 –
linux linux kernel >= 3.11 < 3.12.59 –
linux linux kernel >= 3.13 < 3.14.67 –
linux linux kernel >= 3.15 < 3.16.35 –
linux linux kernel >= 3.17 < 3.18.37 –
linux linux kernel >= 3.19 < 4.1.28 –
linux linux kernel >= 4.2 < 4.4.8 –
linux linux kernel >= 4.5 < 4.5.2 –
novell opensuse leap 42.1 –
novell suse linux enterprise desktop 12.0 –
novell suse linux enterprise desktop 12.0 sp1 –
novell suse linux enterprise live patching 12.0 –
novell suse linux enterprise module for public cloud 12.0 –
novell suse linux enterprise real time extension 11.0 sp4 –
novell suse linux enterprise real time extension 12.0 sp1 –
novell suse linux enterprise server 11.0 sp4 –
novell suse linux enterprise server 12.0 –
novell suse linux enterprise server 12.0 sp1 –
novell suse linux enterprise software development kit 11.0 sp4 –
novell suse linux enterprise software development kit 12.0 –
novell suse linux enterprise software development kit 12.0 sp1 –
novell suse linux enterprise workstation extension 12.0 –
novell suse linux enterprise workstation extension 12.0 sp1 –
oracle linux 6 –
redhat enterprise linux 6.0 –
redhat enterprise linux 7.0 –
All 24,148 Linux Kernel vulnerabilities
All 230 Oracle Linux 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