Symlink Following Affecting libvirt package, versions <8.0.0-1ubuntu7.21


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-LIBVIRT-19785284
  • published28 Sept 2026
  • disclosed11 Sept 2026

Introduced: 11 Sep 2026

NewCVE-2026-77159  (opens in a new tab)
CWE-61  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.04 libvirt to version 8.0.0-1ubuntu7.21 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libvirt package and not the libvirt package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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 Base Scores

version 3.1