cve.bz

CVE-2018-18397 Incorrect Authorization

5.5 mediumExploit referenceEPSS 0.5%Fix available

Medium (5.5). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
The userfaultfd implementation in the Linux kernel before 4.19.7 mishandles access control for certain UFFDIO_ ioctl calls, as demonstrated by allowing local users to write data into holes in a tmpfs file (if the user has read-only access to that file, and that file contains holes), related to fs/userfaultfd.c and mm/userfaultfd.c.

Severity

CVSS 3.0

5.5 medium
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 44th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-18397 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-18397?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-18397?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-18397 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelbefore 4.19.7
redhat:openshift_container_platform3.11
redhat:virtualization_host4.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.4
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_eus7.4
redhat:enterprise_linux_server_eus7.5
redhat:enterprise_linux_server_eus7.6
redhat:enterprise_linux_server_tus7.4
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_workstation7.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux4.19.9-1DEBIAN-CVE-2018-18397
Ubuntu14.04:LTSlinux-azure4.15.0-1040.44~14.04.1UBUNTU-CVE-2018-18397 USN-3901-2
Ubuntu16.04:LTSlinux-aws-hwe4.15.0-1033.35~16.04.1UBUNTU-CVE-2018-18397 USN-3901-2
Ubuntu16.04:LTSlinux-azure4.15.0-1040.44UBUNTU-CVE-2018-18397 USN-3901-2
Ubuntu16.04:LTSlinux-gcp4.15.0-1028.29~16.04.1UBUNTU-CVE-2018-18397 USN-3901-2
Ubuntu16.04:LTSlinux-hwe4.15.0-46.49~16.04.1UBUNTU-CVE-2018-18397 USN-3901-2
Ubuntu16.04:LTSlinux-oracle4.15.0-1009.11~16.04.1UBUNTU-CVE-2018-18397 USN-3901-2
Ubuntu18.04:LTSlinux4.15.0-46.49UBUNTU-CVE-2018-18397 USN-3901-1
Ubuntu18.04:LTSlinux-aws4.15.0-1033.35UBUNTU-CVE-2018-18397 USN-3901-1
Ubuntu18.04:LTSlinux-azure4.18.0-1013.13~18.04.1UBUNTU-CVE-2018-18397 USN-3903-2
Ubuntu18.04:LTSlinux-gcp4.15.0-1028.29UBUNTU-CVE-2018-18397 USN-3901-1
Ubuntu18.04:LTSlinux-gcp-edge4.18.0-1007.8~18.04.1UBUNTU-CVE-2018-18397
Ubuntu18.04:LTSlinux-hwe4.18.0-16.17~18.04.1UBUNTU-CVE-2018-18397 USN-3903-2
4 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::workstationperf, kernel, bpftool and 16 more0:3.10.0-957.5.1.el7RHSA-2019:0163
Red Hatenterprise_linux:7::serverperf, kernel, bpftool and 23 more0:3.10.0-957.5.1.el7RHSA-2019:0163
Red Hatenterprise_linux:7::serverperf, kernel, kernel-alt and 17 more0:4.14.0-115.7.1.el7aRHSA-2019:0831
Red Hatrhel_eus:7.4::computenodeperf, kernel, kernel-doc and 15 more0:3.10.0-693.44.1.el7RHSA-2019:0324
Red Hatrhel_eus:7.4::serverperf, kernel, kernel-doc and 22 more0:3.10.0-693.44.1.el7RHSA-2019:0324
Red Hatrhel_eus:7.5::computenodeperf, kernel, kernel-doc and 15 more0:3.10.0-862.27.1.el7RHSA-2019:0202
Red Hatrhel_eus:7.5::serverperf, kernel, kernel-doc and 22 more0:3.10.0-862.27.1.el7RHSA-2019:0202
SUSELinux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4kernel-syms, kernel-source, kernel-default4.12.14-95.6.1SUSE-SU-2019:0196-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Workstation Extension 12 SP4kernel-default4.12.14-95.6.1SUSE-SU-2019:0196-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Live Patching 15, Linux Enterprise Module for Legacy 15 and 1 morekernel-default4.12.14-25.28.1SUSE-SU-2019:0224-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_21-6.3.1SUSE-SU-2019:0196-1
SUSELinux Enterprise Live Patching 15kernel-livepatch-SLE15_Update_81-1.3.1SUSE-SU-2019:0224-1
SUSELinux Enterprise Module for Basesystem 15kernel-source, kernel-default, kernel-zfcpdump4.12.14-25.28.1SUSE-SU-2019:0224-1
SUSELinux Enterprise Module for Development Tools 15kernel-docs, kernel-syms, kernel-source and 2 more4.12.14-25.28.1SUSE-SU-2019:0224-1
SUSELinux Enterprise Module for Public Cloud 15kernel-azure, kernel-syms-azure, kernel-source-azure4.12.14-5.19.1SUSE-SU-2019:0150-1
SUSELinux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4kernel-azure, kernel-syms-azure, kernel-source-azure4.12.14-6.6.2SUSE-SU-2019:0222-1
SUSELinux Enterprise Software Development Kit 12 SP4kernel-docs, kernel-obs-build4.12.14-95.6.1SUSE-SU-2019:0196-1
openSUSELeap 15.0kernel-source4.12.14-lp150.12.45.1openSUSE-SU-2019:0065-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7kernel-0:3.10.0-957.5.1.el7Fixed 2019-01-29RHSA-2019:0163
Red Hat Enterprise Linux 7kernel-alt-0:4.14.0-115.7.1.el7aFixed 2019-04-23RHSA-2019:0831
Red Hat Enterprise Linux 7.4 Extended Update Supportkernel-0:3.10.0-693.44.1.el7Fixed 2019-02-12RHSA-2019:0324
Red Hat Enterprise Linux 7.5 Extended Update Supportkernel-0:3.10.0-862.27.1.el7Fixed 2019-01-29RHSA-2019:0202
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise MRG 2kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-18397.

References

Check your stackJSON