CVE-2026-5201
Rocky Linux vulnerability analysis and mitigation

Overview

CVE-2026-5201 is a heap-based buffer overflow vulnerability in the GNOME gdk-pixbuf library's JPEG image loader, enabling remote denial of service without user interaction. The flaw was disclosed on March 31, 2026, and affects GNOME gdk-pixbuf (all tracked versions), Red Hat Enterprise Linux 7, 8, 9, and 10, IBM App Connect Enterprise Certified Container, and Microsoft Azure Linux 3 (gdk-pixbuf2 2.42.10-4). It carries a CVSS v3.1 base score of 7.5 (High) (Red Hat CVE, GitHub Advisory).

Technical details

The root cause (CWE-122: Heap-based Buffer Overflow) lies in the gdk_pixbuf__jpeg_image_load() function, which improperly validates the number of color components declared in a crafted JPEG image. This causes insufficient memory to be allocated for pixel data; when libjpeg subsequently writes pixel data, it writes beyond the allocated heap buffer, resulting in heap corruption. An attacker can trigger this remotely by supplying a malicious JPEG — for example, via a service that performs automatic thumbnail generation — with no authentication or user interaction required. A public proof-of-concept repository (Python + C) demonstrates the crash using a 122-byte crafted JPEG and AddressSanitizer-confirmed heap overflow output (Red Hat Bugzilla, PoC GitHub).

Impact

Successful exploitation causes application crashes and denial of service in any process that uses gdk-pixbuf to load JPEG images, including desktop environments, image viewers, and server-side thumbnail generators. The confirmed impact is availability loss; Red Hat's analysis notes that claims of arbitrary code execution are not reliably substantiated and require unrealistic conditions, so confidentiality and integrity are not considered at risk under normal circumstances. The broad deployment of gdk-pixbuf across Linux distributions and container images means the affected asset scope is wide, spanning desktop workstations, servers, and containerized workloads (Red Hat Bugzilla, GitHub Advisory).

Exploitability

A public proof-of-concept exploit is available on GitHub (kagancapar/CVE-2026-5201), consisting of Python and C code that generates a malicious JPEG and triggers a demonstrable heap overflow crash; it was published on April 1, 2026 (PoC GitHub). As of the latest data, there is no evidence of in-the-wild exploitation or threat actor attribution. The vulnerability is not listed in the CISA KEV catalog. The EPSS score is approximately 0.118% (Feedly data) to 0.746% (GitHub Advisory, 73rd percentile), indicating a low-to-moderate probability of exploitation in the near term (GitHub Advisory).

Exploitation steps

  1. Craft malicious JPEG: Use the public PoC script (python3 reproducer/craft_cve_2026_5201.py) to generate a 122-byte JPEG with a manipulated color component count field that causes gdk-pixbuf to under-allocate heap memory for pixel data.
  2. Identify target surface: Locate a service or application that processes attacker-supplied JPEG images using gdk-pixbuf — common targets include web applications with thumbnail generation, file managers with preview features, or image upload endpoints on Linux systems.
  3. Deliver the malicious JPEG: Submit the crafted JPEG to the target service (e.g., upload via HTTP, send as an email attachment, or place in a monitored directory), triggering automatic JPEG loading by gdk-pixbuf.
  4. Trigger heap overflow: When gdk_pixbuf__jpeg_image_load() processes the image, libjpeg writes pixel data beyond the allocated buffer, causing heap corruption and an application crash (DoS). Compile and run crash_test.c locally to verify: gcc -o crash_test reproducer/crash_test.c && ./crash_test cve_2026_5201.jpg (PoC GitHub, Red Hat Bugzilla).

Indicators of compromise

  • Process: Unexpected crashes or segmentation faults in applications using gdk-pixbuf (e.g., eog, nautilus, gnome-shell, thumbnail daemon processes, or custom image-processing services); AddressSanitizer output referencing heap-buffer-overflow in gdk_pixbuf__jpeg_image_load().
  • Logs: Application crash logs or core dumps associated with JPEG image loading; system logs showing repeated process restarts for image-handling services; journal entries with signals (SIGSEGV, SIGABRT) from gdk-pixbuf consumers.
  • File System: Presence of small (≈122-byte), structurally anomalous JPEG files in upload directories or thumbnail caches that do not render correctly but trigger crashes when processed.
  • Network: Repeated submission of the same small JPEG file to image upload or thumbnail generation endpoints, particularly from a single source IP (PoC GitHub).

