CVE-2026-63622

Summary

A flaw was found in libvirt. A local attacker, specifically a process running as the confined swtpm user, could exploit a symlink-following vulnerability in the virFileChownFiles() function. By planting a symbolic link within the swtpm state directory, the attacker could trick the root-level libvirt daemon into changing the ownership of an arbitrary file to the swtpm user. This allows for privilege escalation from the swtpm sandbox to root-level file ownership control.

Affected Software

VendorProductVersion RangeStatus
Red HatRed Hat Enterprise Linux 10.0 Extended Update Support0:10.10.0-8.11.el10_0 < *unaffected
Red HatRed Hat Enterprise Linux 7 Extended Lifecycle Support0:4.5.0-36.el7_9.7 < *unaffected
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support8040020260916092751.522a0ee4 < *unaffected
Red HatRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On8040020260916092751.522a0ee4 < *unaffected
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support8060020260910092451.ad008a3a < *unaffected
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On8060020260910092451.ad008a3a < *unaffected
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service8080020260910092120.63b34585 < *unaffected
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions8080020260910092120.63b34585 < *unaffected
Red HatRed Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:9.0.0-10.16.el9_2 < *unaffected
Red HatRed Hat Enterprise Linux 9.4 Update Services for SAP Solutions0:10.0.0-6.23.el9_4 < *unaffected
Red HatRed Hat Enterprise Linux 9.6 Extended Update Support0:10.10.0-7.18.el9_6 < *unaffected

Weaknesses

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Workarounds

If virtual Trusted Platform Module (vTPM) functionality is not required, remove the <tpm> device definition from the domain XML configuration to prevent the vulnerable code path from being reached.

To check if a domain uses vTPM:

virsh dumpxml &lt;domain&gt; | grep -A5 &#39;&lt;tpm&#39;

To remove it, edit the domain XML and delete the <tpm> block. This prevents libvirt from spawning swtpm processes and from calling virFileChownFiles() on the swtpm state directory during domain startup. Domains that require vTPM for guest OS functionality cannot use this mitigation and should prioritize applying the upstream fix.

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: total

References