Skip to content

Fix missing packed/unpacked size guard in scanline chunk reader#2536

Open
cary-ilm wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
cary-ilm:fix-GHSA-9c7r-mp54-x46f
Open

Fix missing packed/unpacked size guard in scanline chunk reader#2536
cary-ilm wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
cary-ilm:fix-GHSA-9c7r-mp54-x46f

Conversation

@cary-ilm

@cary-ilm cary-ilm commented Jul 9, 2026

Copy link
Copy Markdown
Member

PR #2162 added a check to reject uncompressed chunks where packed_size != unpacked_size in exr_read_tile_chunk_info, but the equivalent check was missing from exr_read_scanline_chunk_info. A crafted uncompressed deep-scanline EXR with a mismatched packed_size caused the decoder to allocate an unpacked_buffer via malloc that was never filled, leaking stale heap contents into caller-visible pixels.

Addresses https://github.com/AcademySoftwareFoundation/openexr/security/advisories/GHSA-9c7r-mp54-x46f

PR AcademySoftwareFoundation#2162 added a check to reject uncompressed chunks where
packed_size != unpacked_size in exr_read_tile_chunk_info, but the
equivalent check was missing from exr_read_scanline_chunk_info. A
crafted uncompressed deep-scanline EXR with a mismatched packed_size
caused the decoder to allocate an unpacked_buffer via malloc that was
never filled, leaking stale heap contents into caller-visible pixels.

Addresses https://github.com/AcademySoftwareFoundation/openexr/security/advisories/GHSA-9c7r-mp54-x46f

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Cary Phillips <cary@ilm.com>

@peterhillman peterhillman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the same as #2548?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants