Flatpak: flatpak: buffer overflow in oci delta stream path names on 32-bit systems
Impact
The OCI delta stream parser read sizes as guint64 but passed them to GLib I/O and allocation functions expecting gsize (32 bits on 32-bit systems), causing undersized allocations while subsequent operations use the original 64-bit size, leading to heap buffer overflows. An attacker controlling an OCI registry can craft a delta stream that triggers this during flatpak install/update, potentially achieving code execution on 32-bit systems.
Source excerpt · redhatWhat to do
Only install applications from trusted OCI registries. Flatpak remotes using the default OSTree transport are not affected.
Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
Red Hat · Red Hat Enterprise Linux 10
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:1.16.0-9.el10_2.4 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 8
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:1.12.9-7.el8_10 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 9
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:1.12.9-4.el9_8.4 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:1.12.9-3.el9_4.5 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 9.6 Extended Update Support
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:1.12.9-4.el9_6.5 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 7
Other versions: affected
| Version / range | Source status |
|---|
Original source description
The OCI delta stream parser read sizes as guint64 but passed them to GLib I/O and allocation functions expecting gsize (32 bits on 32-bit systems), causing undersized allocations while subsequent operations use the original 64-bit size, leading to heap buffer overflows. An attacker controlling an OCI registry can craft a delta stream that triggers this during flatpak install/update, potentially achieving code execution on 32-bit systems.
References
- Source reference access.redhat.com/errata/RHSA-2026:80497
- Source reference access.redhat.com/errata/RHSA-2026:80498
- Source reference access.redhat.com/errata/RHSA-2026:80687
- Source reference access.redhat.com/errata/RHSA-2026:89733
- Source reference access.redhat.com/errata/RHSA-2026:90364
- Security advisory access.redhat.com/security/cve/CVE-2026-96280
- Source reference bugzilla.redhat.com/show_bug.cgi
- Security advisory github.com/flatpak/flatpak/security/advisories/GHSA-jr92-2v97-wgvc