Skip to main content
Vulnerability Database/CVE-2026-96280

CVE-2026-96280: OCI Delta Stream Buffer Overflow Vulnerability

CVE-2026-96280 is a heap buffer overflow in the OCI delta stream parser affecting 32-bit systems. Attackers can exploit this during flatpak operations to achieve code execution. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-96280 Overview

CVE-2026-96280 is a heap buffer overflow in the Flatpak OCI (Open Container Initiative) delta stream parser. The parser reads size values as guint64 but passes them to GLib I/O and allocation functions that expect gsize, which is 32 bits on 32-bit systems. This mismatch causes undersized allocations while subsequent operations continue to use the original 64-bit size. An attacker who controls an OCI registry can craft a delta stream that triggers the overflow during flatpak install or flatpak update, potentially achieving code execution on 32-bit systems. The flaw is classified as a numeric truncation error [CWE-197].

Critical Impact

A malicious OCI registry can corrupt heap memory during Flatpak install or update operations on 32-bit systems, enabling potential arbitrary code execution in the user context running Flatpak.

Affected Products

  • Flatpak (OCI delta stream handling)
  • Linux distributions shipping Flatpak on 32-bit architectures
  • Red Hat ecosystem packages tracking Flatpak (see Red Hat CVE-2026-96280 Advisory)

Discovery Timeline

  • 2026-09-27 - CVE-2026-96280 published to NVD
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-96280

Vulnerability Analysis

The vulnerability resides in the Flatpak code path that parses OCI delta streams used to update container-style application bundles. Flatpak reads length fields from the untrusted stream using the 64-bit guint64 type. Those values are then handed to GLib functions whose size parameter is gsize.

On 64-bit systems gsize is 64 bits, so no truncation occurs. On 32-bit systems gsize is 32 bits. A size greater than 0xFFFFFFFF is silently truncated during the function call, so the allocator reserves a buffer sized only by the low 32 bits of the attacker-supplied value.

Subsequent copy and parsing operations continue to use the untruncated 64-bit size, writing well past the end of the undersized heap buffer. The result is a controlled heap overflow during flatpak install or flatpak update against an attacker-controlled registry. User interaction is required because the victim must initiate the install or update.

Root Cause

The root cause is an inconsistent integer type contract between the parser and the GLib allocation and I/O APIs. The parser treats sizes as guint64 end-to-end, but the GLib layer narrows them to gsize. This classic numeric truncation error [CWE-197] breaks the invariant that the allocated buffer length matches the length used by downstream writers.

Attack Vector

An attacker hosts or compromises an OCI registry that a victim's Flatpak client contacts. The attacker publishes a delta update whose header declares a size greater than 2^32. When the 32-bit Flatpak client fetches the delta during install or update, the undersized allocation is overflowed by the stream contents, corrupting adjacent heap metadata and application data under attacker influence.

See the GitHub Flatpak Security Advisory and Red Hat Bug Report #2539419 for upstream technical details.

Detection Methods for CVE-2026-96280

Indicators of Compromise

  • Flatpak client processes crashing with heap corruption signatures (SIGABRT from glibc malloc, aborted free(), or malloc_consolidate assertions) during flatpak install or flatpak update.
  • Connections from 32-bit hosts to unexpected or newly introduced OCI registry endpoints immediately preceding a Flatpak crash.
  • OCI delta manifests whose declared payload size exceeds 0xFFFFFFFF bytes.

Detection Strategies

  • Audit endpoints for the presence of 32-bit Flatpak builds and identify any still fetching from third-party OCI registries.
  • Inspect proxy and TLS inspection logs for OCI registry responses with abnormally large Content-Length values delivered to Flatpak user agents.
  • Correlate Flatpak process crashes with preceding network activity to OCI registries to surface exploitation attempts.

Monitoring Recommendations

  • Alert on repeated child process crashes of flatpak or flatpak-system-helper on 32-bit hosts.
  • Monitor /var/lib/flatpak and per-user Flatpak directories for unexpected writes outside normal update windows.
  • Restrict and log outbound traffic from workstations to only approved Flatpak remotes and OCI registries.

How to Mitigate CVE-2026-96280

Immediate Actions Required

  • Upgrade Flatpak to the fixed version provided by your distribution as soon as it is available; track the Red Hat CVE-2026-96280 Advisory for package versions.
  • Prioritize patching on 32-bit systems (i686, armv7, and similar) where the overflow is reachable.
  • Restrict Flatpak remotes to trusted, signed sources and remove any unknown OCI registries from flatpak remotes output.

Patch Information

Flatpak maintainers released a fix tracked in the GitHub Flatpak Security Advisory GHSA-jr92-2v97-wgvc. Distribution-specific package updates are tracked by vendors; Red Hat users should consult the Red Hat CVE-2026-96280 Advisory and Red Hat Bug Report #2539419 for errata.

Workarounds

  • Avoid running flatpak install or flatpak update against OCI-type remotes on 32-bit systems until patches are applied.
  • Remove untrusted OCI remotes with flatpak remote-delete <name> and reinstall only vetted remotes after patching.
  • Where feasible, migrate affected endpoints from 32-bit to 64-bit Flatpak builds, which are not vulnerable to the truncation condition.
  • Enforce network egress policies that block Flatpak clients from reaching arbitrary OCI registries.
bash
# List and remove untrusted OCI remotes until patched
flatpak remotes --show-details
flatpak remote-delete <untrusted-remote>

# Verify installed Flatpak version against the vendor-fixed release
flatpak --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.