# CVE-2026-77159: Libvirt: unsafe chown in qemutpmemulatorpreparehost() allows arbitrary file ownership change via symlink

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-11 · Modified: 2026-11-24
- Aliases: UBUNTU-CVE-2026-77159, DEBIAN-CVE-2026-77159
- Record: https://cvemate.com/vulnerability/CVE-2026-77159 · JSON: https://cvemate.com/vulnerability/CVE-2026-77159/json

## Description

```text
A symlink-following flaw was found in libvirt's qemuTPMEmulatorPrepareHost() function. The function uses a path-based chown() on the swtpm logfile without checking for symbolic links. A local attacker with access to the swtpm account can replace the logfile with a symlink, causing libvirtd (running as root) to transfer ownership of an arbitrary file to the swtpm user.
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.223%, percentile 13.809%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libvirt (Debian): All versions (No fix recorded) \| \< 12.7.0-1
- ubuntu libvirt (Ubuntu): All versions (No fix recorded) \| \< 8.0.0-1ubuntu7.21 \| \< 10.0.0-2ubuntu8.19 \| \< 12.0.0-1ubuntu5.5
- ubuntu libvirt-hwe (Ubuntu): \< 12.0.0-1ubuntu5.5

## References

- <https://access.redhat.com/security/cve/CVE-2026-77159>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2531811>
- <https://gitlab.com/libvirt/libvirt/-/work_items/909>
- <https://ubuntu.com/security/CVE-2026-77159>
- <https://www.cve.org/CVERecord?id=CVE-2026-77159>
- <https://ubuntu.com/security/notices/USN-8831-1>
- <https://ubuntu.com/security/notices/USN-8833-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-77159>

---

Data as of 2026-12-05T04:20:47.511Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
