CVE-2018-18281Incomplete Cleanup in Kernel

Severity
7.8HIGHNVD
OSV6.5OSV5.5
EPSS
0.4%
top 37.88%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 30
Latest updateFeb 20

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.

CVSS vector

CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 1.8 | Impact: 5.9

Affected Packages5 packages

NVDlinux/linux_kernel3.24.9.135+3
Debianlinux/linux_kernel< 4.18.20-1+3
Ubuntulinux/linux_kernel< 3.13.0-165.215+2
debiandebian/linux< linux 4.18.20-1 (bookworm)

Also affects: Debian Linux 8.0, Ubuntu Linux 12.04, 14.04, 16.04, 18.04, 18.10

Patches

🔴Vulnerability Details

10
GHSA
GHSA-gffw-ppmc-p7r6: Since Linux kernel version 32022-05-13
OSV
qtbase-opensource-src vulnerabilities2020-02-10
OSV
linux-azure vulnerabilities2019-02-07
OSV
linux-aws, linux-gcp, linux-kvm, linux-oem, linux-raspi2 vulnerabilities2019-02-04
OSV
linux-hwe, linux-aws-hwe, linux-gcp vulnerabilities2019-02-04

📋Vendor Advisories

12
Ubuntu
Linux kernel (Azure) vulnerabilities2019-02-07
Ubuntu
Linux kernel (Trusty HWE) vulnerabilities2019-02-04
Ubuntu
Linux kernel (AWS, GCP, KVM, OEM, Raspberry Pi 2) vulnerabilities2019-02-04
Ubuntu
Linux kernel vulnerabilities2019-02-04
Ubuntu
Linux kernel (HWE) vulnerabilities2019-02-04

📄Research Papers

2
arXiv
Programmable System Call Security with eBPF2023-02-20
arXiv
Timeloops: Automatic System Call Policy Learning for Containerized Microservices2022-09-26

💬Community

2
Bugzilla
CVE-2018-18281 kernel: TLB flush happens too late on mremap [fedora-all]2018-11-09
Bugzilla
CVE-2018-18281 kernel: TLB flush happens too late on mremap2018-11-01