Red Hat Security Advisory: libvirt security, bug fix, and enhancement update
A vulnerability in the libvirt library allows a local attacker running as the confined swtpm user to escalate privileges by exploiting a symlink-following flaw. The attacker can trick the root-level libvirt daemon into changing ownership of arbitrary files to the swtpm user, resulting in privilege escalation. This affects certain versions of libvirt used in Red Hat and Ubuntu distributions. Mitigation includes removing the <tpm> device from domain XML if virtual TPM functionality is not required. A fix is available from Red Hat upstream.
AI Analysis
Technical Summary
CVE-2026-63622 is a local privilege escalation vulnerability in libvirt's virFileChownFiles() function caused by improper symlink resolution (CWE-59). A process running as the confined swtpm user can plant a symbolic link in the swtpm state directory, causing the root-level libvirt daemon to change ownership of arbitrary files to the swtpm user. This allows escalation from the swtpm sandbox to root-level file ownership control. The vulnerability affects multiple specific versions of libvirt distributed by Red Hat and Ubuntu. Mitigation involves removing the <tpm> device from domain XML to prevent libvirt from spawning swtpm processes and invoking the vulnerable code path. Domains requiring vTPM must apply the upstream fix. The vulnerability has a Red Hat CVSS v3.1 base score of 7.8 (high severity).
Potential Impact
An attacker with local access running as the confined swtpm user can exploit this vulnerability to escalate privileges to root-level file ownership control by abusing a symlink-following flaw. This compromises confidentiality, integrity, and availability of the affected system by allowing unauthorized file ownership changes.
Mitigation Recommendations
If virtual TPM (vTPM) functionality is not needed, remove the <tpm> device definition from the domain XML configuration to prevent the vulnerable code path from being executed. This stops libvirt from spawning swtpm processes and calling the vulnerable function. For domains that require vTPM, prioritize applying the upstream fix from Red Hat. Monitor Red Hat advisories for official patches and updates.
Red Hat Security Advisory: libvirt security, bug fix, and enhancement update
Description
A vulnerability in the libvirt library allows a local attacker running as the confined swtpm user to escalate privileges by exploiting a symlink-following flaw. The attacker can trick the root-level libvirt daemon into changing ownership of arbitrary files to the swtpm user, resulting in privilege escalation. This affects certain versions of libvirt used in Red Hat and Ubuntu distributions. Mitigation includes removing the <tpm> device from domain XML if virtual TPM functionality is not required. A fix is available from Red Hat upstream.
Affected software
pkg:deb/ubuntu/libvirt?arch=source&distro=focalpkg:deb/ubuntu/libvirt?arch=source&distro=jammypkg:deb/ubuntu/libvirt?arch=source&distro=noblepkg:deb/ubuntu/libvirt?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-63622 is a local privilege escalation vulnerability in libvirt's virFileChownFiles() function caused by improper symlink resolution (CWE-59). A process running as the confined swtpm user can plant a symbolic link in the swtpm state directory, causing the root-level libvirt daemon to change ownership of arbitrary files to the swtpm user. This allows escalation from the swtpm sandbox to root-level file ownership control. The vulnerability affects multiple specific versions of libvirt distributed by Red Hat and Ubuntu. Mitigation involves removing the <tpm> device from domain XML to prevent libvirt from spawning swtpm processes and invoking the vulnerable code path. Domains requiring vTPM must apply the upstream fix. The vulnerability has a Red Hat CVSS v3.1 base score of 7.8 (high severity).
Potential Impact
An attacker with local access running as the confined swtpm user can exploit this vulnerability to escalate privileges to root-level file ownership control by abusing a symlink-following flaw. This compromises confidentiality, integrity, and availability of the affected system by allowing unauthorized file ownership changes.
Mitigation Recommendations
If virtual TPM (vTPM) functionality is not needed, remove the <tpm> device definition from the domain XML configuration to prevent the vulnerable code path from being executed. This stops libvirt from spawning swtpm processes and calling the vulnerable function. For domains that require vTPM, prioritize applying the upstream fix from Red Hat. Monitor Red Hat advisories for official patches and updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-63622
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.04:LTS"]
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7ff5e6bf8831d53987e137
Added to database: 08/15/2026, 05:15:18 UTC
Last enriched: 09/24/2026, 07:17:19 UTC
Last updated: 09/30/2026, 06:56:33 UTC
Views: 43
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.