CVE-2026-15268
Description
A flaw was found in libvirt. An unprivileged local user with access to a read-only socket can execute arbitrary commands by submitting a crafted nested Uniform Resource Identifier (URI). Because the privileged daemon executes external helper binaries during connection setup prior to applying read-only access restrictions, an attacker can exploit this issue to achieve local privilege escalation.
Statement
Red Hat rates this flaw as Important because local unprivileged accounts with access to libvirt read-only Unix sockets can cause the privileged daemon to execute arbitrary binaries with root privileges. Successful exploitation results in complete local privilege escalation, though the attack requires local access and the capability to write an executable binary to a file path accessible by the daemon. Systems where libvirt read-only sockets are restricted to administrative accounts or disabled are not exposed to this risk.
Mitigation
To mitigate this issue, restrict access to libvirt read-only Unix sockets so untrusted local accounts cannot connect to them.
1. Restrict filesystem permissions on active read-only sockets:
chmod 700 /run/libvirt/libvirt-sock-ro /run/libvirt/virtstoraged-ro.sock
2. To persist settings across daemon restarts, modify socket permissions in /etc/libvirt/libvirtd.conf (or the relevant daemon file such as /etc/libvirt/virtstoraged.conf):
unix_sock_ro_perms = "0700"
3. Reload or restart the affected service:
systemctl restart libvirtd
# or for modular daemons:
systemctl restart virtstoraged
Warning: Restarting libvirt daemons will temporarily interrupt management connections. Restricting read-only socket permissions will prevent unprivileged users and non-root monitoring utilities from querying hypervisor status.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.8 | N/A | N/A |
| Attack Vector | Local | N/A | N/A |
| Attack Complexity | Low | N/A | N/A |
| Privileges Required | Low | N/A | N/A |
| User Interaction | None | N/A | N/A |
| Scope | Unchanged | N/A | N/A |
| Confidentiality | High | N/A | N/A |
| Integrity Impact | High | N/A | N/A |
| Availability Impact | High | N/A | N/A |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Application Data; Read Files or Directories
An attacker could read sensitive data, either by reading the data directly from a data store that is not restricted, or by accessing insufficiently-protected, privileged functionality to read the data.
Integrity
Technical Impact: Modify Application Data; Modify Files or Directories
An attacker could modify sensitive data, either by writing the data directly to a data store that is not restricted, or by accessing insufficiently-protected, privileged functionality to write the data.
Access Control
Technical Impact: Gain Privileges or Assume Identity; Bypass Protection Mechanism
An attacker could gain privileges by modifying or reading critical data directly, or by accessing privileged functionality.
Availability
Technical Impact: DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Resource Consumption (Other)
An attacker could gain unauthorized access to resources on the system and excessively consume those resources, leading to a denial of service.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.