All reports
Medium

systemd: Mishandled symlinks in systemd-tmpfiles allows local users to obtain ownership of arbitrary files

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-6954

Probability of exploitation in the next 30 days: 0.53%

FIRST EPSS · 2026-11-24

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.

It has been discovered that systemd-tmpfiles mishandles symbolic links present in non-terminal path components. In some configurations a local user could use this vulnerability to get access to arbitrary files when the systemd-tmpfiles command is run.