Mitigation and workarounds

Vendors have released patched packages across all major affected distributions. For Red Hat Enterprise Linux, apply the relevant errata: RHSA-2026:10707 (RHEL 10), RHSA-2026:10708 (RHEL 9), RHSA-2026:10741 (RHEL 8), RHSA-2026:12114 (RHEL 7), and additional EUS/AUS/TUS advisories as applicable — the fixed package version for RHEL 10 is gdk-pixbuf2-2.42.12-4.el10_1.5 (Red Hat Errata). Patches are also available for Debian (DSA-6206-1, DLA-4531-1), Ubuntu (USN-8156-1, USN-8156-2), SUSE/openSUSE, Amazon Linux 2 and AL2023, Mageia, and IBM App Connect Enterprise Certified Container (GitHub Advisory, IBM Advisory). As a short-term workaround where patching is not immediately possible, restrict or sandbox services that process untrusted JPEG images, or disable JPEG thumbnail generation for untrusted content sources.

Community reactions

Red Hat rated the advisory as "Important" severity and issued multiple errata covering RHEL 7 through 10 and various EUS/AUS/TUS streams within approximately four weeks of disclosure (Red Hat Errata). The vulnerability received broad distribution-level attention, with Debian, Ubuntu, SUSE, openSUSE, Amazon Linux, Mageia, Oracle Linux, Rocky Linux, and AlmaLinux all issuing security advisories. Social media accounts including @thehackerwire and @RedPacketSecurity on Mastodon noted the CVE shortly after publication. The GNOME project tracked the issue via GitLab issue #304 (GNOME GitLab).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

gdk-pixbuf: 2.42.10+dfsg-1+deb12u4

Fixed

sid

gdk-pixbuf: 2.44.6+dfsg-1

Fixed

trixie

gdk-pixbuf: 2.42.12+dfsg-4+deb13u1

Fixed

Ubuntu

Fixed

bionic (esm-infra)

gdk-pixbuf: 2.36.11-2ubuntu0.1~esm3

Fixed

devel

gdk-pixbuf

Not Affected

focal (esm-infra)

gdk-pixbuf: 2.40.0+dfsg-3ubuntu0.5+esm3

Fixed

jammy

gdk-pixbuf: 2.42.8+dfsg-1ubuntu0.5

Fixed

noble

gdk-pixbuf: 2.42.10+dfsg-3ubuntu3.3

Fixed

questing

gdk-pixbuf: 2.42.12+dfsg-5ubuntu0.1

Fixed

resolute

gdk-pixbuf

Not Affected

xenial (esm-infra-legacy)

gdk-pixbuf: 2.32.2-1ubuntu1.6+esm3

Fixed

RHEL / CentOS

Fixed

RHEL 8

:appstream:gdk-pixbuf2-0:2.36.12-8.el8_10.src

Fixed

RHEL 9

:appstream:gdk-pixbuf2-0:2.42.6-3.el9_0.1.src

Fixed

RHEL 10

gdk-pixbuf2-0:2.42.12-4.el10_0.4.src

Fixed

SourceThis report was generated using AI

Related Rocky Linux vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74581CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • kernel-abi-stablelists
NoYesAug 21, 2026
CVE-2026-18300HIGH7.8
  • NixOS logoNixOS
  • gegl04-tools
NoYesAug 20, 2026
CVE-2026-18299HIGH7.8
  • NixOS logoNixOS
  • gst-plugins-good1.0
NoYesAug 20, 2026
CVE-2026-33630HIGH7.5
  • Node.js logoNode.js
  • c-ares-debuginfo
NoYesSep 03, 2026
CVE-2026-14957HIGH7.5
  • Rocky Linux logoRocky Linux
  • openshift::ose-rhel-coreos-9-0:4.21.9.6.202609021100-0
NoYesSep 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management