REDHAT-BUG-2520161: Integer Overflow

Published Aug 20, 2026
·
Updated

An integer overflow vulnerability was found in libvirt's NodeGetFreePages RPC handler in src/remote/remotedaemondispatch.c. The dispatcher computes a 32-bit product (pageslen cellCount) for both validation and memory allocation. While pageslen is XDR-capped at 1024, cellCount remains unbounded. The multiplication truncates modulo 2^32, allowing crafted values to bypass the guard check. The undersized buffer is then overwritten with real NUMA node data. The RPC call requires only connect:read ACL (lowest permission tier) and is accessible via the world-readable Unix socket (mode 0666) with no authentication for VIRCONNECTRO clients. An unprivileged local user could exploit this to corrupt the root libvirt daemon's heap, leading to denial of service or potentially local privilege escalation.

Affected Software

1 affected component
libvirt

Event History

Aug 20, 2026
Data Sourced
via Red Hat·09:04 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What level of access is needed to invoke the vulnerable RPC handler?

The call requires only the connect:read ACL, which is the lowest permission tier. VIR_CONNECT_RO clients can access it without authentication through the world-readable Unix socket configured with mode 0666.

2

What inputs make the overflow possible?

An attacker can supply crafted page and cell-count values such that the 32-bit pages_len multiplied by cellCount calculation wraps. Although pages_len is capped by XDR at 1024, cellCount is not bounded.

3

What is the practical impact if exploitation succeeds?

The undersized allocation can be overwritten with real NUMA node data in the root libvirt daemon's heap. This can cause denial of service and may permit local privilege escalation.

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