Skip to content
OpenAdvisories
Medium · 5.5 CVE-2026-77159 EUVD-2026-76034GHSA-wmhq-5pq5-8474

Libvirt: unsafe chown in qemutpmemulatorpreparehost() allows arbitrary file ownership change via symlink

Published Sep 11, 2026 · Updated Nov 6, 2026 · 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.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libvirt 12.7.0-1 —
Debian 13 libvirt No fix yet —
Debian 12 libvirt No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libvirt +1 12.0.0-1ubuntu5.5 USN-8833-1, USN-8831-1
Ubuntu 24.04 LTS libvirt 10.0.0-2ubuntu8.19 USN-8831-1
Ubuntu 22.04 LTS libvirt 8.0.0-1ubuntu7.21 USN-8831-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libvirt No fix yet —
Ubuntu Pro 18.04 LTS libvirt No fix yet —
Ubuntu Pro 16.04 LTS libvirt No fix yet —
Ubuntu Pro 14.04 LTS libvirt No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 libvirt 11.0.0-150700.4.27.1 SUSE-SU-2026:3939-1
SLES 15 SP6 libvirt 10.0.0-150600.8.18.1 SUSE-SU-2026:4010-1
SLES 15 SP5 libvirt 9.0.0-150500.6.29.1 SUSE-SU-2026:4009-1
SLES 15 SP4 libvirt 8.0.0-150400.7.17.1 SUSE-SU-2026:4004-1
SLES 12 SP5 libvirt 5.1.0-13.48.1 SUSE-SU-2026:4141-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 libvirt 11.4.0-160000.5.1 SUSE-SU-2026:23603-1
SLES for SAP 15 SP6 libvirt 10.0.0-150600.8.18.1 SUSE-SU-2026:4010-1
SLES for SAP 15 SP5 libvirt 9.0.0-150500.6.29.1 SUSE-SU-2026:4009-1
SLES for SAP 15 SP4 libvirt 8.0.0-150400.7.17.1 SUSE-SU-2026:4004-1
SLES 16.0 libvirt 11.4.0-160000.5.1 SUSE-SU-2026:23603-1
SLE Micro 6.2 libvirt 11.4.0-160000.5.1 SUSE-SU-2026:23460-1
SLE Micro 6.1 libvirt 10.0.0-slfo.1.1_3.1 SUSE-SU-2026:23515-1
SLE Micro 6.0 libvirt 10.0.0-5.1 SUSE-SU-2026:23445-1
SLE Micro 5.5 libvirt 9.0.0-150500.6.29.1 SUSE-SU-2026:4009-1
SLE Micro 5.4 libvirt 8.0.0-150400.7.17.1 SUSE-SU-2026:4004-1
SLE Micro 5.3 libvirt 8.0.0-150400.7.17.1 SUSE-SU-2026:4004-1
SLE HPC 15 SP5 libvirt 9.0.0-150500.6.29.1 SUSE-SU-2026:4009-1
SLE HPC 15 SP4 libvirt 8.0.0-150400.7.17.1 SUSE-SU-2026:4004-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libvirt 12.6.0-2.1 openSUSE-SU-2026:11622-1
openSUSE Leap 16.0 libvirt 11.4.0-160000.5.1 openSUSE-SU-2026:21738-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libvirt +27 12.0.0-3.amzn2023.0.3 ALAS2023-2026-3108
Amazon Linux 2 libvirt +30 4.5.0-36.amzn2.3.5 ALAS2-2026-3932

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libvirt 11.9.0-2 —

Advisories 16

References