Red Hat Container Native Virtualization 4.12
Kubevirt: virt-handler-rhel9: kubevirt: safepath symlink following in virt-handler enables notify socket hijacking and node-level vm disruption
A flaw was found in KubeVirt's safepath package used by virt-handler. The OpenAtNoFollow function uses O_PATH|O_NOFOLLOW to obtain a file descriptor to a path leaf, but downstream operations resolve the path via /proc/self/fd/N using link-following syscalls. When the leaf is a symlink, the kernel dereferences it, defeating the intended no-follow protection. An attacker with access to a virt-launcher pod can exploit this to redirect virt-handler's IPC socket connections, including the notify socket used for VM domain lifecycle events. By hijacking this socket, the attacker can inject arbitrary domain events into virt-handler, causing it to take incorrect lifecycle actions, corrupt VM state in the Kubernetes API, or crash — resulting in sustained denial of VM management services for all virtual machines on the affected node. Additionally, the same symlink following flaw allows virt-handler to apply file ownership or permission changes to unintended host paths.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 1791522624
Fixed in 1786346596
Fixed in 1786309624
Fixed in 1786347656
Fixed in 1786030071
Fixed in 1786348529
Fixed in 1786130068
Fixed in 1786334215
Fixed in 1785831334
Fixed in 1785829701
Fixed in 1785140336
Mitigation
Upgrade Red Hat Container Native Virtualization 4.12 to 1791522624 or later.
Upgrade Red Hat Container Native Virtualization 4.13 to 1786346596 or later.
Upgrade Red Hat Container Native Virtualization 4.14 to 1786309624 or later.
Upgrade Red Hat Container Native Virtualization 4.15 to 1786347656 or later.
Upgrade Red Hat Container Native Virtualization 4.16 to 1786030071 or later.
Upgrade Red Hat Container Native Virtualization 4.17 to 1786348529 or later.
Upgrade Red Hat Container Native Virtualization 4.18 to 1786130068 or later.
Upgrade Red Hat Container Native Virtualization 4.19 to 1786334215 or later.
Upgrade Red Hat Container Native Virtualization 4.20 to 1785831334 or later.
Upgrade Red Hat Container Native Virtualization 4.21 to 1785829701 or later.
Upgrade Red Hat Container Native Virtualization 4.22 to 1785140336 or later.
Workaround
The following measures reduce the attacker pool and limit secondary impact: Review RBAC policies to restrict pods/exec permissions on virt-launcher pods to only those users who strictly require it. This reduces the number of identities that can place symlinks in the launcher filesystem. Ensure SELinux is in enforcing mode (default in OpenShift). While SELinux does not prevent the notify socket hijacking path, it restricts the set of host files targetable through the chown/chmod path by blocking operations on files with protected security labels. RHCOS immutable filesystem layers prevent modification of core OS files through the chown/chmod path. Note: no mitigation currently addresses the notify socket hijacking vector. The attacker's ability to inject domain events into virt-handler is not constrained by SELinux or filesystem immutability.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:51031
- Vendor advisory access.redhat.com/errata/RHSA-2026:53655
- Vendor advisory access.redhat.com/errata/RHSA-2026:53671
5 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:53684
- Vendor advisory access.redhat.com/errata/RHSA-2026:53721
- Vendor advisory access.redhat.com/errata/RHSA-2026:53728
- Vendor advisory access.redhat.com/errata/RHSA-2026:53763
- Vendor advisory access.redhat.com/errata/RHSA-2026:53797
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.