Vulnerability in Linux Kernel
CVE-2018-18281
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.011, 66.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Linux Kernel
- Canonical Ubuntu Linux — versions 12.04, 14.04, 16.04
- Debian Linux — versions 8.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 16 other repositories (ARPSyndicate/cvemon, jiayy/android_vuln_poc-exp, kdn111/linux-kernel-exploitation, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- packetstormsecurity.com/files/150001/Linux-mremap-TLB-Flush-Too-Late.html (Patch, VDB Entry, Third Party Advisory)
- USN-3835-1 (vendor-advisory, Third Party Advisory)
- cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.16 (Patch, Vendor Advisory)
- USN-3880-1 (vendor-advisory, Third Party Advisory)
- USN-3871-5 (vendor-advisory, Third Party Advisory)
- USN-3871-4 (vendor-advisory, Third Party Advisory)
- [oss-security] 20181029 Linux kernel: TLB flush happens too late on mremap (CVE-2018-18281; fixed in 4.9.135, 4.14.78, 4.18.16, 4.19) (mailing-list, Patch, Mailing List, Third Party Advisory)
- USN-3880-2 (vendor-advisory, Third Party Advisory)
- USN-3832-1 (vendor-advisory, Third Party Advisory)
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/ (Patch, Vendor Advisory)