Untriaged
Permalink
CVE-2026-77159
5.5 MEDIUM
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Local (L)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): Low (L)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): None (N)
- Integrity (I): High (H)
- Availability (A): None (N)
- Modified Attack Vector (MAV): Local (L)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): Low (L)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): None (N)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): High (H)
- Modified Availability (MA): None (N)
Activity log
- Created suggestion
Libvirt: unsafe chown in qemutpmemulatorpreparehost() allows arbitrary file ownership change via symlink
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.
References
Affected products
libvirt
virt:rhel/libvirt
Matching in nixpkgs
pkgs.libvirt
Toolkit to interact with the virtualization capabilities of recent versions of Linux and other OSes
pkgs.libvirt-dbus
libvirt D-Bus API binding
pkgs.libvirt-glib
Wrapper library of libvirt for glib-based applications
pkgs.python313Packages.libvirt
None
-
nixos-26.05 -
- nixos-26.05-small 12.2.0
pkgs.python314Packages.libvirt
None
-
nixos-26.05 -
- nixos-26.05-small 12.2.0
pkgs.rubyPackages.ruby-libvirt
None
pkgs.ocamlPackages.ocaml_libvirt
OCaml bindings for libvirt
pkgs.prometheus-libvirt-exporter
Prometheus metrics exporter for libvirt
pkgs.terraform-providers.libvirt
None
-
nixos-26.05 -
- nixos-26.05-small 0.8.3
pkgs.rubyPackages_3_3.ruby-libvirt
None
pkgs.rubyPackages_3_4.ruby-libvirt
None
pkgs.rubyPackages_4_0.ruby-libvirt
None
pkgs.python313Packages.libvirt-python
Libvirt Python bindings
-
nixos-unstable -
- nixos-unstable-small 12.7.0
pkgs.python314Packages.libvirt-python
Libvirt Python bindings
-
nixos-unstable -
- nixos-unstable-small 12.7.0
pkgs.ocamlPackages_latest.ocaml_libvirt
OCaml bindings for libvirt
pkgs.terraform-providers.dmacvicar_libvirt
None
Package maintainers
-
@lovesegfault Bernardo Meurer <meurerbernardo@gmail.com>
-
@phip1611 Philipp Schuster <phip1611@gmail.com>
-
@fpletz Franz Pletz <fpletz@fnordicwalking.de>
-
@andre4ik3 andre4ik3 <andre4ik3@fastmail.com>