REDHAT-BUG-2492203: Medium severity Kubevirt KubeVirt safepath (pkg/safepath) vulnerability

Published Jun 24, 2026
·
Updated

A flaw was found in KubeVirt's safepath package (pkg/safepath/safepathlinux.go). The OpenAtNoFollow function walks path components using OPATH|ONOFOLLOW flags, which per open(2) semantics succeeds on a symlink leaf and returns a file descriptor referring to the symlink itself rather than failing with ELOOP. Downstream helper functions (ChmodAtNoFollow, ChownAtNoFollow, MknodAtNoFollow) then operate on the path via /proc/self/fd/N using link-following syscalls (chown(2) instead of fchownat(ATSYMLINKNOFOLLOW)), which the kernel resolves by dereferencing the symlink at use time. This defeats the intended no-follow protection for the final path component.

An attacker with namespace-level pod access can place a symlink in the virt-launcher pod filesystem targeting an arbitrary host path. When virt-handler (running as root on the node) performs a safepath chown/chmod operation on that path during VM disk setup, hotplug, or network-cache flows, it follows the symlink and modifies the ownership or permissions of the attacker-chosen host file with hardcoded values (uid 107, mode ~0660).

Affected Software

1 affected component
Kubevirt KubeVirt safepath (pkg/safepath)

Event History

Jun 24, 2026
Data Sourced
via Red Hat·02:05 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2492203?

The severity of REDHAT-BUG-2492203 is classified as medium (4).

2

What components are affected by REDHAT-BUG-2492203?

The affected component is KubeVirt's safepath package, specifically the OpenAtNoFollow function in safepath_linux.go.

3

How do I fix REDHAT-BUG-2492203?

To fix REDHAT-BUG-2492203, review the code in the safepath package and apply the necessary updates to handle symlink paths correctly.

4

What is the risk associated with REDHAT-BUG-2492203?

The risk level associated with REDHAT-BUG-2492203 is rated at 19, indicating a medium level of risk.

5

When was REDHAT-BUG-2492203 published?

REDHAT-BUG-2492203 was published on June 24, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203