cvelo
P3 · MediumCVSS 5.5EPSS 0.2%

Libvirt: unsafe chown in qemutpmemulatorpreparehost() allows arbitrary file ownership change via symlink

  • CVE-2026-77159
  • GHSA-wmhq-5pq5-8474
  • EUVD-2026-76034

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.

Text from the CVE.org record.

Recommendation

Cvelo has no version information for this record. Check the vendor advisory.

Affected

  • Red Hat Red Hat Enterprise Linux 10

    No versions listed

  • Red Hat Red Hat Enterprise Linux 6

    No versions listed

  • Red Hat Red Hat Enterprise Linux 7

    No versions listed

  • Red Hat Red Hat Enterprise Linux 8

    No versions listed

  • Red Hat Red Hat Enterprise Linux 9

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.