CVE-2018-16865: Buffer Overflow

Published Nov 27, 2018
·
Updated

A flaw was found in systemd-journald. An uncontrolled alloca() by writing a crafted message to /run/systemd/journal/socket that results in a stack buffer overflow. This can lead to a denial of service attack or arbitrary code execution in some cases.

Other sources

An allocation of memory without limits, that could result in the stack clashing with another memory region, was discovered in systemd-journald when many entries are sent to the journal socket. A local attacker, or a remote one if systemd-journal-remote is used, may use this flaw to crash systemd-journald or execute code with journald privileges. Versions through v240 are vulnerable.

Ubuntu

Affected Software

25 affected componentsFixes available
debian/systemd<=240-2, <=43-1, <=232-25+deb9u6
240-4232-25+deb9u7
ubuntu/systemd<237-3ubuntu10.11
237-3ubuntu10.11
ubuntu/systemd<239-7ubuntu10.6
239-7ubuntu10.6
ubuntu/systemd<229-4ubuntu21.15
229-4ubuntu21.15
debian/systemd
247.3-7+deb11u5252.26-1~deb12u2256.4-3
Systemd Project Systemd<=240
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=7.3
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Eus=7.5
redhat Enterprise Linux Server Eus=7.6
redhat Enterprise Linux Server Tus=7.3
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Workstation=7.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=18.10
Oracle Communications Session Border Controller=8.0.0
Oracle Communications Session Border Controller=8.1.0
Oracle Communications Session Border Controller=8.2.0
Oracle Enterprise Communications Broker=3.0.0
Oracle Enterprise Communications Broker=3.1.0

Event History

Nov 27, 2018
Data Sourced
via Red Hat·07:00 PM
DescriptionSeverityAffected Software
Jan 11, 2019
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
DescriptionSeverityWeakness
Jan 11, 2024
Data Sourced
via Launchpad·10:54 PM
Description
Aug 9, 2024
Data Sourced
via Debian·10:43 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-16865?

CVE-2018-16865 is a vulnerability in systemd-journald that allows an attacker to crash the system by allocating memory without limits.

2

What is the severity of CVE-2018-16865?

The severity of CVE-2018-16865 is high, with a CVSS score of 7.8.

3

How can an attacker exploit CVE-2018-16865?

An attacker can exploit CVE-2018-16865 by sending a large number of entries to the journal socket in systemd-journald, causing the stack to clash with another memory region and potentially crashing the system.

4

How can I fix CVE-2018-16865 on Ubuntu systems?

To fix CVE-2018-16865 on Ubuntu systems, update the systemd package to version 229-4ubuntu21.15.

5

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

You can find more information about CVE-2018-16865 at the following references:• [MITRE CVE-2018-16865](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-16865)• [Ubuntu Security Notice USN-3855-1](https://ubuntu.com/security/notices/USN-3855-1)• [NVD CVE-2018-16865](https://nvd.nist.gov/vuln/detail/CVE-2018-16865)

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