CVE-2020-1712
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-1712 is a heap use-after-free vulnerability discovered in systemd before version v245-rc1. The vulnerability was identified in the way asynchronous Polkit queries are performed while handling dbus messages. The issue was reported by Tavis Ormandy from Google Project Zero and was publicly disclosed on February 5, 2020 (OSS Security).

Technical details

The vulnerability occurs in the bus_verify_polkit_async() function. When DBus interfaces use a cache to store objects temporarily and clear it when the bus returns to idle state, a race condition can occur. If a DBus method uses bus_verify_polkit_async(), it must wait for the polkit action to resolve before the method handler is called again with previously allocated userdata. If the polkit request takes too long, the cache clearing mechanism may free the stored objects before the second method call, resulting in a use-after-free condition (OSS Security). The vulnerability has a CVSS v3.1 Base Score of 7.8 (High) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

A local unprivileged attacker can exploit this vulnerability to crash systemd services or potentially execute code and elevate their privileges by sending specially crafted dbus messages. The vulnerability particularly affects the systemd-machined service's DBus API through the org.freedesktop.machine1.Image interface, which is accessible to all users (Red Hat Bugzilla).

Mitigation and workarounds

The vulnerability was fixed in systemd v245-rc1 through a series of commits. The fix involves changes to the way asynchronous Polkit queries are handled, including the introduction of a new API for re-enqueuing incoming messages and modifications to how callback/userdata is resolved (GitHub Commits). Users are recommended to upgrade to a version of systemd that includes these fixes.

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management