CVE-2020-1712: Use After Free

Published Jan 23, 2020
·
Updated

A heap use-after-free vulnerability was found in systemd before version v245-rc1, where asynchronous Polkit queries are performed while handling dbus messages. A local unprivileged attacker can abuse this flaw to crash systemd services or potentially execute code and elevate their privileges, by sending specially crafted dbus messages.

Other sources

systemd contains a heap use-after-free vulnerability due to the way asynchronous polkit queries are performed. The userdata that needs to be passed to the polkit callback is cached in the AsyncPolkitQuery structure, however when the callback is actually called, the object the userdata is pointing to may already have been released and re-used for other purposes. Local unprivileged attackers may abuse this flaw to crash systemd services or potentially execute code and elevate their privileges.

Red Hat

Affected Software

9 affected componentsFixes available
redhat/systemd<245
245
Systemd Project Systemd<=244
redhat Ceph Storage=4.0
redhat Discovery
redhat Migration Toolkit=1.0
redhat OpenShift Container Platform=4.0
redhat Enterprise Linux=8.0
Debian Debian Linux=9.0
debian/systemd
247.3-7+deb11u5247.3-7+deb11u6252.36-1~deb12u1252.38-1~deb12u1257.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/systemd to a version that resolves this vulnerability.

    Fixed in 245
  2. Upgrade

    Upgrade debian/systemd to a version that resolves this vulnerability.

    Fixed in 247.3-7+deb11u5Fixed in 247.3-7+deb11u6Fixed in 252.36-1~deb12u1Fixed in 252.38-1~deb12u1Fixed in 257.6-1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in v245-rc1
  4. Compensating control

    Mitigate exploit attempts by restricting access to systemd’s dbus endpoints so that only trusted/local privileged processes can send specially crafted dbus messages that trigger the vulnerable asynchronous Polkit query handling.

Event History

Mar 31, 2020
CVE Published
via MITRE·04:44 PM
Data Sourced
via MITRE·04:44 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:44 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:24 AM
RemedyDescriptionSeverityAffected Software
Jun 17, 2025
Data Sourced
via Debian·03:49 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is CVE-2020-1712?

CVE-2020-1712 is a heap use-after-free vulnerability found in systemd before version v245-rc1.

2

How does CVE-2020-1712 impact systemd services?

CVE-2020-1712 allows a local unprivileged attacker to crash systemd services or potentially execute code and elevate their privileges.

3

Which software versions are affected by CVE-2020-1712?

CVE-2020-1712 affects systemd versions 241-7~deb10u8, 241-7~deb10u10, 247.3-7+deb11u4, 252.17-1~deb12u1, and 254.5-1 on Debian, and versions 244.1-0ubuntu3 on Ubuntu.

4

How can I fix CVE-2020-1712?

To fix CVE-2020-1712, update the affected systemd package to version 241-7~deb10u10 or install the latest version available for your Linux distribution.

5

Where can I find more information about CVE-2020-1712?

You can find more information about CVE-2020-1712 in the following references: [Bugzilla Red Hat](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1712), [GitHub Commit 1](https://github.com/systemd/systemd/commit/1068447e6954dc6ce52f099ed174c442cb89ed54), [GitHub Commit 2](https://github.com/systemd/systemd/commit/637486261528e8aa3da9f26a4487dc254f4b7abb).

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