REDHAT-BUG-2584941: Medium severity redhat/spice-server vulnerability
A flaw was found in spice-server. A malicious SPICE client can send a message header declaring an arbitrarily large message body. The server sizes the receive-buffer allocation for the message from this declared size before any message content is received; when the allocation fails, the process hosting the SPICE server terminates abruptly, causing a denial of service for the virtual machine it serves. On hosts with sufficient free memory, a single declared size may instead allocate successfully, and the same technique can be used to hold large amounts of memory per connection. The easiest trigger is available on every SPICE server regardless of the virtual machine's device configuration. Exploitation requires network access to the SPICE port; whether credentials are needed depends on the server's authentication configuration, and the unauthenticated variant requires authentication to be explicitly disabled. Among currently supported Red Hat Enterprise Linux releases, the affected package ships in Red Hat Enterprise Linux 8 (spice-server 0.14.3); the SPICE protocol has been deprecated there since 8.4 and is not shipped in Red Hat Enterprise Linux 9 or 10.
Affected Software
Event History
Frequently Asked Questions
Which systems are realistically exposed?
Systems running the affected spice-server package in Red Hat Enterprise Linux 8 are exposed if their SPICE port is reachable by an attacker. Red Hat Enterprise Linux 9 and 10 do not ship SPICE, and the protocol has been deprecated in RHEL 8 since 8.4.
Does exploitation require authentication or a particular virtual machine configuration?
An attacker needs network access to the SPICE port. Credentials may be required depending on the server authentication configuration; unauthenticated exploitation is possible only when authentication has been explicitly disabled. The easiest trigger works regardless of the virtual machine's device configuration.
What is the operational impact if the issue is exploited?
A declared oversized message body can cause receive-buffer allocation to fail, abruptly terminating the process hosting the SPICE server and denying service to the virtual machine it serves. If enough memory is available, an attacker can instead retain large amounts of memory per connection.