An error in the virNetMessageFree() function in rpc/virnetserverclient.c
can lead to a use-after-free. Additionally, a socket leak in the
remoteDispatchStoragePoolListAllVolumes command can lead to file
descriptor exhaustion.

Impact

A remote attacker could cause certain errors during an RPC connection to
cause a message to be freed without being removed from the message queue,
possibly resulting in execution of arbitrary code or a Denial of Service
condition. Additionally, a remote attacker could repeatedly issue the
command to list all pool volumes, causing a Denial of Service condition.