Bug 2562896 - CVE-2026-118475 eog: Eye Of Gnome: buffer overrun when parsing malicious PNG files with non-standard iCCP chunk [fedora-all]
Summary: CVE-2026-118475 eog: Eye Of Gnome: buffer overrun when parsing malicious PNG ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: eog
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["bdabafad-ffe7-491a-b3fa-e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-28 13:48 UTC by Rafael Pandini
Modified: 2026-10-28 16:37 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-10-28 16:36:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2547999 0 medium CLOSED CVE-2026-107651 eog: eog: arbitrary code execution via heap buffer overflow in PNG metadata reader [fedora-all] 2026-10-28 16:37:06 UTC

Description Rafael Pandini 2026-10-28 13:48:00 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Summary: Possible buffer overrun when parsing malicious PNG files with
non-standard iCCP chunk
Requirements to exploit: A manipulated PNG file with a iCCP chunk that
doesn't follow the PNG specification
Component affected: Eye of GNOME (eog)
Version affected: 2.23.1 <= eog <= 50.3
Patch available: Yes,
https://gitlab.gnome.org/GNOME/eog/-/commit/04e4f313421eacb9fc529781542bb7fb81a3cd1a
Version fixed (if any already): 50.4
Upstream coordination: See issue report (below)
CVSS (optional):
Impact (optional):
Embargo: No
Acknowledgment: PoC script by Ege BALCI
Steps to reproduce if available: see issue report
Mitigation if available: None
Original report:

See https://gitlab.gnome.org/GNOME/eog/-/issues/342#note_2903549

This was noticed while verifiying the fix for CVE-2026-107651. The PoC
script accompanying that CVE produces PNG files which don't start their
iCCP chunks with a NULL-terminated profile name, as mandated by the PNG
specification. Intead the chunk us only filled with 'A'.

Once Eye of GNOME loads one of these files it will try to extract the
ICC profile from the PNG files. For that it calls
eog_metadata_reader_png_get_icc_profile() the code tries to skip over
the profile name, by walking over the chunk data looking for the first
NULL byte. Since it doesn't keep  track of the chunk's size it will
eventually read past the allocated chunk data.

This is so far only reproducible in ASan enabled builds, in normal
builds it seems to "find" a NULL-byte directly after the chunk data.

The issue was fixed already in release 50.4 using the patch linked
above

Comment 1 Adrian Vovk 2026-10-28 16:36:27 UTC
This was handled by the fix for CVE-2026-107651 (rhbz#2547999)

rawhide is already shipping 50.4, f45 has it in testing already, and f44/f43 already include the fix for this in the patch for CVE-2026-107651

Nothing left to do. Closing


Note You need to log in before you can comment on or make changes to this bug.