Spice-server: spice: heap oob read/write via unchecked migration data offsets

Summary

CVECVE-2026-105958
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-10-16 13:16:53 UTC
Updated2026-11-04 22:17:45 UTC
DescriptionA flaw was found in spice-server. Multiple migration data handlers use client-supplied offsets from SPICE_MSGC_MIGRATE_DATA messages without bounds validation, allowing a malicious authenticated SPICE client during VM live migration to read arbitrary heap memory or trigger heap corruption via out-of-bounds read and write operations on the message buffer.

Risk And Classification

Primary CVSS: v3.1 7.5 HIGH from [email protected]

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.002460000 probability, percentile 0.159940000 (date 2026-11-04)

Problem Types: CWE-787 | CWE-787 Out-of-bounds Write


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary7.5HIGHCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNACVSS7.5HIGHCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8 Not specified Not specified

References

ReferenceSourceLinkTags
gitlab.freedesktop.org/spice/spice/-/merge_requests/257 [email protected] gitlab.freedesktop.org
access.redhat.com/security/cve/CVE-2026-105958 [email protected] access.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Upstream acknowledges Tristan Madani (Talence Security) as the original reporter. (en)

Additional Advisory Data

SourceTimeEvent
CNA2026-10-09T00:00:00.000ZReported to Red Hat.
CNA2026-10-09T21:34:41.000ZMade public.

Workarounds

CNA: This vulnerability is only exploitable during VM live migration by an authenticated SPICE client. If live migration is not required, disabling it eliminates the attack surface. If live migration is needed, restrict SPICE client connections to trusted networks using firewall rules and enforce strong authentication (TLS with mutual certificate validation, or SASL with strong credentials) to limit who can connect as a SPICE client. --- CME Mitigation Guidance (2026-10-20) --- Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure. The highest-value action is to enforce strict bounds validation on client-supplied offsets and buffer lengths across all SPICE migration data handlers prior to memory operations: upgrade to the fixed Spice/Spice Server builds, which validate migration data offsets and read bounds against declared message lengths instead of reallocating from attacker-controlled values, closing all 4 injection vectors (RedCharDevice restore via write_data_ptr offset manipulation, smartcard restore via read_data_ptr offset manipulation, reds agent state restore via msg_header_ptr offset manipulation, DisplayChannelClient migrate data handling via surfaces_at_client_ptr offset manipulation). Until patched, this is a concern on Linux hosts running Spice Server with VM live migration enabled, so disable VM live migration if not required, restrict SPICE client network access using firewall rules, and enforce strong authentication via SASL or mutual TLS. As a compensating measure, randomize heap and binary addresses using ASLR to impede reliable exploitation of out-of-bounds reads and writes, enforce full RELRO and PIE to make Global Offset Table entries read-only and prevent control flow diversion via heap corruption, validate indirect call targets using Control Flow Integrity or shadow call stacks to block redirection upon corruption of function pointers or vtables, enable FORTIFY_SOURCE to detect buffer overflows during memory copy operations such as memcpy and abort execution, and confine the SPICE server process using SELinux in enforcing mode to restrict host access if arbitrary code execution occurs. These controls limit blast radius and contain exploitation, but they do not fix the underlying unchecked migration data offsets defect — apply the upstream patch to fully remediate. Highest-impact CME: CME-301 SELinux (Enforcing Mode) (medium)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report