Bug 2510601 - CVE-2026-66040 ffmpeg: FFmpeg: Arbitrary code execution via crafted PNG image [fedora-43]
Summary: CVE-2026-66040 ffmpeg: FFmpeg: Arbitrary code execution via crafted PNG image...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: ffmpeg
Version: 43
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Multimedia SIG
QA Contact:
URL:
Whiteboard: {"flaws": ["dd54dcf1-9c95-46c9-80de-3...
Depends On:
Blocks: CVE-2026-66040
TreeView+ depends on / blocked
 
Reported: 2026-08-03 10:10 UTC by Marian Rehak
Modified: 2026-10-01 01:12 UTC (History)
5 users (show)

Fixed In Version: ffmpeg-9.0.1-1.fc46,ffmpeg-9.0.1-4.fc45,ffmpeg-8.1.3-1.fc44
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2026-08-03 10:10:08 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.

FFmpeg through 8.1.2, fixed in commit b506faf, contains a heap out-of-bounds write vulnerability in the native PNG and APNG encoders that allows remote attackers to corrupt heap memory by supplying a crafted PNG image with a malicious eXIf chunk. Attackers can craft an eXIf chunk where multiple IFD entries reference the same large value payload, causing canonical serialization to expand the output far beyond the undersized allocation estimated by add_exif_profile_size(), resulting in png_write_chunk() writing tens of thousands of bytes past the buffer boundary, leading to deterministic heap corruption, process crash, and potentially arbitrary code execution.

Comment 1 Aoife Moloney 2026-08-17 15:45:37 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 3 Fedora Update System 2026-09-28 11:56:18 UTC
FEDORA-2026-3e109a0c85 (ffmpeg-8.1.3-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-3e109a0c85

Comment 4 Fedora Update System 2026-09-29 02:11:07 UTC
FEDORA-2026-3e109a0c85 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-3e109a0c85`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-3e109a0c85

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-10-01 01:12:05 UTC
FEDORA-2026-3e109a0c85 (ffmpeg-8.1.3-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


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