Red Hat Security Advisory: libvirt security update
🔗 CVE IDs covered (2)
📋 Description
CVE-2026-18917 — libvirt: Integer overflow in NodeGetFreePages RPC handler leading to heap buffer overflow CVE-2026-63622 — libvirt: swtpm privilege escalation via symlink following
🎯 Affected products146
- Red Hat Enterprise Linux Server (v. 7 ELS)
- Red Hat Enterprise Linux Server Optional (v. 7 ELS)
- libvirt-0:4.5.0-36.el7_9.7.ppc64 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-0:4.5.0-36.el7_9.7.ppc64le as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-0:4.5.0-36.el7_9.7.s390x as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-0:4.5.0-36.el7_9.7.src as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-0:4.5.0-36.el7_9.7.x86_64 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-admin-0:4.5.0-36.el7_9.7.ppc64 as a component of Red Hat Enterprise Linux Server Optional (v. 7 ELS)
- libvirt-admin-0:4.5.0-36.el7_9.7.ppc64le as a component of Red Hat Enterprise Linux Server Optional (v. 7 ELS)
- libvirt-admin-0:4.5.0-36.el7_9.7.s390x as a component of Red Hat Enterprise Linux Server Optional (v. 7 ELS)
- libvirt-admin-0:4.5.0-36.el7_9.7.x86_64 as a component of Red Hat Enterprise Linux Server Optional (v. 7 ELS)
- libvirt-bash-completion-0:4.5.0-36.el7_9.7.ppc64 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-bash-completion-0:4.5.0-36.el7_9.7.ppc64le as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-bash-completion-0:4.5.0-36.el7_9.7.s390x as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-bash-completion-0:4.5.0-36.el7_9.7.x86_64 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-client-0:4.5.0-36.el7_9.7.i686 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-client-0:4.5.0-36.el7_9.7.ppc as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-client-0:4.5.0-36.el7_9.7.ppc64 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-client-0:4.5.0-36.el7_9.7.ppc64le as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-client-0:4.5.0-36.el7_9.7.s390 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-client-0:4.5.0-36.el7_9.7.s390x as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-client-0:4.5.0-36.el7_9.7.x86_64 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-daemon-0:4.5.0-36.el7_9.7.ppc64 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-daemon-0:4.5.0-36.el7_9.7.ppc64le as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-daemon-0:4.5.0-36.el7_9.7.s390x as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-daemon-0:4.5.0-36.el7_9.7.x86_64 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-daemon-config-network-0:4.5.0-36.el7_9.7.ppc64 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-daemon-config-network-0:4.5.0-36.el7_9.7.ppc64le as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-daemon-config-network-0:4.5.0-36.el7_9.7.s390x as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- libvirt-daemon-config-network-0:4.5.0-36.el7_9.7.x86_64 as a component of Red Hat Enterprise Linux Server (v. 7 ELS)
- +116 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: Restrict access to the libvirt read-only Unix socket to limit which local users can reach the vulnerable RPC handler. In /etc/libvirt/libvirtd.conf, set unix_sock_ro_perms to "0770" (or "0700") and configure unix_sock_group to a group containing only trusted users. Alternatively, enable polkit authentication for the read-only socket by setting auth_unix_ro = "polkit", which requires callers to be authorized before any RPC dispatch occurs. After changing the configuration, restart the libvirtd service. Note: restricting socket access may prevent unprivileged monitoring tools or read-only management clients from connecting. Workaround: If virtual Trusted Platform Module (vTPM) functionality is not required, remove the <tpm> device definition from the domain XML configuration to prevent the vulnerable code path from being reached. To check if a domain uses vTPM: ``` virsh dumpxml <domain> | grep -A5 '<tpm' ``` To remove it, edit the domain XML and delete the <tpm> block. This prevents libvirt from spawning swtpm processes and from calling virFileChownFiles() on the swtpm state directory during domain startup. Domains that require vTPM for guest OS functionality cannot use this mitigation and should prioritize applying the upstream fix.
🔗 References (5)
- selfhttps://access.redhat.com/errata/RHSA-2026:69114
- externalhttps://access.redhat.com/security/updates/classification/#important
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2513065
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2520161
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_69114.json