# CVE-2024-0217: Packagekitd: use-after-free in idle function callback

> A use-after-free flaw in PackageKitd allows attackers to potentially execute arbitrary code or cause a denial of service via crafted transactions.

- **Severity:** Low 3.3 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Jan 2024
- **Updated:** 21 Nov 2025
- **Also known as:** GHSA-g3jm-7w7w-rf6f, SUSE-RU-2024:1202-1, SUSE-SU-2024:0966-1, SUSE-SU-2024:1046-1, UBUNTU-CVE-2024-0217

## What is CVE-2024-0217?

CVE-2024-0217 is a low-severity use after free vulnerability in Fedoraproject Fedora, published on 3 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A use-after-free flaw was found in PackageKitd. In some conditions, the order of cleanup mechanics for a transaction could be impacted. As a result, some memory access could occur on memory regions that were previously freed. Once freed, a memory region can be reused for other allocations and any previously stored data in this memory region is considered lost.

Weakness: CWE-416 (Use After Free)

## Which versions are affected by CVE-2024-0217?

It affects 3 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `PackageKit` | SUSE:Enterprise Storage 7.1 | All versions | 1.1.13-150200.4.30.4 |
| `PackageKit-branding-SLE` | SUSE:Enterprise Storage 7.1 | All versions | 12.0-150200.9.2.2 |
| `libyui` | SUSE:Enterprise Storage 7.1 | All versions | 4.1.5-150300.3.10.5 |
| `libyui-ncurses` | SUSE:Enterprise Storage 7.1 | All versions | 4.1.5-150300.3.10.5 |
| `libyui-ncurses-pkg` | SUSE:Enterprise Storage 7.1 | All versions | 4.1.5-150300.3.10.19 |
| `libyui-ncurses-rest-api` | SUSE:Enterprise Storage 7.1 | All versions | 4.1.5-150300.3.10.5 |
| `libyui-qt` | SUSE:Enterprise Storage 7.1 | All versions | 4.1.5-150300.3.10.5 |
| `libyui-qt-graph` | SUSE:Enterprise Storage 7.1 | All versions | 4.1.5-150300.3.10.5 |
| `libyui-qt-pkg` | SUSE:Enterprise Storage 7.1 | All versions | 4.1.5-150300.3.10.17 |
| `libyui-qt-rest-api` | SUSE:Enterprise Storage 7.1 | All versions | 4.1.5-150300.3.10.5 |
| `libyui-rest-api` | SUSE:Enterprise Storage 7.1 | All versions | 4.1.5-150300.3.10.5 |
| `libzypp` | SUSE:Enterprise Storage 7.1 | All versions | 17.32.2-150200.92.3 |
| `yast2-pkg-bindings` | SUSE:Enterprise Storage 7.1 | All versions | 4.3.13-150300.3.8.21 |
| `zypper` | SUSE:Enterprise Storage 7.1 | All versions | 1.14.69-150200.73.7 |
| `PackageKit` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.1.13-150200.4.30.4 |
| `PackageKit-branding-SLE` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 12.0-150200.9.2.2 |
| `libyui` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 3.9.3-150200.3.2.6 |
| `libyui-ncurses-pkg` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.50.8-150200.3.5.5 |
| `libyui-qt-pkg` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.47.5-150200.3.4.4 |
| `libyui-rest-api` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 0.3.0-150200.3.2.2 |
| `libzypp` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 17.32.2-150200.92.3 |
| `yast2-pkg-bindings` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 4.2.17-150200.3.24.6 |
| `zypper` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.14.69-150200.73.7 |
| `PackageKit` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.1.13-150200.4.30.4 |
| `PackageKit-branding-SLE` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 12.0-150200.9.2.2 |
| `libyui` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.1.5-150300.3.10.5 |
| `libyui-ncurses` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.1.5-150300.3.10.5 |
| `libyui-ncurses-pkg` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.1.5-150300.3.10.19 |
| `libyui-ncurses-rest-api` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.1.5-150300.3.10.5 |
| `libyui-qt` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.1.5-150300.3.10.5 |
| `libyui-qt-graph` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.1.5-150300.3.10.5 |
| `libyui-qt-pkg` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.1.5-150300.3.10.17 |
| `libyui-qt-rest-api` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.1.5-150300.3.10.5 |
| `libyui-rest-api` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.1.5-150300.3.10.5 |
| `libzypp` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 17.32.2-150200.92.3 |
| `yast2-pkg-bindings` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.3.13-150300.3.8.21 |
| `zypper` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.14.69-150200.73.7 |
| `libyui-ncurses-pkg` | SUSE:Linux Enterprise Installer Updates 15 SP2 | All versions | 2.50.8-150200.3.5.5 |
| `libyui-qt-pkg` | SUSE:Linux Enterprise Installer Updates 15 SP2 | All versions | 2.47.5-150200.3.4.4 |
| `libzypp` | SUSE:Linux Enterprise Installer Updates 15 SP2 | All versions | 17.32.2-150200.92.3 |

Products: Fedoraproject Fedora, Packagekit Project Packagekit, Redhat Enterprise Linux.

## How do I fix CVE-2024-0217?

Apply the vendor's patch.

## Is CVE-2024-0217 being exploited?

There is no known exploitation of CVE-2024-0217 in the wild and no public exploit code.

## Other vulnerabilities in Fedoraproject Fedora

- [CVE-2024-4577](https://insights.sbomify.com/CVE-2024-4577/): PHP-CGI OS Command Injection (critical 9.8, exploited in the wild)
- [CVE-2021-39226](https://insights.sbomify.com/CVE-2021-39226/): Grafana Authentication Bypass (critical 9.8, exploited in the wild)
- [CVE-2019-5544](https://insights.sbomify.com/CVE-2019-5544/): VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow (critical 9.8, exploited in the wild)
- [CVE-2024-4947](https://insights.sbomify.com/CVE-2024-4947/): Google Chromium V8 Type Confusion (critical 9.6, exploited in the wild)
- [CVE-2024-4671](https://insights.sbomify.com/CVE-2024-4671/): Google Chromium Visuals Use-After-Free (critical 9.6, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-0217 and fix it if it is affected.

What it is: CVE-2024-0217 is a low-severity use after free vulnerability in Fedoraproject Fedora, published on 3 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-0217 in the wild and no public exploit code.

Affected product: Fedoraproject Fedora. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-0217/ (Markdown: https://insights.sbomify.com/CVE-2024-0217/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-0217
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-0217
- OSV: https://osv.dev/vulnerability/CVE-2024-0217

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-0217/
Summaries are generated and may contain mistakes; the official description above is the record.
