CVE-2017-18078 Privilege escalation in n/a

High 7.8 Published Updated

Local attackers can bypass access restrictions and modify file ownership, such as /etc/passwd, if protected hardlinks are disabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2017-18078?

CVE-2017-18078 is a high-severity vulnerability in Debian Debian Linux, published on 29 Jan 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

systemd-tmpfiles in systemd before 237 attempts to support ownership/permission changes on hardlinked files even if the fs.protected_hardlinks sysctl is turned off, which allows local users to bypass intended access restrictions via vectors involving a hard link to a file for which the user lacks write access, as demonstrated by changing the ownership of the /etc/passwd file.

Weakness: CWE-59

Which versions are affected by CVE-2017-18078?

It affects 3 products.

Linux distribution packages (9)
systemd SUSE:Linux Enterprise Desktop 12 SP2All versions228-150.32.1
systemd SUSE:Linux Enterprise Desktop 12 SP3All versions228-150.32.1
systemd SUSE:Linux Enterprise Server 12 SP2All versions228-150.32.1
systemd SUSE:Linux Enterprise Server 12 SP3All versions228-150.32.1
systemd SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2All versions228-150.32.1
systemd SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions228-150.32.1
systemd SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions228-150.32.1
systemd SUSE:Linux Enterprise Software Development Kit 12 SP2All versions228-150.32.1
systemd SUSE:Linux Enterprise Software Development Kit 12 SP3All versions228-150.32.1

Products include Debian Debian Linux, Opensuse Leap, Systemd Project Systemd.

How do I fix CVE-2017-18078?

Upgrade to a fixed version.

Is CVE-2017-18078 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-18078, GHSA-g2wx-phqf-j84q, SUSE-SU-2018:0546-1, UBUNTU-CVE-2017-18078.

Is CVE-2017-18078 in your software?

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

Check your SBOMs for free