# CVE-2026-105959: Spice-server: spice: heap buffer overflow via glz dictionary max\_encoders integer truncation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.53% (percentile 38, 2026-11-28)
- **CWE:** CWE-190
- **Published:** 2026-10-16T11:53:00.840Z
- **Modified:** 2026-11-23T15:17:22.897Z

## Who should check

- Anyone running Red Hat Enterprise Linux 6 all versions
- Anyone running Red Hat Enterprise Linux 7 all versions
- Anyone running Red Hat Enterprise Linux 8 all versions

## Description

A flaw was found in spice-server. The GLZ encoder dictionary restore path truncates a size\_t allocation size to int when calling the malloc callback, allowing a malicious authenticated SPICE client during VM live migration to trigger a massive heap buffer overflow by sending a crafted max\_encoders value in migration data.

## Affected and fixed versions

- Red Hat Enterprise Linux 6: all versions (cvelist)
- Red Hat Enterprise Linux 7: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)

## Mitigation

- Vendor workaround: 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 prevent integer truncation of size\_t allocation calculations to int when invoking the GlzEncoderUsrContext::malloc callback in the GLZ dictionary restore path: upgrade to the fixed Spice/Spice Server builds, which prevent truncation of size\_t allocation sizes to int when invoking the GLZ dictionary malloc callback, closing all 2 injection vectors (crafted SPICE\_MSGC\_MIGRATE\_DATA message, malicious max\_encoders field in GlzEncDictRestoreData). Until patched, this is a concern on 64-bit Linux hosts running SPICE server, so Disable VM live migration if not required, restrict SPICE client access to trusted networks using firewall rules, and enforce strong authentication via SASL or TLS with mutual certificate validation. As a compensating measure, Run SELinux in enforcing mode to confine the SPICE server process domain and restrict unauthorized system access if the heap overflow is exploited. These controls limit blast radius and contain exploitation, but they do not fix the underlying integer truncation defect — apply the upstream patch to fully remediate.
- 
- Highest-impact CME: CME-301 SELinux (Enforcing Mode) (medium)

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-105959. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-105959.md
Affected: Red Hat Enterprise Linux 6 all versions; Red Hat Enterprise Linux 7 all versions; Red Hat Enterprise Linux 8 all versions
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-105959 being exploited?

There is no confirmed exploitation: CVE-2026-105959 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-105959?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-105959?

Red Hat Enterprise Linux 6 all versions; Red Hat Enterprise Linux 7 all versions; Red Hat Enterprise Linux 8 all versions.

### Is there a fix for CVE-2026-105959?

No fixed version is listed in the sources yet. Vendor workaround: 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 prevent integer truncation of size\_t allocation calculations to int when invoking the GlzEncoderUsrContext::malloc callback in the GLZ dictionary restore path: upgrade to the fixed Spice/Spice Server builds, which prevent truncation of size\_t allocation sizes to int when invoking the GLZ dictionary malloc callback, closing all 2 injection vectors (crafted SPICE\_MSGC\_MIGRATE\_DATA message, malicious max\_encoders field in GlzEncDictRestoreData). Until patched, this is a concern on 64-bit Linux hosts running SPICE server, so Disable VM live migration if not required, restrict SPICE client access to trusted networks using firewall rules, and enforce strong authentication via SASL or TLS with mutual certificate validation. As a compensating measure, Run SELinux in enforcing mode to confine the SPICE server process domain and restrict unauthorized system access if the heap overflow is exploited. These controls limit blast radius and contain exploitation, but they do not fix the underlying integer truncation defect — apply the upstream patch to fully remediate.  Highest-impact CME: CME-301 SELinux (Enforcing Mode) (medium)

### How do I check if I'm affected by CVE-2026-105959?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://access.redhat.com/security/cve/CVE-2026-105959>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2554008>
- other: <https://gitlab.freedesktop.org/spice/spice/-/merge_requests/253>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-105959>

HTML: <https://flawdb.com/CVE-2026-105959> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-105959>
