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

- Severity: Medium 5.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-11T10:32:29.772Z
- Modified: 2026-11-25T00:17:14.143Z
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- libvirt: no versions given
- virt:rhel/libvirt: no versions given

## References

- <https://gitlab.com/libvirt/libvirt/-/work_items/909> (exploit)
- <https://access.redhat.com/security/cve/CVE-2026-77159> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2531811> (issue-tracking)

## Sources

- CVE List: [CVE-2026-77159](https://www.cve.org/CVERecord?id=CVE-2026-77159), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-77159](https://nvd.nist.gov/vuln/detail/CVE-2026-77159), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-77159 · Whole record: https://cve.day/CVE-2026-77159.json · Rebuilt by cve.day 2026-11-25T22:59:37.942Z
