Bug 2519536 - CVE-2026-71202 golang-github-freetype: Raster: Denial of Service via integer underflow in image cropping function [fedora-all]
Summary: CVE-2026-71202 golang-github-freetype: Raster: Denial of Service via integer ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: golang-github-freetype
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["02980589-ec84-4318-8bbf-f...
Depends On:
Blocks: CVE-2026-71202
TreeView+ depends on / blocked
 
Reported: 2026-08-19 12:41 UTC by Yadnyawalk Tale
Modified: 2026-08-19 12:41 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Yadnyawalk Tale 2026-08-19 12:41:28 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.

The raster Rust crate's crop() function (src/editor.rs) clamps the crop width/height against source dimensions but only clamps the offset_x/offset_y parameters against 0, never against the source width/height. When an offset exceeds the corresponding source dimension, `width2 - offset_x` (or the height equivalent) underflows to a negative i32, which release builds do not trap; the negative value is then cast to usize inside Image::blank()'s Vec::with_capacity() call, triggering a capacity-overflow panic and crashing the process on a single crafted crop request.


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