cve.bz

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

5.5 mediumEPSS 0.2%

Medium (5.5) in red hat. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 5th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-09-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-61 UNIX Symbolic Link (Symlink) Following
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-77159 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-77159?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-77159?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-77159 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13libvirtno fix listedDEBIAN-CVE-2026-77159
Debian14libvirt12.7.0-1DEBIAN-CVE-2026-77159
Ubuntu22.04:LTSlibvirt8.0.0-1ubuntu7.21UBUNTU-CVE-2026-77159 USN-8831-1
Ubuntu24.04:LTSlibvirt10.0.0-2ubuntu8.19UBUNTU-CVE-2026-77159 USN-8831-1
Ubuntu26.04:LTSlibvirt, libvirt-hwe12.0.0-1ubuntu5.5UBUNTU-CVE-2026-77159 USN-8831-1 USN-8833-1
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 1 morelibvirtno fix listedUBUNTU-CVE-2026-77159
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 3 morelibvirt8.0.0-150400.7.17.1SUSE-SU-2026:4004-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morelibvirt9.0.0-150500.6.29.1SUSE-SU-2026:4009-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Server Applications 15 SP7libvirt11.0.0-150700.4.27.1SUSE-SU-2026:3939-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5libvirt5.1.0-13.48.1SUSE-SU-2026:4141-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6libvirt10.0.0-150600.8.18.1SUSE-SU-2026:4010-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0libvirt11.4.0-160000.5.1SUSE-SU-2026:23603-1
SUSELinux Micro 6.0libvirt10.0.0-5.1SUSE-SU-2026:23445-1
SUSELinux Micro 6.1libvirt10.0.0-slfo.1.1_3.1SUSE-SU-2026:23515-1
SUSELinux Micro 6.2libvirt11.4.0-160000.5.1SUSE-SU-2026:23460-1
openSUSELeap 16.0libvirt11.4.0-160000.5.1openSUSE-SU-2026:21738-1
openSUSETumbleweedlibvirt12.6.0-2.1openSUSE-SU-2026:11622-1
Azure Linux3libvirt11.9.0-2AZL-101739
Alpaquitastreamlibvirt12.7.0-r0BELL-CVE-2026-77159

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

On Red Hat Enterprise Linux, SELinux in enforcing mode (the default) confines the swtpm process to the swtpm_t domain, which restricts the creation of symlinks to arbitrary file types and limits the scope of any ownership change, reducing the practical impact of this flaw. Ensure SELinux is not disabled or set to permissive mode.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libvirtFix deferred
Red Hat Enterprise Linux 6libvirtNot affected
Red Hat Enterprise Linux 7libvirtOut of support scope
Red Hat Enterprise Linux 8virt:rhel/libvirtFix deferred
Red Hat Enterprise Linux 9libvirtFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-77159.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON