CVE-2018-6954

NameCVE-2018-6954
Descriptionsystemd-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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severityhigh (attack range: local)
Debian Bugs890779

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
systemd (PTS)jessie215-17+deb8u7vulnerable
stretch232-25+deb9u4vulnerable
buster, sid239-9fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
systemdsource(unstable)238-1high890779
systemdsourcewheezy(not affected)

Notes

[stretch] - systemd <postponed> (Minor issue, revisit if/when fixed upstream)
[jessie] - systemd <postponed> (Minor issue, revisit if/when fixed upstream)
[wheezy] - systemd <not-affected> (/etc/tmpfiles.d not supported in Wheezy)
https://github.com/systemd/systemd/issues/7986
https://github.com/systemd/systemd/pull/8822

Search for package or bug name: Reporting problems