CVE-2024-0217
NixOS vulnerability analysis and mitigation

Overview

CVE-2024-0217 is a use-after-free vulnerability discovered in PackageKitd. The vulnerability was disclosed on January 3, 2024, affecting PackageKit versions up to (excluding) 1.2.7. The flaw exists in the transaction cleanup mechanics of PackageKitd, where under certain conditions, memory access could occur on previously freed memory regions (NVD, Red Hat).

Technical details

The vulnerability is classified as a Use-After-Free (CWE-416) issue with a CVSS v3.1 base score of 3.3 (Low), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L. The issue occurs in PackageKit's transaction handling, where transactions are used as work units to wrap package manager actions. When a transaction is created by the user and later freed, the cleanup mechanics' order can be impacted, leading to memory access on freed regions (NVD, Bugzilla).

Impact

When exploited, the vulnerability can lead to memory access on previously freed regions. Once a memory region is freed, it can be reused for other allocations, and any previously stored data in this memory region is considered lost. The impact is primarily related to system stability and potential denial of service (NVD).

Mitigation and workarounds

While there is no complete fix for this issue, a commit in PackageKit version 1.2.7 reduces the impact through additional checks on the Finished signal emission. The specific commit (64278c9127e3333342b56ead99556161f7e86f79) adds verification to ensure the Finished signal is emitted at most once, making the transaction code more robust (GitHub, Ubuntu).

Additional resources


SourceThis report was generated using AI

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