1. CVE archive
  2. 2018
  3. CVE-2018-18281

CVE-2018-18281

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

Description

Since Linux kernel version 3.2, the mremap() syscall performs TLB flushes after dropping pagetable locks. If a syscall such as ftruncate() removes entries from the pagetables of a task that is in the middle of mremap(), a stale TLB entry can remain for a short time that permits access to a physical page after it has been released back to the page allocator and reused. This is fixed in the following kernel versions: 4.9.135, 4.14.78, 4.18.16, 4.19.

Affected products

VendorProductVersionPlatform
canonical ubuntu linux 12.04 –
canonical ubuntu linux 14.04 –
canonical ubuntu linux 16.04 –
canonical ubuntu linux 18.04 –
canonical ubuntu linux 18.10 –
debian debian linux 8.0 –
linux linux kernel >= 3.2 < 4.9.135 –
linux linux kernel >= 4.9.136 < 4.14.78 –
linux linux kernel >= 4.14.79 < 4.18.16 –
linux linux kernel >= 4.18.17 < 4.19 –
All 24,148 Linux Kernel vulnerabilities

Vulnerability type

CWE-459 Incomplete Cleanup

The product does not properly clean up and remove temporary or supporting resources after they have been used.

Impact on systems

ScopeImpact
Other, Confidentiality, Integrity Other, Read Application Data, Modify Application Data, DoS: Resource Consumption (Other)
It is possible to overflow the number of temporary files because directories typically have limits on the number of files allowed. This could create a denial of service problem.

How to prevent it

Architecture and Design · Implementation Temporary files and other supporting resources should be deleted/released immediately after they are no longer needed.

All 257 CWE-459 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org