CVE-2018-18281 json
Since Linux kernel version 3.2, the mremap() syscall performs TLB flushes after dropping pagetable locks.
published 8y ago modified 4mo ago also EUVD-2018-10016
- cvss
- 7.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 66%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- linux linux_kernel 4.9.135, 4.14.78, 4.18.16, 4.19
- linux Debian 14, Debian 13, Debian 12 4.18.20-1
debian advisories DEBIAN-CVE-2018-18281
- linux Ubuntu 14.04 LTS 3.13.0-165.215
- linux Ubuntu 16.04 LTS 4.4.0-142.168
- linux Ubuntu 18.04 LTS 4.15.0-44.47
- linux-aws Ubuntu 14.04 LTS 4.4.0-1038.41
- linux-aws Ubuntu 16.04 LTS 4.4.0-1075.85
- linux-aws Ubuntu 18.04 LTS 4.15.0-1032.34
- linux-gcp Ubuntu 16.04 LTS 4.15.0-1027.28~16.04.1
- linux-gcp Ubuntu 18.04 LTS 4.15.0-1027.28
ubuntu advisories UBUNTU-CVE-2018-18281
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-alt RHEL 7 4.14.0-115.7.1.el7a
- perf RHEL 7 4.14.0-115.7.1.el7a
- kernel RHEL 7 4.14.0-115.7.1.el7a
- python-perf RHEL 7 4.14.0-115.7.1.el7a
- kernel-tools RHEL 7 4.14.0-115.7.1.el7a
- kernel-tools-libs RHEL 7 4.14.0-115.7.1.el7a
- kernel-bootwrapper RHEL 7 4.14.0-115.7.1.el7a
- kernel-abi-whitelists RHEL 7 4.14.0-115.7.1.el7a
red hat advisories RHSA-2019:0831RHSA-2019:2029RHSA-2020:0103RHSA-2019:2043RHSA-2020:0179RHSA-2020:0036
- kernel-ec2 SLE Module for Public Cloud 12 3.12.74-60.64.110.1
- kernel-syms SLES for SAP 12 SP2, SLES 12 SP2-LTSS, SLES 12 SP2-BCL +2 more 4.4.121-92.101.1
- kernel-source SLES for SAP 12 SP2, SLES 12 SP2-LTSS, SLES 12 SP2-BCL +2 more 4.4.121-92.101.1
- kernel-default SLES for SAP 12 SP2, SLES 12 SP2-LTSS, SLES 12 SP2-BCL +3 more 4.4.121-92.101.1
- kgraft-patch-SLE12-SP2_Update_27 SLES for SAP 12 SP2, SLES 12 SP2-LTSS, OpenStack Cloud 7 +1 more 1-3.3.1
- kernel-syms SLE Module for Development Tools 15 4.12.14-25.28.1
- kernel-source SLE Module for Development Tools 15, SLE Module for Basesystem 15 4.12.14-25.28.1
- kernel-default SLE Workstation Extension 15, SLE Module for Legacy 15, SLE Module for Basesystem 15 +2 more 4.12.14-25.28.1
suse advisories SUSE-SU-2019:1289-1SUSE-SU-2019:0439-1SUSE-SU-2019:0224-1SUSE-SU-2019:0222-1SUSE-SU-2019:13937-1SUSE-SU-2019:0150-1
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eb6… commit
- packetstormsecurity.com/files/150001/Linux-mremap-TLB-Flush-Too-Late.html advisory
- cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.16 advisory
- openwall.com/lists/oss-security/2018/10/29/5 advisory
- cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.14.78 advisory
- bugs.chromium.org/p/project-zero/issues/detail?id=1695 advisory
- cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.135 advisory
Is CVE-2018-18281 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-18281 updated cvss 7.8
kernel: TLB flush happens too late on mremap
-
Red Hat Enterprise Linux Client (v. 7) perf 3.10.0-1062.el7, kernel 3.10.0-1062.el7, bpftool 3.10.0-1062.el7, python-perf 3.10.0-1062.el7, kernel-tools 3.10.0-1062.el7, kernel-tools-libs 3.10.0-1062.el7, +2 more Red Hat Enterprise Linux Client Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-1062.el7 Red Hat Enterprise Linux ComputeNode (v. 7) perf 3.10.0-1062.el7, kernel 3.10.0-1062.el7, bpftool 3.10.0-1062.el7, python-perf 3.10.0-1062.el7, kernel-tools 3.10.0-1062.el7, kernel-tools-libs 3.10.0-1062.el7, +2 morefixed: vendor fix RHSA-2019:2029
-
Red Hat Enterprise Linux ComputeNode EUS (v. 7.5) perf 3.10.0-862.46.1.el7, kernel 3.10.0-862.46.1.el7, python-perf 3.10.0-862.46.1.el7, kernel-tools 3.10.0-862.46.1.el7, kernel-tools-libs 3.10.0-862.46.1.el7, kernel-abi-whitelists 3.10.0-862.46.1.el7, +1 morefixed: vendor fix RHSA-2020:0036
-
Red Hat Enterprise Linux ComputeNode EUS (v. 7.6) perf 3.10.0-957.43.1.el7, kernel 3.10.0-957.43.1.el7, bpftool 3.10.0-957.43.1.el7, python-perf 3.10.0-957.43.1.el7, kernel-tools 3.10.0-957.43.1.el7, kernel-tools-libs 3.10.0-957.43.1.el7, +2 morefixed: vendor fix RHSA-2020:0179
-
Red Hat Enterprise Linux ComputeNode Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-1062.el7fixed: vendor fix RHSA-2019:2029
-
Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5) kernel-debuginfo-common-x86_64 3.10.0-862.46.1.el7fixed: vendor fix RHSA-2020:0036
-
Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.6) kernel-debuginfo-common-x86_64 3.10.0-957.43.1.el7fixed: vendor fix RHSA-2020:0179
-
Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) perf 4.14.0-115.7.1.el7a, kernel 4.14.0-115.7.1.el7a, kernel-alt 4.14.0-115.7.1.el7a, python-perf 4.14.0-115.7.1.el7a, kernel-tools 4.14.0-115.7.1.el7a, kernel-tools-libs 4.14.0-115.7.1.el7a, +3 more Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) kernel-debuginfo-common-ppc64le 4.14.0-115.7.1.el7afixed: vendor fix RHSA-2019:0831
-
Red Hat Enterprise Linux for Real Time (v. 7) kernel-rt 3.10.0-1062.rt56.1022.el7, kernel-rt-trace 3.10.0-1062.rt56.1022.el7, kernel-rt-debuginfo-common-x86_64 3.10.0-1062.rt56.1022.el7 Red Hat Enterprise Linux for Real Time for NFV (v. 7) kernel-rt 3.10.0-1062.rt56.1022.el7, kernel-rt-kvm 3.10.0-1062.rt56.1022.el7, kernel-rt-trace 3.10.0-1062.rt56.1022.el7, kernel-rt-debug-kvm 3.10.0-1062.rt56.1022.el7, kernel-rt-trace-kvm 3.10.0-1062.rt56.1022.el7, kernel-rt-debuginfo-common-x86_64 3.10.0-1062.rt56.1022.el7fixed: vendor fix RHSA-2019:2043
show 13 moreshow fewer
-
Red Hat Enterprise Linux Server (v. 7) perf 3.10.0-1062.el7, kernel 3.10.0-1062.el7, bpftool 3.10.0-1062.el7, python-perf 3.10.0-1062.el7, kernel-kdump 3.10.0-1062.el7, kernel-tools 3.10.0-1062.el7, +7 morefixed: vendor fix RHSA-2019:2029
-
Red Hat Enterprise Linux Server AUS (v. 7.4) perf 3.10.0-693.62.1.el7, kernel 3.10.0-693.62.1.el7, python-perf 3.10.0-693.62.1.el7, kernel-tools 3.10.0-693.62.1.el7, kernel-tools-libs 3.10.0-693.62.1.el7, kernel-abi-whitelists 3.10.0-693.62.1.el7, +1 more Red Hat Enterprise Linux Server E4S (v. 7.4) perf 3.10.0-693.62.1.el7, kernel 3.10.0-693.62.1.el7, python-perf 3.10.0-693.62.1.el7, kernel-tools 3.10.0-693.62.1.el7, kernel-tools-libs 3.10.0-693.62.1.el7, kernel-bootwrapper 3.10.0-693.62.1.el7, +3 morefixed: vendor fix RHSA-2020:0103
-
Red Hat Enterprise Linux Server EUS (v. 7.5) perf 3.10.0-862.46.1.el7, kernel 3.10.0-862.46.1.el7, python-perf 3.10.0-862.46.1.el7, kernel-kdump 3.10.0-862.46.1.el7, kernel-tools 3.10.0-862.46.1.el7, kernel-tools-libs 3.10.0-862.46.1.el7, +6 morefixed: vendor fix RHSA-2020:0036
-
Red Hat Enterprise Linux Server EUS (v. 7.6) perf 3.10.0-957.43.1.el7, kernel 3.10.0-957.43.1.el7, bpftool 3.10.0-957.43.1.el7, python-perf 3.10.0-957.43.1.el7, kernel-kdump 3.10.0-957.43.1.el7, kernel-tools 3.10.0-957.43.1.el7, +7 morefixed: vendor fix RHSA-2020:0179
-
Red Hat Enterprise Linux Server Optional (v. 7) kernel-debuginfo-common-ppc64 3.10.0-1062.el7, kernel-debuginfo-common-x86_64 3.10.0-1062.el7, kernel-debuginfo-common-ppc64le 3.10.0-1062.el7fixed: vendor fix RHSA-2019:2029
-
Red Hat Enterprise Linux Server Optional AUS (v. 7.4) kernel-debuginfo-common-x86_64 3.10.0-693.62.1.el7 Red Hat Enterprise Linux Server Optional E4S (v. 7.4) kernel-debuginfo-common-x86_64 3.10.0-693.62.1.el7, kernel-debuginfo-common-ppc64le 3.10.0-693.62.1.el7fixed: vendor fix RHSA-2020:0103
-
Red Hat Enterprise Linux Server Optional EUS (v. 7.5) kernel-debuginfo-common-ppc64 3.10.0-862.46.1.el7, kernel-debuginfo-common-x86_64 3.10.0-862.46.1.el7, kernel-debuginfo-common-ppc64le 3.10.0-862.46.1.el7fixed: vendor fix RHSA-2020:0036
-
Red Hat Enterprise Linux Server Optional EUS (v. 7.6) kernel-debuginfo-common-ppc64 3.10.0-957.43.1.el7, kernel-debuginfo-common-x86_64 3.10.0-957.43.1.el7, kernel-debuginfo-common-ppc64le 3.10.0-957.43.1.el7fixed: vendor fix RHSA-2020:0179
-
Red Hat Enterprise Linux Server Optional TUS (v. 7.4) kernel-debuginfo-common-x86_64 3.10.0-693.62.1.el7 Red Hat Enterprise Linux Server TUS (v. 7.4) perf 3.10.0-693.62.1.el7, kernel 3.10.0-693.62.1.el7, python-perf 3.10.0-693.62.1.el7, kernel-tools 3.10.0-693.62.1.el7, kernel-tools-libs 3.10.0-693.62.1.el7, kernel-abi-whitelists 3.10.0-693.62.1.el7, +1 morefixed: vendor fix RHSA-2020:0103
-
Red Hat Enterprise Linux Workstation (v. 7) perf 3.10.0-1062.el7, kernel 3.10.0-1062.el7, bpftool 3.10.0-1062.el7, python-perf 3.10.0-1062.el7, kernel-tools 3.10.0-1062.el7, kernel-tools-libs 3.10.0-1062.el7, +2 more Red Hat Enterprise Linux Workstation Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-1062.el7fixed: vendor fix RHSA-2019:2029
-
Red Hat MRG Realtime for RHEL 6 Server v.2 kernel-rt 3.10.0-693.62.1.rt56.659.el6rt, kernel-rt-trace 3.10.0-693.62.1.rt56.659.el6rt, kernel-rt-vanilla 3.10.0-693.62.1.rt56.659.el6rt, kernel-rt-firmware 3.10.0-693.62.1.rt56.659.el6rt, kernel-rt-debuginfo-common-x86_64 3.10.0-693.62.1.rt56.659.el6rtfixed: vendor fix RHSA-2020:0100
-
Red Hat Virtualization 4.2 Hypervisor for RHEL 7.6 EUS perf 3.10.0-957.43.1.el7, python-perf 3.10.0-957.43.1.el7fixed: vendor fix RHSA-2020:0179
-
Red Hat Enterprise Linux 5 kernel Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.10% chance of exploitation in the next 30 days, higher than 66% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugs.chromium.org https://bugs.chromium.org/p/project-zero/issues/detail?id=1695 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-459 Incomplete Cleanup
- Technology feeds
References
-
git.kernel.org
/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eb66ae030829605d61fbef1909ce310e29f78821
patch, vendor-advisory
-
packetstormsecurity.com
/files/150001/Linux-mremap-TLB-Flush-Too-Late.html
patch, third-party-advisory, vdb-entry
-
cdn.kernel.org
/pub/linux/kernel/v4.x/ChangeLog-4.18.16
patch, vendor-advisory
-
openwall.com
/lists/oss-security/2018/10/29/5
mailing-list, patch, third-party-advisory
-
cdn.kernel.org
/pub/linux/kernel/v4.x/ChangeLog-4.14.78
patch, vendor-advisory
-
bugs.chromium.org
/p/project-zero/issues/detail?id=1695
exploit, patch, third-party-advisory
-
cdn.kernel.org
/pub/linux/kernel/v4.x/ChangeLog-4.9.135
patch, vendor-advisory
-
usn.ubuntu.com
/3835-1/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3880-1/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3871-5/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3871-4/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3880-2/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3832-1/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3871-1/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3871-3/
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:0831
vendor-advisory
-
access.redhat.com
/errata/RHSA-2019:2043
vendor-advisory
-
access.redhat.com
/errata/RHSA-2019:2029
vendor-advisory
-
access.redhat.com
/errata/RHSA-2020:0036
vendor-advisory
-
access.redhat.com
/errata/RHSA-2020:0100
vendor-advisory
-
access.redhat.com
/errata/RHSA-2020:0103
vendor-advisory
-
access.redhat.com
/errata/RHSA-2020:0179
vendor-advisory
-
securityfocus.com
/bid/105761
vdb-entry, third-party-advisory
-
securityfocus.com
/bid/106503
vdb-entry, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2019/03/msg00017.html
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2019/03/msg00034.html
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2019/04/msg00004.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2018-18281
- NVD CVE-2018-18281
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.