Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105959 Overview
CVE-2026-105959 is a heap buffer overflow vulnerability in spice-server, the server-side implementation of the Simple Protocol for Independent Computing Environments (SPICE). The flaw resides in the GLZ encoder dictionary restore path, which truncates a size_t allocation size to int when invoking the malloc callback. An authenticated SPICE client can exploit this during virtual machine (VM) live migration by sending a crafted max_encoders value in migration data. The classification maps to integer overflow leading to a heap buffer overflow [CWE-190].
Critical Impact
An authenticated attacker can trigger a heap buffer overflow in the SPICE server process during VM live migration, risking confidentiality, integrity, and availability of the host virtualization service.
Affected Products
- spice-server (freedesktop.org SPICE project)
- Red Hat distributions shipping spice-server
- Virtualization hosts using SPICE for VM remote display and migration
Discovery Timeline
- 2026-10-16 - CVE-2026-105959 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-105959
Vulnerability Analysis
The vulnerability resides in the GLZ (generic LZ) encoder dictionary restore routine inside spice-server. When a VM live migration occurs, the destination server reconstructs encoder state from migration data supplied through the SPICE client channel. The restore path calculates an allocation size as a size_t, then passes that value to a malloc callback that accepts an int parameter. Values that exceed INT_MAX are silently truncated, producing an allocation far smaller than the data subsequently written into the buffer.
An authenticated client controls the max_encoders field embedded in migration data. By crafting a large value, the attacker forces the mismatch between the truncated allocation size and the actual bytes written, corrupting adjacent heap metadata and objects inside the SPICE server process.
Root Cause
The root cause is an integer truncation bug [CWE-190]. The size_t allocation size uses the platform's native width, while the malloc callback signature narrows the value to int. Lack of range validation on max_encoders before invoking the allocator permits the truncation and subsequent heap buffer overflow.
Attack Vector
Exploitation requires an authenticated SPICE client and an in-progress VM live migration. The attacker submits migration data containing a crafted max_encoders value through the GLZ dictionary restore path. The resulting heap corruption occurs in the server process that handles the migration, exposing the host service to compromise. Full technical details are available in the GitLab Merge Request #253 and the Red Hat CVE-2026-105959 Advisory.
Detection Methods for CVE-2026-105959
Indicators of Compromise
- Unexpected crashes, segmentation faults, or restarts of the spice-server process on virtualization hosts, especially during or immediately after VM live migration
- Abnormally large max_encoders values recorded in SPICE migration data or server debug logs
- Heap corruption traces in glibc abort messages or core dumps originating from GLZ encoder restore paths
Detection Strategies
- Monitor hypervisor and SPICE server logs for repeated migration failures tied to a specific client identity
- Correlate authenticated SPICE session metadata with process crash events on the destination migration host
- Deploy host-based telemetry to capture stack traces from spice-server crashes for root-cause analysis
Monitoring Recommendations
- Alert on spice-server process termination with non-zero exit codes during migration windows
- Track unusual migration attempts from clients that have not previously initiated migrations
- Baseline normal migration-data sizes and flag outliers that could indicate crafted payloads
How to Mitigate CVE-2026-105959
Immediate Actions Required
- Apply vendor-supplied spice-server patches as soon as they are available from your distribution
- Restrict SPICE client authentication to trusted users and enforce strong credentials on all SPICE consoles
- Limit which clients and networks can initiate or participate in VM live migration operations
Patch Information
The upstream fix is tracked in GitLab Merge Request #253. Distribution-level patch status is published in the Red Hat CVE-2026-105959 Advisory and Red Hat Bug Report #2554008. Administrators should rebuild or update spice-server packages to the fixed version supplied by their vendor.
Workarounds
- Disable VM live migration over SPICE until patched packages are deployed
- Isolate SPICE management traffic on dedicated, access-controlled network segments
- Require multi-factor or certificate-based authentication for SPICE sessions to reduce the pool of potential attackers
# Configuration example
# Restrict SPICE listener to localhost or management interface only
# in libvirt domain XML:
# <graphics type='spice' listen='127.0.0.1' passwd='...'/>
# Firewall example to limit SPICE ports to the management subnet
iptables -A INPUT -p tcp --dport 5900:5999 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 5900:5999 -j DROP
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

