{"id":"CVE-2026-77159","aliases":["CVE-2026-77159"],"related":[],"kind":"vulnerability","state":"published","title":"Libvirt: unsafe chown in qemutpmemulatorpreparehost() allows arbitrary file ownership change via symlink","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-11T10:32:29.772Z","modified":"2026-11-25T00:17:14.143Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-61"],"affected":[{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"libvirt","cpe":"cpe:/o:redhat:enterprise_linux:10","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","package":"libvirt","cpe":"cpe:/o:redhat:rhel_els:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"libvirt","cpe":"cpe:/o:redhat:rhel_els:7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"virt:rhel/libvirt","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"libvirt","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-77159","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2531811","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://gitlab.com/libvirt/libvirt/-/work_items/909","tags":["exploit"],"sources":["cvelist","nvd"]}],"credits":["Red Hat would like to thank Suraj Theekshana for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-09-15T15:39:11.306Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77159","url":"https://www.cve.org/CVERecord?id=CVE-2026-77159","licence":"CVE Terms of Use","modified":"2026-11-24T23:49:12.104Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77159","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77159","licence":"Public domain","modified":"2026-11-25T00:17:14.143Z"}],"updatedAt":"2026-11-25T22:59:37.942Z","epss":{"score":0.00223,"percentile":0.13844,"date":"2026-12-01T12:00:22.000Z"}}