CVE-2018-1049 Race condition in systemd

Medium 5.9 Published Updated

A race condition in systemd automount units can cause processes to hang, leading to a denial of service until mount points are unmounted.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-1049?

CVE-2018-1049 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 16 Feb 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In systemd prior to 234 a race condition exists between .mount and .automount units such that automount requests from kernel may not be serviced by systemd resulting in kernel holding the mountpoint and any processes that try to use said mount will hang. A race condition like this may lead to denial of service, until mount points are unmounted.

Weakness: CWE-362

Which versions are affected by CVE-2018-1049?

It affects 11 products.

Linux distribution packages (40)
libgudev1 Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
libgudev1-devel Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
systemd Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
systemd-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
systemd-devel Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
systemd-journal-gateway Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
systemd-libs Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
systemd-networkd Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
systemd-python Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
systemd-resolved Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
systemd-sysv Red Hat:enterprise_linux:7::clientAll versions0:219-42.el7_4.7
libgudev1 Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
libgudev1-devel Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
systemd Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
systemd-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
systemd-devel Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
systemd-journal-gateway Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
systemd-libs Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
systemd-networkd Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
systemd-python Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
systemd-resolved Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
systemd-sysv Red Hat:enterprise_linux:7::computenodeAll versions0:219-42.el7_4.7
libgudev1 Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
libgudev1-devel Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
systemd Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
systemd-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
systemd-devel Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
systemd-journal-gateway Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
systemd-libs Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
systemd-networkd Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
systemd-python Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
systemd-resolved Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
systemd-sysv Red Hat:enterprise_linux:7::serverAll versions0:219-42.el7_4.7
libgudev1 Red Hat:enterprise_linux:7::workstationAll versions0:219-42.el7_4.7
libgudev1-devel Red Hat:enterprise_linux:7::workstationAll versions0:219-42.el7_4.7
systemd Red Hat:enterprise_linux:7::workstationAll versions0:219-42.el7_4.7
systemd-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:219-42.el7_4.7
systemd-devel Red Hat:enterprise_linux:7::workstationAll versions0:219-42.el7_4.7
systemd-journal-gateway Red Hat:enterprise_linux:7::workstationAll versions0:219-42.el7_4.7
systemd-libs Red Hat:enterprise_linux:7::workstationAll versions0:219-42.el7_4.7

Products include Canonical Ubuntu Linux, Debian Debian Linux, Redhat Enterprise Linux, Redhat Enterprise Linux Aus, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server and 5 more.

How do I fix CVE-2018-1049?

Upgrade to a fixed version.

Is CVE-2018-1049 being exploited?

There is no known exploitation of CVE-2018-1049 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-1049, GHSA-4pg2-ppcx-jh29, MGASA-2018-0094, RHSA-2018:0260, UBUNTU-CVE-2018-1049.

Is CVE-2018-1049 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free