CVE-2026-77159
Received Received - Intake

Symlink Race Condition in libvirt Leading to Privilege Escalation

Vulnerability report for CVE-2026-77159, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-11

Last updated on: 2026-09-11

Assigner: redhat-SADP

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-11
Last Modified
2026-09-11
Generated
2026-09-11
AI Q&A
2026-09-11
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
red_hat libvirt *
red_hat swtpm *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-61 The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-77159 is a symlink-following flaw in libvirt's qemuTPMEmulatorPrepareHost() function. The function uses 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 change ownership of an arbitrary file to the swtpm user.

Detection Guidance

Check for symlink manipulation in the swtpm log directory by inspecting the logfile path for unexpected symbolic links. Commands like 'ls -la /var/log/swtpm/' or 'readlink /var/log/swtpm/logfile' may reveal suspicious symlinks. Monitor file ownership changes in system logs or use 'auditctl' to track chown operations on critical files.

Impact Analysis

An attacker could exploit this to change ownership of critical system files to the swtpm user, potentially leading to privilege escalation or unauthorized access. This could allow modification of sensitive files, system configuration changes, or further exploitation of the system.

Compliance Impact

This vulnerability could compromise data integrity and access controls, which are critical for compliance with GDPR and HIPAA. Unauthorized file ownership changes may lead to unauthorized data access or modification, violating confidentiality and integrity requirements.

Mitigation Strategies

Apply the upstream fix by updating libvirt to a version that uses open(O_NOFOLLOW) and fchown() instead of path-based chown(). Ensure SELinux is in enforcing mode to limit the impact of potential exploits. Restrict access to the swtpm account and audit the swtpm log directory for unauthorized symlinks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-77159. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart