Skip to content
OpenAdvisories
High · 7.8 CVE-2018-6954 EUVD-2018-18698GHSA-fgm4-rh7c-g9fg

systemd-tmpfiles in systemd through 237 mishandles symlinks present in non-terminal path components, which allows local users to obtain own…

Published Feb 13, 2018 · Updated Jun 9, 2025 · Assigned by mitre

Description

systemd-tmpfiles in systemd through 237 mishandles symlinks present in non-terminal path components, which allows local users to obtain ownership of arbitrary files via vectors involving creation of a directory and a file under that directory, and later replacing that directory with a symlink. This occurs even if the fs.protected_symlinks sysctl is turned on.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 systemd 238-1 —
Debian 13 systemd 238-1 —
Debian 12 systemd 238-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS systemd 237-3ubuntu10.9 USN-3816-2, USN-3816-1
Ubuntu 16.04 LTS systemd 229-4ubuntu21.15 USN-3816-2, USN-3816-1
ReleasePackageFixed inAdvisory
SLES 15 systemd 234-24.20.1 SUSE-SU-2019:0137-1
SLES 12 SP4 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SLES 12 SP3 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SLES 12 SP2 systemd 228-150.66.4 SUSE-SU-2019:1265-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP4 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SLES for SAP 12 SP3 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SLES for SAP 12 SP2 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SUSE OpenStack Cloud 7 systemd 228-150.66.4 SUSE-SU-2019:1265-1
SUSE Enterprise Storage 4 systemd 228-150.66.4 SUSE-SU-2019:1265-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed systemd 249.4-2.2 openSUSE-SU-2024:11420-1
openSUSE Leap 15.0 systemd +1 234-lp150.20.12.1 openSUSE-SU-2019:0098-1

Advisories 6

References