REDHAT-BUG-2493581: Buffer Overflow

Published Jun 26, 2026
·
Updated

An integer overflow vulnerability was found in spice-vdagent. In src/udscs.c, the udscswrite() function computes a buffer size as bufsize = sizeof(header) + size, where bufsize is a guint (unsigned 32-bit). When size is >= 0xFFFFFFF1 (since sizeof(header) is 16), this addition wraps to zero or a very small value. gmalloc(0) returns a valid tiny allocation (typically 1 byte), and the subsequent memcpy(buf + 16, data, size) writes approximately 4GB past the end of the buffer, causing a heap buffer overflow. This has been confirmed with AddressSanitizer (heap-buffer-overflow). On a normal (non-ASAN) build the daemon crashes with SIGBUS.

The trigger path is through VDAgentMessage.size in clipboard or file transfer messages from the SPICE host. The size validation at vdagentd.c:572 only checks >= minsize with no upper bound.

Note: exploitation requires a malicious or compromised SPICE host to send a crafted message with a large size field. In standard SPICE deployments, the host is trusted.

Affected Software

1 affected component
spice-vdagent

Event History

Jun 26, 2026
Data Sourced
via Red Hat·03:37 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-2493581?

The severity of REDHAT-BUG-2493581 is classified as medium with a score of 4.

2

What type of vulnerability is REDHAT-BUG-2493581?

REDHAT-BUG-2493581 is identified as an integer overflow vulnerability.

3

What software is affected by REDHAT-BUG-2493581?

The affected software for REDHAT-BUG-2493581 is spice-vdagent.

4

How do I fix REDHAT-BUG-2493581?

To fix REDHAT-BUG-2493581, ensure you update spice-vdagent to a version that addresses this vulnerability.

5

What potential impact does REDHAT-BUG-2493581 pose?

REDHAT-BUG-2493581 could lead to buffer overflow issues due to the integer overflow in the udscs_write() function.

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