A flaw was found in KubeVirts 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-handlers 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.
The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Kubevirt | Kubevirt | - (including) | - (including) |
| Openshift_virtualization | Redhat | 4 (including) | 4.22.0 (including) |
| Red Hat Container Native Virtualization 4.13 | RedHat | container-native-virtualization/virt-handler-rhel9:1786346596 | * |
| Red Hat Container Native Virtualization 4.14 | RedHat | container-native-virtualization/virt-handler-rhel9:1786309624 | * |
| Red Hat Container Native Virtualization 4.15 | RedHat | container-native-virtualization/virt-handler-rhel9:1786347656 | * |
| Red Hat Container Native Virtualization 4.16 | RedHat | container-native-virtualization/virt-handler-rhel9:1786030071 | * |
| Red Hat Container Native Virtualization 4.17 | RedHat | container-native-virtualization/virt-handler-rhel9:1786348529 | * |
| Red Hat Container Native Virtualization 4.18 | RedHat | container-native-virtualization/virt-handler-rhel9:1786130068 | * |
| Red Hat Container Native Virtualization 4.19 | RedHat | container-native-virtualization/virt-handler-rhel9:1786334215 | * |
| Red Hat Container Native Virtualization 4.2 | RedHat | container-native-virtualization/virt-handler-rhel9:1785831334 | * |
| Red Hat Container Native Virtualization 4.21 | RedHat | container-native-virtualization/virt-handler-rhel9:1785829701 | * |
| Red Hat Container Native Virtualization 4.22 | RedHat | container-native-virtualization/virt-handler-rhel9:1785140336 | * |