REDHAT-BUG-2539419: Buffer Overflow

Published Sep 23, 2026
·
Updated

GHSA-jr92-2v97-wgvc (https://github.com/flatpak/flatpak/security/advisories/GHSA-jr92-2v97-wgvc)

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). The silent truncation causes undersized allocations while subsequent operations use the original 64-bit size, leading to heap buffer overflows. On 64-bit systems, gsize and guint64 are the same width, so the truncation does not occur and the issue is not practically exploitable.

Mitigation: Only install applications from trusted OCI registries. Flatpak remotes using the default OSTree transport are not affected. Fixed in 1.18.1 (backports available for 1.16.x). Reported by @swick.

Affected Software

1 affected component
Flatpak Flatpak<1.18.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Flatpak to a version that resolves this vulnerability.

    Fixed in 1.18.1Patch GHSA-jr92-2v97-wgvc
  2. Compensating control

    Only install applications from trusted OCI registries.

Event History

Sep 23, 2026
Data Sourced
via Red Hat·02:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which systems and Flatpak configurations are exposed?

The issue is practically exploitable on 32-bit systems because gsize is 32 bits there. It affects OCI delta stream parsing; Flatpak remotes using the default OSTree transport are not affected, and 64-bit systems do not experience the truncation.

2

What does an attacker need to exploit this?

An attacker would need to provide a malicious OCI delta stream through an OCI registry that the affected system installs applications from. The malformed size values can cause an undersized allocation followed by a heap buffer overflow on 32-bit systems.

3

What can be done if an update cannot be applied immediately?

Only install applications from trusted OCI registries. Avoid installing from untrusted OCI registries until the affected Flatpak version is updated.

4

Which fixed versions are identified?

The issue is fixed in Flatpak 1.18.1. Backports are available for the 1.16.x series.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203