CVE-2018-15686: systemd: reexec state injection: fgets() on overlong lines leads to line splitting

Published Oct 15, 2018
·
Updated

A vulnerability in unitdeserialize of systemd allows an attacker to supply arbitrary state across systemd re-execution via NotifyAccess. This can be used to improperly influence systemd execution and possibly lead to root privilege escalation. Affected releases are systemd versions up to and including 239.

Other sources

systemd is vulnerable to line splitting via long lines read by fgets() in the unitdeserialize() function during daemon-reexec (e.g. during a package upgrade) allowing for state injection. Systemd services with NotifyAccess != none and malicious executables can exploit this vulnerability resulting corrupted process state.

Red Hat

Affected Software

7 affected componentsFixes available
debian/systemd
247.3-7+deb11u5247.3-7+deb11u6252.30-1~deb12u2256.6-1256.7-1
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=18.10
Debian Debian Linux=8.0
Systemd Project Systemd<=239
Oracle Communications Cloud Native Core Network Function Cloud Native Environment=1.4.0

Event History

Oct 15, 2018
Data Sourced
via Red Hat·02:12 AM
DescriptionSeverityAffected Software
Oct 26, 2018
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:52 PM
Description
Sep 14, 2024
Data Sourced
via Ubuntu·06:33 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-15686?

The severity of CVE-2018-15686 is high.

2

What is the vulnerability description of CVE-2018-15686?

CVE-2018-15686 is a vulnerability in unit_deserialize of systemd that allows an attacker to supply arbitrary state across systemd re-execution via NotifyAccess, possibly leading to root privilege escalation.

3

Which releases of systemd are affected by CVE-2018-15686?

Affected releases are systemd versions up to and including 229-4ubuntu21.8, 237-3ubuntu10.6, 239-7ubuntu10.3, and all versions listed for Debian.

4

How can I fix CVE-2018-15686?

To fix CVE-2018-15686, you should update systemd to version 229-4ubuntu21.9 or later for Ubuntu, and follow the recommended updates for Debian.

5

Where can I find more information about CVE-2018-15686?

You can find more information about CVE-2018-15686 on the MITRE CVE website, Ubuntu Security Notices, and NIST National Vulnerability Database.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203