Vulnerability · Published Sep 11, 2026 · Assigned by redhat

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

Medium 5.5

In plain English

A medium-severity security flaw in Red Hat Enterprise Linux 10 from Red Hat. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.2%top 94.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libvirtno fix listedDEBIAN-CVE-2026-77159
Debian:13libvirtno fix listedDEBIAN-CVE-2026-77159
Debian:14libvirt12.7.0-1DEBIAN-CVE-2026-77159
Ubuntu:22.04:LTSlibvirt8.0.0-1ubuntu7.21UBUNTU-CVE-2026-77159
Ubuntu:22.04:LTSlibvirt8.0.0-1ubuntu7.21USN-8831-1
Ubuntu:24.04:LTSlibvirt10.0.0-2ubuntu8.19USN-8831-1
Ubuntu:24.04:LTSlibvirt10.0.0-2ubuntu8.19UBUNTU-CVE-2026-77159
Ubuntu:26.04:LTSlibvirt12.0.0-1ubuntu5.5USN-8831-1
Ubuntu:26.04:LTSlibvirt12.0.0-1ubuntu5.5UBUNTU-CVE-2026-77159
Ubuntu:26.04:LTSlibvirt-hwe12.0.0-1ubuntu5.5USN-8833-1
Ubuntu:26.04:LTSlibvirt-hwe12.0.0-1ubuntu5.5UBUNTU-CVE-2026-77159

Affected products (as reported)

Weakness: CWE-61 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

References