CVE-2018-18397: Medium severity Linux Linux kernel vulnerability

Published Oct 22, 2018
·
Updated

A flaw was found in the Linux kernel with files on tmpfs and hugetlbfs. An attacker is able to bypass file permissions on filesystems mounted with tmpfs/hugetlbs to modify a file and possibly disrupt normal system behaviour.

At this time there is an understanding there is no crash or priviledge escalation but the impact of modifications on these filesystems of files in production systems may have adverse affects.

A suggested upstream patch:

https://lore.kernel.org/lkml/20181126173452.26955-1-aarcange@redhat.com/T/#u

An upstream patchset:

9e368259ad988356c4c95150fafd1a06af095d98 userfaultfd: use ENOENT instead of EFAULT if the atomic copy user fails 5b51072e97d587186c2f5390c8c9c1fb7e179505 userfaultfd: shmem: allocate anonymous memory for MAPPRIVATE shmem 29ec90660d68bbdd69507c1c8b4e33aa299278b1 userfaultfd: shmem/hugetlbfs: only allow to register VMMAYWRITE vmas e2a50c1f64145a04959df2442305d57307e5395a userfaultfd: shmem: add isize checks dcf7fe9d89763a28e0f43975b422ff141fe79e43 userfaultfd: shmem: UFFDIOCOPY: set the page dirty if VMWRITE is not set

Other sources

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.

Launchpad

Affected Software

18 affected componentsFixes available
Linux Linux kernel<4.19.7
redhat OpenShift Container Platform=3.11
redhat Virtualization Host=4.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=7.4
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Eus=7.4
redhat Enterprise Linux Server Eus=7.5
redhat Enterprise Linux Server Eus=7.6
redhat Enterprise Linux Server Tus=7.4
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Workstation=7.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=18.10
debian/linux
5.10.223-15.10.262-16.1.176-16.1.180-16.12.94-16.12.101-17.1.8-17.1.8-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.262-1Fixed in 6.1.176-1Fixed in 6.1.180-1Fixed in 6.12.94-1Fixed in 6.12.101-1Fixed in 7.1.8-1Fixed in 7.1.8-2
  2. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 4.19.7
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch dcf7fe9d89763a28e0f43975b422ff141fe79e43
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch e2a50c1f64145a04959df2442305d57307e5395a
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 29ec90660d68bbdd69507c1c8b4e33aa299278b1
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 5b51072e97d587186c2f5390c8c9c1fb7e179505
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 9e368259ad988356c4c95150fafd1a06af095d98

Event History

Oct 22, 2018
Data Sourced
via Red Hat·08:12 AM
DescriptionSeverityAffected Software
Dec 12, 2018
CVE Published
via MITRE·07:00 AM
Data Sourced
via MITRE·07:00 AM
Description
Data Sourced
via NVD·10:29 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:56 PM
Description
Jul 4, 2026
Data Sourced
via Ubuntu·11:29 AM
RemedyDescriptionSeverityAffected Software
Aug 16, 2026
Data Sourced
via Debian·12:51 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-18397?

CVE-2018-18397 is considered a medium severity vulnerability that allows permission bypass on specific filesystems.

2

How do I fix CVE-2018-18397?

To mitigate CVE-2018-18397, upgrade your Linux kernel to one of the patched versions, such as 5.10.223-1 or 6.1.123-1.

3

What systems are affected by CVE-2018-18397?

CVE-2018-18397 affects various Linux distributions including Debian, Red Hat Enterprise Linux, and Ubuntu across specific versions.

4

Is there any immediate risk associated with CVE-2018-18397?

While CVE-2018-18397 does not cause system crashes, it can be exploited to modify files and disrupt normal system behavior.

5

How can I check if my system is vulnerable to CVE-2018-18397?

You can check if your system is vulnerable to CVE-2018-18397 by verifying the kernel version against the list of affected versions and checking for updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203