Related Vulnerabilities: CVE-2018-6954  

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.

Severity Medium

Remote No

Type Arbitrary file overwrite

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.

AVG-615 systemd 239.2-1 240.0-3 Medium Fixed

08 Jan 2019 ASA-201901-4 AVG-615 systemd Medium multiple issues

https://github.com/systemd/systemd/issues/7986
https://github.com/systemd/systemd/pull/8822