Bug 2588036

Summary: CVE-2026-15268 libvirt: Local privilege escalation via nested ext URI [fedora-all]
Product: [Fedora] Fedora Reporter: Mauro Matteo Cascella <mcascell>
Component: libvirtAssignee: Fedora Virtualization Maintainers <virt-maint>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: berrange, crobinso, jforbes, jiyin, laine, libvirt-maint, suraj.ghimire7, virt-maint
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["459b7bd1-d28c-4af1-8e29-18853ef9fdef"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2588010    

Description Mauro Matteo Cascella 2026-12-01 16:36:04 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

An unprivileged local user who can reach a libvirt read-only Unix socket can send a nested URI through REMOTE_PROC_CONNECT_OPEN that selects the ext transport. The daemon forces VIR_CONNECT_RO, but it still opens the attacker-controlled nested URI inside the privileged daemon process.

For +ext URIs, the attacker-controlled command= value is used as the external helper binary passed to virNetClientNewExternal(). The helper is started during connection setup, before later read-only API restrictions can prevent side effects.

The attacker needs:
1. A local unprivileged account.
2. Access to a libvirt read-only Unix socket.
3. The ability to place an executable helper at a path visible to the daemon.

The attack path is:
  read-only socket client
  -> REMOTE_PROC_CONNECT_OPEN with nested storage+ext:// URI
  -> privileged daemon calls virConnectOpenAuth()
  -> remote driver extracts attacker-controlled command=
  -> virNetClientNewExternal() starts the helper
  -> helper runs with the daemon uid (root)

The issue is in the remote connection setup path used by privileged libvirt daemons:
- src/remote/remote_daemon_dispatch.c (remoteDispatchConnectOpen, remoteOpenConn)
- src/remote/remote_driver.c (doRemoteOpenExtractURIArgs, doRemoteOpen)
- src/rpc/virnetclient.c (virNetClientNewExternal)
- src/rpc/virnetsocket.c (virNetSocketNewConnectExternal)

The validated service was virtstoraged reached through its read-only socket. This is a daemon/library issue; virsh is only one client that can exercise the affected API.

Upstream fix: https://gitlab.com/libvirt/libvirt/-/commit/f74495c7a157618e3df6fa61079678084c4cc685

The fix adds remoteCheckPermittedConnURI() which rejects any URI whose scheme contains a transport component (+ character), blocking all transports (+ext, +ssh, +tls, +unix, etc.) in nested CONNECT_OPEN URIs unconditionally.