Bug 2575655 (CVE-2026-130888)

Summary: CVE-2026-130888 nbdkit: nbdkit: qcow2dec ZSTD heap over-read via incorrect input buffer size
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: rhel-process-autobot, security-response-team, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in nbdkit. The qcow2dec filter's zstd_compressed_cluster() function incorrectly sets the ZSTD input buffer size to the uncompressed cluster size instead of the compressed buffer size. A crafted QCOW2 image with ZSTD-compressed clusters can trigger a heap over-read, leading to a denial of service and potentially exposing heap memory.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-18 04:37:06 UTC
A flaw was found in nbdkit's qcow2dec filter. The zstd_compressed_cluster() function sets the ZSTD input buffer size to cluster_size (the uncompressed cluster size) instead of compressed_size (the actual allocated buffer size). The equivalent zlib/deflate path correctly uses compressed_size. A crafted QCOW2 image with ZSTD-compressed clusters can cause a heap over-read of up to approximately 2 MB past a small compressed allocation, leading to a crash (denial of service) and potentially disclosing heap memory if the process survives.

This does not affect RHEL, which does not ship the qcow2dec filter. Fedora was affected and has been fixed upstream (commit c84da7612cff7a56d842ccfe96b2a9e19bf8fea4).

Public report: https://lists.libguestfs.org/archives/list/guestfs@lists.libguestfs.org/thread/LXZQCFZQQVSA2G47FMNQ3KJBMJBUVYJP/
Fix: https://gitlab.com/nbdkit/nbdkit/-/commit/c84da7612cff7a56d842ccfe96b2a9e19bf8fea4
Tracker: PSIRTSUPT-26022